I understand that Static routes are configured manually by network administrators.
I have a doubt in the syntax of the static route command.
Please refer to the image attatchment for the network diagram.
(This is from Boson Simulator which I am practicing)
On Router 1 I give the following command:
ip route 192.168.100.0 255.255.255.0 192.168.1.2
Can anyone explain me why is 192.168.1.2 i.e the address of Serial interface needed here?
Also how exactly this command works.
I am confused here with this command.
Waiting for your reply
No, what is meant by using the physical interface (outgoing interface) is this:
ip route 192.168.100.0 255.255.255.0 serial 0/0.1
192.168.100.0 is the destination
serial 0/0.1 is the outgoing interface (instead of defining the IP address of the next-hop or next router).
HTH, please do rate all helpful replies,
In addition to Krisztian's reply you can even define the exit interface instead of mentioning the next hop ip address..
If the next hop is reachable via an ethernet interface you need to mention the exit interface followed by the next ip hop to reach the destination..
You can refer the below link fore more info and the options available with the command...
In static routes you have to give the destination network (192.168.100.0/24) and the next hop (where to forward this subnet) or the outgoing interface (serial 0). The routing table must contain the destination network and respective outgoing interface to be able to succesfully forward the particular network (and of course the outgoing interface must be up). In this case the 192.168.1.2 is the next hop address and actually this address is directly connected to serial 0 interface. So your router knows how to forward this network.
Anyway host B is not on the same subnet as with R2 ethernet 0.
Hope it helps,