ubuntu DHCP转静态地址
Posted 9 months, 2 weeks ago at 11:32 am. 0 comments
ad 468x60
via Change Ubuntu System from DHCP to a Static IP Address
其实用图形工具就可以,在 系统管理 - 联网 中即可设置。命令行方式的操作大致如下:
sudo vi /etc/network/interfaces
DHCP 默认内容大致为
auto eth0
iface eth0 inet dhcp
修改为
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
重启网络即可
sudo /etc/init.d/networking restart
Popularity: 18% [?]
Tags: blog, ls, right, ubuntu, vi
ad 468x60
Related posts
No Replies
Feel free to leave a reply using the form below!