Answers for "ubuntu server change ip address"

3

change ubuntu ip address command line

#/etc/netplan/99_config.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses: [10.10.10.2/24]
      gateway4: 10.10.10.1
      nameservers:
          search: [mydomain, otherdomain]
          addresses: [9.9.9.9, 1.1.1.1]
Posted by: Guest on March-16-2021
1

ubuntu server change ip address

# edit the file in /etc/netplan/file.yml and set the desired addresses
sudo nano /etc/netplan/01-netcfg.yaml

network:
  version: 2
  ethernets:
    eth0:
      dhcp4: no
      addresses:
        - 192.168.31.16/24
  wifis:
    wlan0:
      addresses:
        - 192.168.31.16/24
        
# run this command to apply changes
sudo netplan apply
Posted by: Guest on May-29-2021
3

change ip of ubuntu

sudo ip link set dev eth0 up
sudo dhclient -v eth0
Posted by: Guest on October-19-2020

Code answers related to "ubuntu server change ip address"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language