ubuntu 网卡配置

网卡IP地址配置
/etc/network/interfaces
编辑 文件 sudo vi /etc/network/interfaces
重起 网卡 sudo /etc/init.d/networking restart # This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5). # The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
auto eth0
iface eth0 inet dhcp iface eth1 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
In this case, you will need to specify your DNS servers manually in /etc/resolv.conf, which should look something like this:
search mydomain.example
nameserver 192.168.0.1
nameserver 4.2.2.2
DNS servers used on the network (implemented in the /etc/resolv.conf

标签: 网卡配置ubuntu
------分隔线----------------------------
· 首页 · 注册

百鸣[Baiming.org]欢迎您 百鸣[Baiming.org]欢迎您~