建立於: 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