Hi guys
I am having some confusion using the route in linux.
Code:
[root@AAA network-scripts]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.248.1xx 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
172.19.0.0 0.0.0.0 255.255.128.0 U 0 0 0 eth2
0.0.0.0 172.19.0.1 0.0.0.0 UG 0 0 0 eth2
[root@BBBB network-scripts]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.248.1xx 10.10.200.1 255.255.255.255 UGH 0 0 0 bond0
10.10.0.0 0.0.0.0 255.255.0.0 U 0 0 0 bond0
0.0.0.0 10.10.200.1 0.0.0.0 UG 0 0 0 bond0
A uses 0.0.0.0 to route, able to ping.
A uses its own gateway to route, not able to ping
B uses 0.0.0.0 to route, not able to ping
B uses its own gateway to route, able to ping.
its quite confusing to me sometimes 0.0.0.0 to successful to ping, but sometimes it's the default gateway. because in my understanding the default route will route to the default gateway, and in my example above, they shouldnt be any differences, right?
Please kindly help...THXXXXXXXXXX <3