您的位置:首页 > 理论基础 > 计算机网络

Ubuntu网络环境配置

2013-03-13 19:36 447 查看
未修改过的/etc/network/interfaces 

# This file describes the network interfaces available on your system 

# and how to activate them. For more information, see interfaces(5). 

auto lo 

iface lo inet loopback 

auto eth0 

iface eth0 inet dhcp 

auto eth1 

iface eth1 inet dhcp 

auto eth2 

iface eth2 inet dhcp 

auto ath0 

iface ath0 inet dhcp 

auto wlan0 

iface wlan0 inet dhcp 

修改过的/etc/network/interfaces 

# This file describes the network interfaces available on your system 

# and how to activate them. For more information, see interfaces(5). 

auto lo 

iface lo inet loopback 

auto eth0 

iface eth0 inet static 

address 192.168.200.99 

netmask 255.255.255.0 

gateway 192.168.200.100 

auto eth1 

iface eth1 inet dhcp 

auto eth2 

iface eth2 inet dhcp 

auto ath0 

iface ath0 inet dhcp 

auto wlan0 

iface wlan0 inet dhcp 

启动项 /etc/init.d/networking 

重启 sudo /etc/init.d/networking restart 

---by(vangeldoro) 

使用ssh2远程连接时,注意用户名和远程登陆用户名保持一致。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: