I have two devices (actually not PC). Device A is connected with external network, this IP is 192.168.1.2
, I use this as gateway.
Device B has two interfaces like below. Two interfaces use the same gateway, so I set it manually. ping test fails (ping -I eth0 www.google.com / ping -I eth1 www.google.com
)
What's wrong here?
eth0
IP : 192.168.1.1 mask : 255.255.255.252
eth1
IP : 192.168.1.11 mask : 255.255.255.248
Kernel IP routing table:
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.2 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.2 0.0.0.0 UG 0 0 0 eth1
192.168.1.0 * 255.255.255.252 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.8 * 255.255.255.248 U 0 0 0 eth1