jerry@ubuntu:/etc/network$ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.2.100 gateway 192.168.2.2 netmask 255.255.255.0 network 192.168.2.0 broadcast 192.168.2.255 dns-nameservers 8.8.8.8 jerry@ubuntu:/etc/network$ /etc/init.d/networking restart 增加静态接口信息,重启配置后,ifconfig会看到接口配置。
ubuntu添加静态IP地址信息。
最新推荐文章于 2022-11-01 12:48:37 发布