edit file: /etc/network/interfaces
change line: iface eth0 inet dhcp
-
iface eth0 inet static address 192.168.1.99 netmask 255.255.255.0 gateway 192.168.1.1
/etc/init.d/networking restart
时间: 2024-11-02 23:25:43
edit file: /etc/network/interfaces
change line: iface eth0 inet dhcp
iface eth0 inet static address 192.168.1.99 netmask 255.255.255.0 gateway 192.168.1.1
/etc/init.d/networking restart