Featured image of post debian修改静态ip

debian修改静态ip

/etc/network/interfaces修改

auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
    address 192.168.0.200
    netmask 255.255.255.0
    gateway 192.168.0.1
    # nameserver 8.8.8.8

重新启动

sudo systemctl restart networking
Licensed under CC BY-NC-SA 4.0