Thanks Rene for the reply and your reply helps me understanding the basic concepts which otherwise was difficult
to understand and every time got confused.
your short and simple explanations helps understanding topic very easily.
Thanks to you and your team for being supportive.
Regarding My question, Please check the details i mentioned below.
for the topolocy of dynamci NAT
Host1 —> Switch1 → NAT(Router) —> Web1
Host2 —> Switch1 → NAT(Router) —> Web1
no ip routing
is enabled on Host1, Host2, Web1
no ip default-gateway
is set on Host1, Host2 or Web1
Also, NAT is not enabled at this point of time on NAT Router.
Still i can ping from Host1 to Web1 and from Host2 to Web1 and vice versa.
Configuration of Host1
no ip routing
interface ethernet 0/1
ip address 192.168.123.1 255.255.255.0
Configuration of Host2
no ip routing
interface ethernet 0/0
ip address 192.168.123.2 255.255.255.0
Configuration of NAT router
NAT is not enabled, just a basic configuration on the NAT Router
interface ethernet 0/2
ip address 192.168.123.3 255.255.255.0
interface ethernet 0/0
ip address 192.168.23.2 255.255.255.0
Configuration of Web1
no ip routing
interface ethernet 0/0
ip address 192.168.23.3 255.255.255.0
So, in this scenario the ip default-gateway
is not enabled on Host1, Host2, and Web1 but still Host1 and Host2
can leave there subnet and can reach Web1 in other subnet. i.e. we can ping 192.168.23.3 from Host1 and Host2
and also we can ping IP address of Host1 and Host2 from Web1 Host.
SO, it will be helpful if you can help me understanding this.
The log for the debug IP packet for Host1 is -
*Oct 21 10:58:13.488: IP: s=192.168.23.3 (Ethernet0/1), d=192.168.123.1, len 100, input feature, MCI Check(99), rtype 0, forus FALSE, sendself FALSE, mtu 0, fwdchk FALSE
*Oct 21 10:58:13.488: IP: s=192.168.23.3 (Ethernet0/1), d=192.168.123.1, len 100, rcvd 1
*Oct 21 10:58:13.488: IP: s=192.168.123.1 (local), d=192.168.23.3, len 100, local feature, Logical MN local(14), rtype 0, forus FALSE, sendself FALSE, mtu 0, fwdchk FALSE
*Oct 21 10:58:13.488: IP: tableid=0, s=192.168.123.1 (local), d=192.168.23.3 (Ethernet0/1), routed via RIB
*Oct 21 10:58:13.488: IP: s=192.168.123.1 (local), d=192.168.23.3 (Ethernet0/1), len 100, sending
Host1#
*Oct 21 10:58:13.489: IP: s=192.168.123.1 (local), d=192.168.23.3 (Ethernet0/1), len 100, sending full packet
Second Scenario in which i enable ip routing on Web1 and set the default gateway on Web1 to NAT router
as now routing is enabled so Web1 will check for routes in its routing table as explained by you.
and still we are able to ping Host1 and Host2 from web1 (still no ip default-gateway set on the Host1 and Host2)
Third scenario even after enabling the NAT on inside and outside interface still we do not need the ip default-gateway
on Host1 and Host2 to send packets to Web1