我有一个Ubuntu的服务器。 我需要通过连接两个LAN电缆来使用eth0,eth1。 我通过vi /etc/network/interface编辑networkingvi /etc/network/interface 。 eth0工作正常,但eth1不起作用。 我的问题是什么?
# 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 # The primary network interface auto eth0 iface eth0 inet static address 292.16.1.201 netmask 255.255.255.0 network 10.1.1.0 broadcast 10.1.1.255 gateway 292.16.1.16 # dns-* options are implemented by the resolvconf package, if installed dns-search quran.medu.ir auto eth1 iface eth1 inet static address 42.1.1.201 netmask 255.255.255.0 getway 42.1.1.16
在eth1的定义中,你有一个不好的词: getway 。
顺便说一下:每个系统只能使用一个默认网关,然后我build议您使用getway删除整个系统。