w*s 发帖数: 7227 | 1 hi i have eth0 and eth1,both static ip.
eth0 is not plugged in initially.
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
0.0.0.0 10.50.183.254 0.0.0.0 UG 0 0 0 eth1
10.50.180.0 0.0.0.0 255.255.252.0 U 0 0 0 eth1
then i plugin eth0,
#route add default gw 10.50.183.254 eth0
#route: SIOCADDRT: Network is unreachable
how should i fix it ?
thanks ! | a9 发帖数: 21638 | 2 eth0有ip嘛。
eth1
eth1
【在 w*s 的大作中提到】 : hi i have eth0 and eth1,both static ip. : eth0 is not plugged in initially. : # route -n : Kernel IP routing table : Destination Gateway Genmask Flags Metric Ref Use : Iface : 0.0.0.0 10.50.183.254 0.0.0.0 UG 0 0 0 eth1 : 10.50.180.0 0.0.0.0 255.255.252.0 U 0 0 0 eth1 : then i plugin eth0, : #route add default gw 10.50.183.254 eth0
| w*s 发帖数: 7227 | 3 yes, i did the "ifconfig ...." after plug in the eth0,
btw, this is barebone embedded system, doesn't have fancy stuff...
【在 a9 的大作中提到】 : eth0有ip嘛。 : : eth1 : eth1
|
|