Edit the /etc/network/interfaces file so as to looks like this:
Restart the network now
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.10.2
netmask 255.255.255.0
broadcast 10.10.10.255
gateway 10.10.10.1
dns-nameservers 10.10.10.3
auto eth1
iface eth1 inet static
address 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
Restart the network now
sudo /etc/init.d/networking restart
本文介绍如何编辑Ubuntu系统的网络配置文件/etc/network/interfaces,设置两块网卡lo和eth0为静态IP地址。详细步骤包括配置loopback接口、eth0及eth1的IP地址、子网掩码、广播地址、默认网关和DNS服务器等参数,并提供了重启网络服务的命令。
1万+

被折叠的 条评论
为什么被折叠?



