Ip route Static (Next Hop)
hitmen
Banned Posts: 133
in CCNA & CCENT
Hi guys,
for the command, ip route 0.0.0.0 0.0.0.0 192.168.1.1
192.168.1.1 is the next hop. Will the ping still be successful if 192.168.1.1 of the OTHER router is in a different vlan?
How does the command know that 192.168.1.1 belongs to other vlan of the other switch?
for the command, ip route 0.0.0.0 0.0.0.0 192.168.1.1
192.168.1.1 is the next hop. Will the ping still be successful if 192.168.1.1 of the OTHER router is in a different vlan?
How does the command know that 192.168.1.1 belongs to other vlan of the other switch?
Comments
-
networker050184 Mod Posts: 11,962 ModNot sure exactly what you are asking. In a different VLAN than what? A host? Or you connect two L3 switches and give them both 192.168.1.0 address on different SVIs?An expert is a man who has made all the mistakes which can be made.
-
Dieg0M Member Posts: 861Yes it will. It will know because the VLAN's SVI's will be in the local routing table as directly connected routes. Make sure you have a route back to the sending router if you want bidirectionnal connectivity.Follow my CCDE journey at www.routingnull0.com