Static_and_Dynamic_Routing_Commands
Static_and_Dynamic_Routing_Commands
enable
configure terminal
Example:
end
show ip route
write memory
enable
configure terminal
3. Define static routes (specify the subnet mask and next-hop IP for each VLSM network):
Example:
ip route 192.168.1.0 255.255.255.128 192.168.2.1
end
show ip route
write memory
enable
configure terminal
router rip
version 2
network <network-address>
Example:
router rip
version 2
network 192.168.1.0
network 192.168.2.0
Example:
router ospf 1
end
show ip protocols
show ip route
write memory
enable
configure terminal
3. Enable the dynamic routing protocol (use protocols that support VLSM):
- RIP v2:
router rip
version 2
network <network-address>
Example:
router rip
version 2
network 192.168.1.0
network 192.168.2.0
- EIGRP:
Example:
- OSPF:
Example:
router ospf 1
end
show ip protocols
show ip route
write memory