转载链接:http://bbs.myir-tech.com/forum.php?mod=viewthread&tid=23&highlight=%BE%B2%CC%AC
vi /etc/network/interfaces
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
重启网络
/etc/init.d/networking restart
本文介绍了如何在Linux系统中使用vi编辑器修改/etc/network/interfaces文件来设置eth0网卡的静态IP地址为192.168.1.100,子网掩码为255.255.255.0,网络为192.168.1.0,并指定网关为192.168.1.1。最后,通过重启网络服务(/etc/init.d/networking restart)使配置生效。

219

被折叠的 条评论
为什么被折叠?



