ubuntu 自动获取IP

sudo dhclient -r   //释放IP

sudo dhclient      //获取IP

sudo su  //root 身份进入

dhclient eth0   //網路卡以 dhcp 協定去嘗試取得 IP

(有次我遇到要先配上静态的ip再这样才行,命令:sudo ifconfig eth0 192.168.100.111 netmask 255.255.255.0 up      配置网关:route default 192.168.100.1)

posted @ 2013-03-06 15:55  晨风世界  阅读(335)  评论(0编辑  收藏  举报