1 # Assgin static IP by eric on 26-SEP-2012 2 iface eth0 inet static 3 address 192.168.196.135 #change to your static IP 4 netmask 255.255.255.0 #change to your netmask 5 gateway 192.168.196.255 #change to your getway 6 #We must specify dns-nameserver here 7 #in order to get internet access from host 8 dns-nameservers 192.168.196.255 9 auto eth0
root@ubuntu:/etc/network# cat interfaces # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback #add by andy at 2014-08-14 # Assgin static IP by eric on 26-SEP-2012 iface eth0 inet static address 192.168.196.135 #change to your static IP netmask 255.255.255.0 #change to your netmask gateway 192.168.196.255 #change to your getway #We must specify dns-nameserver here #in order to get internet access from host dns-nameservers 192.168.196.255 auto eth0
root@ubuntu:/etc/network# /etc/init.d/networking restart 重启完成后,测试一下: root@ubuntu:/etc/network# ping www.baidu.com.cn PING www.a.shifen.com (220.181.112.244) 56(84) bytes of data. 64 bytes from 220.181.112.244: icmp_req=1 ttl=128 time=6.12 ms 64 bytes from 220.181.112.244: icmp_req=2 ttl=128 time=14.7 ms
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有