由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 2 default gateway when have 2 eth interfaces
相关主题
为什么resolv.conf总被复原dns-nameservers field in /etc/network/interface
如果自己写linux程序,network down了如何很快通知user app?用ubuntu问题集锦
won't take the eth0 config from /etc/network/interaces关于samba/cifs的速度
双网卡的配置问题!!Linux下什么命令能知道哪个网卡插了线了?
why /etc/network/interfaces doesn't show "eth0"请教:多个无线网络自动登录问题
make ubuntu to use static ip in command line[求助]ICS无法访问citicards.com
How to setup 2 NICs for 2 different network using DHCP ?请问网络高手
网络设置问题求助: How to add Trusted Devices in Firewall on RedHat 5 (or Centos 5)?
相关话题的讨论汇总
话题: gateway话题: interfaces话题: default话题: dhcp话题: eth
进入Linux版参与讨论
1 (共1页)
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'
1 (共1页)
进入Linux版参与讨论
相关主题
求助: How to add Trusted Devices in Firewall on RedHat 5 (or Centos 5)?why /etc/network/interfaces doesn't show "eth0"
move cable from eth1 to eth0, but cannot ping eth0make ubuntu to use static ip in command line
is this legal: can still ping eth1 through eth0, even if eth1 cable is unpluggedHow to setup 2 NICs for 2 different network using DHCP ?
Q: route: SIOCADDRT: Network is unreachable网络设置问题
为什么resolv.conf总被复原dns-nameservers field in /etc/network/interface
如果自己写linux程序,network down了如何很快通知user app?用ubuntu问题集锦
won't take the eth0 config from /etc/network/interaces关于samba/cifs的速度
双网卡的配置问题!!Linux下什么命令能知道哪个网卡插了线了?
相关话题的讨论汇总
话题: gateway话题: interfaces话题: default话题: dhcp话题: eth