Options

Ip route Static (Next Hop)

hitmenhitmen Banned Posts: 133
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?

Comments

  • Options
    networker050184networker050184 Mod Posts: 11,962 Mod
    Not 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.
  • Options
    Dieg0MDieg0M Member Posts: 861
    Yes 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
Sign In or Register to comment.