To understand and implement different routing protocols including static routing, OSPF (Open Shortest Path First), and BGP (Border Gateway Protocol) in network configurations.
A default route is used to forward packets whose destination is not in the routing table.
Typically used on stub networks (networks with only one exit path).
Used when the router is connected to multiple networks and you want to manually define paths to reach them.
Example commands:
Router(config)#interface fa0/0
Router(config-if)#ip address 192.168.1.129 255.255.255.192
Router(config-if)#no shutdown
fa0/0 → Router interface being configuredip address 192.168.1.129 255.255.255.192 → Assigns IP and subnet maskno shutdown → Activates the interface (routers are shut down by default)Router(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.221
0.0.0.0 0.0.0.0 → Matches all destinations (default)192.168.1.221 → Next-hop router to forward packetsip route 192.168.1.64 255.255.255.192 192.168.1.214
ip route 192.168.1.160 255.255.255.224 192.168.1.209
ip route 192.168.1.192 255.255.255.240 192.168.1.209
ip route 192.168.1.224 255.255.255.252 192.168.1.222
show ip route
Open Shortest Path First (OSPF) uses Dijkstra's algorithm to find the shortest path.
Supports:
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
1 → OSPF process IDnetwork 10.0.0.0 0.255.255.255 → All interfaces matching 10.x.x.x will participate in OSPFarea 0 → Backbone areaBGP is a path-vector protocol used between autonomous systems (AS).
Makes routing decisions based on:
BGP ensures stable, scalable inter-domain routing.
router bgp 1
neighbor 172.16.0.2 remote-as 71
network 10.0.0.0 mask 255.0.0.0
router bgp 71
neighbor 172.16.0.1 remote-as 1
neighbor 172.14.0.2 remote-as 79
network 40.0.0.0 mask 255.0.0.0
router bgp 79
neighbor 172.14.0.1 remote-as 71
network 40.0.0.0 mask 255.0.0.0
Router# show ip bgp summary
BGP router identifier 192.168.1.1, local AS number 1
BGP table version is 5, main routing table version 5
4 network entries using 576 bytes of memory
4 path entries using 208 bytes of memory
3/2 BGP path/bestpath attribute entries using 408 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1216 total bytes of memory
BGP activity 10/6 prefixes, 10/6 paths, scan interval 60 secs
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.0.2 4 71 125 120 5 0 0 01:45:30 2
172.14.0.2 4 79 98 95 5 0 0 01:30:15 1