- 论坛徽章:
- 0
|
1 配置网卡
PCI的可以自动检测到,我就不多说如何加载驱动了,直接说如何配置IP
vi /etc/sysconfig/network,按照你的情况修改
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static使用静态IP
IPADDR=xxx.xxx.xxx.xx
NETMASK=255.255.255.224
GATEWAY=218.99.1.17
2 配置dns解析
echo "nameserver 211.98.1.28">> /etc/resolv.conf
3 启动网络
/etc/init.d/network restart
4 测试
ping
www.sina.com.cm
64 bytes from 202.106.184.200: icmp_seq=0 ttl=249 time=1.881 msec
64 bytes from 202.106.184.200: icmp_seq=0 ttl=249 time=1.881 msec
64 bytes from 202.106.184.200: icmp_seq=0 ttl=249 time=1.881 msec
64 bytes from 202.106.184.200: icmp_seq=0 ttl=249 time=1.881 msec
...
...
OK
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93926/showart_1875196.html |
|