SWX (5) is the ASBR (Autonomous System Boarder Router) for NSSA (Area 2) and AS2.
Assume that RIP runs as a routing protocol other than OSPF within AS2, and that the networks 192.168.100.0/24 and 192.168.200.0/24 exist.
RIP-Related Settings
Register 192.168.100.0/24 and 192.168.200.0/24 as the management objects using the network command.
Also, advertises AS1’s OSPF network as a default route.
!
router rip
network 192.168.100.0/24
network 192.168.200.0/24
default-information originate
!
OSPF-Related Settings
Register 172.18.1.0/24 connected to vlan1 as Area 2 using the network command.
Register Area 2 as NSSA using the area command.
Advertise the route information obtained via RIP and the interface route information on the RIP side to the OSPF network.
Aggregate the route information for 192.168.100.0/24 and 192.168.200.0/24 obtained from RIP into 192.168.0.0/16 and advertise it to Area 2.
Prevent OSPF Hello messages from being sent from interfaces running RIP.
!
vlan database
vlan 2 state enable
!
interface port1.1
switchport
switchport mode access
!
interface port1.2
switchport
switchport mode access
switchport access vlan 2
!
interface vlan1
ip address 172.18.1.2/24
!
interface vlan2
ip address 192.168.100.1/24
!
router ospf
ospf router-id 172.18.1.2
network 172.18.1.0 255.255.255.0 area 2
area 2 nssa
redistribute rip
redistribute connected
summary-address 192.168.0.0/16
passive-interface vlan2
!