Score:0

How to set static ip in Ubuntu 21.04?

br flag

The default configuration /etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens160:
      dhcp4: true
  version: 2

I tried to modify the configuration

network:
  ethernets:
    eth0:
      dhcp4: no
    eth1:
      dhcp4: no
      addresses: [192.168.0.7/24]
      gateway4: 192.168.0.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]

Ip address is not binding

Score:2
cn flag

Your original file had the network interface as ens160, you changed it to eth0, does eth0 actually exist on your system?. Check the actual device names you are using match the devices in your system. The output of ifconfig -a will show the actual device names.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.