ip ospf 10.3.33.2 area backbone
exit
vlan 37
ip ospf 10.3.37.1 area backbone
exit
Items of particular interest are:
• The
ip routing
command enables routing on the switch.
• The
router ospf
command enables OSPF routing on the switch. The
area backbone
command
establishes the backbone area (area 0.)
• The
router rip
command enables RIP routing on the switch. The
redistribute connected
command
redistributes directly connected routes to all routers in the attached RIP domain.
• The
vlan
commands at the end of the configuration assign routing protocols to the VLANs. Additionally, they
make area assignments for VLANs in the OSPF domain.
The other routers have analogous, if somewhat simpler, routing configurations. The Northwest, Northeast, and
Southeast routers have only RIP enabled, and the East router has only OSPF enabled. The North router enables
both routing protocols, but has fewer VLANs.
Listed below are the routing tables that result for three representative routers:
South
A border router attached to both RIP and OSPF domains.
East
A router within the OSPF domain.
Southeast
A router within the RIP domain.
South(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
--------------- --------------- ---- --------- ---------- ---------- -----
10.2.21.0/24 VLAN21 21 connected 1 0
10.2.22.0/24 10.2.21.2 21 rip 2 120
10.2.23.0/24 10.2.21.2 21 rip 2 120
10.2.29.0/24 VLAN29 29 connected 1 0
10.3.31.0/24 VLAN31 31 connected 1 0
10.3.32.0/24 10.3.31.1 31 ospf IntraArea 2 110
10.3.32.0/24 10.3.33.1 33 ospf IntraArea 2 110
10.3.33.0/24 VLAN33 33 connected 1 0
10.3.34.0/24 10.3.33.1 33 ospf IntraArea 2 110
10.3.37.0/24 VLAN37 37 connected 1 0
127.0.0.0/8 reject static 0 0
127.0.0.1/32 lo0 connected 1 0
East(config)# show ip route
IP Route Entries
Destination Gateway VLAN Type Sub-Type Metric Dist.
--------------- --------------- ---- --------- ---------- ---------- -----
Chapter 12 Route Policy
279