Xavier网络环境配置

有interfaces.d文件其实只是将网络配置写进了interfaces.d文件里

1. 修改interfaces文件:

sudo vim /etc/network/interfaces

(1)无interfaces文件

auto eth0 

iface eth0 inet static

address 192.168.1.110

netmask 255.255.255.0

gateway 192.168.1.1

dns-nameservers 114.114.114.114

(2)有interfaces.d文件

auto eth0 

iface eth0 inet static

address 192.168.1.110

netmask 255.255.255.0

gateway 192.168.1.1

dns-nameservers 114.114.114.114
source-directory /etc/network/interfaces.d
source interfaces.d/eth0

2.如果有interface.d/文件夹,还需修改interface.d文件夹下的eht0


auto eth0 

iface eth0 inet static

address 192.168.1.110

netmask 255.255.255.0

gateway 192.168.1.1

dns-nameservers 114.114.114.114

你可能感兴趣的:(ubuntu配置,网络,linux,运维)