w*s 发帖数: 7227 | 1 i have 2 NICs in the pc,
so i manually edit /etc/network/interfaces,
e.g. make them both dhcp, 1 dhcp/1 static ...
every once a while i found 2 default gateway from "route" command,
1 for each NIC.
How to keep only 1 of them pls ? | j*a 发帖数: 14423 | 2 whats the output of 'ip route'
【在 w*s 的大作中提到】 : i have 2 NICs in the pc, : so i manually edit /etc/network/interfaces, : e.g. make them both dhcp, 1 dhcp/1 static ... : every once a while i found 2 default gateway from "route" command, : 1 for each NIC. : How to keep only 1 of them pls ?
| I*****y 发帖数: 602 | 3 2 default gateway有什么问题吗?
【在 w*s 的大作中提到】 : i have 2 NICs in the pc, : so i manually edit /etc/network/interfaces, : e.g. make them both dhcp, 1 dhcp/1 static ... : every once a while i found 2 default gateway from "route" command, : 1 for each NIC. : How to keep only 1 of them pls ?
| w*s 发帖数: 7227 | 4 cannot ping yahoo, if i remove 1, it can.
【在 I*****y 的大作中提到】 : 2 default gateway有什么问题吗?
| w*s 发帖数: 7227 | 5 ubuntu, no NetworkManager,
anyone knows how to get rid of one of the default gateway ?
thx !
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.50.180.0 * 255.255.252.0 U 0 0 0 eth0
10.50.180.0 * 255.255.252.0 U 0 0 0 eth1
link-local * 255.255.0.0 U 1000 0 0 eth0
default 10.50.183.254 0.0.0.0 UG 100 0 0 eth1
default 10.50.183.254 0.0.0.0 UG 100 0 0 eth0
my /etc/network/interfaces is simple
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
【在 j*a 的大作中提到】 : whats the output of 'ip route'
|
|