一.配置IP
1.首先看自己的网卡:ifconfig 看是eth几的网卡
2.vim /etc/network/interfaces
配置静态IP
auto eth1
iface eth1 inet static
address 192.168.1.62
netmask 255.255.255.0
gateway 192.168.1.1
配置动态IP
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
3. /etc/init.d/networking restart
4. ping 别人的IP,看能否ping通
二.配置域名服务器
1. vim /etc/resolv.conf
加上这三行,根据自己用的什么网,设置相应的域名
search localdomain
nameserver 61.234.145.102(铁通的域名)
nameserver 61.234.145.103