心随所致,梦想为开。Follow the Dreams & Heart.
配置ubuntu的网络
笔记
临时改变ip地址,重启后恢复
$sudo ifconfig eth0 192.168.10.20 netmask 255.255.255.0
设置静态ip地址,修改/etc/network/interfaces文件
auto eth0
iface eth0 inet static
address 192.168.10.20
netmask 255.255.255.0
gateway 192.168.10.1
设置dhcp分配ip地址,修改/etc/network/interfaces文件
auto eth0
iface eth0 inet dhcp
重启所有网络
$sudo /etc/init.d/networking restart
禁用/重启指定网卡
$sudo ifdown eth0
$sudo ifup eth0
| Print article | This entry was posted by hamo on 2008-03-21 at 22:55, and is filed under 技术讨论. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 3 years ago
听景博个: http://www.boynan.com