xpr7hq
Last Updated: February 25, 2016
·
408
· subicura
361bc707921efd2c48ad7f41a4edca64

ubuntu 12.04 server static ip setting

  • sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.0.10
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 8.8.8.8 8.8.4.4
    dns-search localhost
  • sudo nohup sh -c "ifdown eth0 && ifup eth0"
Say Thanks
Respond