386
The configuration for SwitchA, SwitchB and SwitchC is shown below:
a) Configuration of layer3 switch SwitchA
!Configuration of the IP address for interface vlan1
SwitchA#config
SwitchA(Config)# interface vlan 1
SwitchA(Config-If-Vlan1)# ip address 10.1.1.1 255.255.255.0
SwitchA (Config-If-vlan1)#exit
!Configuration of the IP address for interface vlan2
SwitchA(Config)# interface vlan 2
SwitchA(Config-If-vlan2)# ip address 20.1.1.1 255.255.255.0
!Enable RIP
SwitchA(Config)#router rip
SwitchA(Config-router-rip)#exit
!Enable vlan1 to send/receive RIP packets
SwitchA(Config)#interface vlan 1
SwitchA(Config-If-vlan1)#ip rip work
SwitchA(Config-If-vlan1)#exit
!Enable vlan2 to send/receive RIP packets
SwitchA (Config-If-vlan2)# ip rip work
SwitchA (Config-If-vlan2)#exit
SwitchA(Config)#exit
SwitchA#
b) Configuration of layer3 switch SwitchB
!Configuration of the IP address for interface vlan1
SwitchB#config
SwitchB(Config)# interface vlan 1
SwitchB(Config-If-vlan1)# ip address 10.1.1.2 255.255.255.0
SwitchB (Config-If-vlan1)exit
!Enable RIP and configure the IP address for the neighbor layer3 switch
SwitchB(Config)#router rip
SwitchB(Config-router-rip)#exit
!Enable vlan1 to send/receive RIP packets
SwitchB(Config)#interface vlan 1
SwitchB (Config-If-vlan1)#ip rip work
SwitchB (Config-If-vlan1)#exit
SwitchB(Config)#exit
SwitchB#
c) Configuration of layer3 switch SwitchC
!Configuration of the IP address for interface vlan2
SwitchC#config