建立于: 4年前 ( 更新: 4年前 )
ubuntu网卡固定及浮动IP笔记,这是我在Nvidia TX2上的设置。
其他版本的ubuntu Linux应该也可以用
修改
/etc/network/interfaces
其他版本的ubuntu Linux应该也可以用
修改
/etc/network/interfaces
浮动IP设置方式
iface eth0 inet dhcp
固定IP设置方式
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.108
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.95.1.1 8.8.8.8
dns-domain ccc.tc
dns-search ccc.tc
重启网络
/etc/init.d/networking restart
No Comment
Post your comment