O roteador realiza a configuração RIP em dois switches ISCOM que suportam a função de roteamento da Camada 3
1. O objetivo do experimento
- Domine o uso do Cisco Simulator
- Domine o método de configuração de roteamento dinâmico RIP de switch de três camadas
2. Significado experimental
Através do uso de roteamento dinâmico RIP no simulador Cisco, os computadores em diferentes segmentos de rede podem se comunicar uns com os outros
Três, equipamento experimental
- Simulador Cisco
Quatro, topologia experimental
Cinco, etapas experimentais e configuração detalhada
-
De acordo com o diagrama de topologia, use o simulador Cisco para adicionar 2 switches L3 e 4 PCs. Os switches são conectados através das portas F0 / 24. PC1 e PC2 são respectivamente conectados à porta SA VLAN6 e porta VLAN7, e PC3 e PC4 são respectivamente conectado às portas SB VLAN8 e VLAN9, e configurar o endereço IP, máscara de sub-rede e gateway de todos os computadores de acordo com o diagrama de topologia
-
Os comandos de configuração são os seguintes:
-
Divida a vlan do switch:
-
Código SA:
-
Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SA SA(config)#ip routing SA(config)#int ra fa 0/1-8 SA(config-if-range)#swit mode access SA(config-if-range)#Swit access vlan 6 % Access VLAN does not exist. Creating vlan 6 SA(config-if-range)#exit SA(config)#int ra fa 0/9-16 SA(config-if-range)#swit mode access SA(config-if-range)#Swit access vlan 7 % Access VLAN does not exist. Creating vlan 7 SA(config-if-range)#exit SA(config)#int ra fa 0/24 SA(config-if-range)#swit mode access SA(config-if-range)#Swit access vlan 100 % Access VLAN does not exist. Creating vlan 100
-
Código SB:
-
Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname SB SB(config)#ip routing SB(config)#int ra fa 0/1-8 SB(config-if-range)#swit mode access SB(config-if-range)#Swit access vlan 8 % Access VLAN does not exist. Creating vlan 8 SB(config-if-range)#exit SB(config)#int ra fa 0/9-16 SB(config-if-range)#swit mode access SB(config-if-range)#Swit access vlan 9 % Access VLAN does not exist. Creating vlan 9 SB(config-if-range)#exit SB(config)#int ra fa 0/24 SB(config-if-range)#swit mode access SB(config-if-range)#Swit access vlan 100 % Access VLAN does not exist. Creating vlan 100
-
Configure o endereço IP de cada porta virtual vlan do switch:
-
Código SA:
-
SA>enable SA#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SA(config)#int vlan 6 %LINK-5-CHANGED: Interface Vlan6, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan6, changed state to up SA(config-if)#ip address 172.16.6.1 255.255.255.0 SA(config-if)#no shut SA(config-if)#exit SA(config)#int vlan 7 %LINK-5-CHANGED: Interface Vlan7, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan7, changed state to up SA(config-if)#ip address 172.16.7.1 255.255.255.0 SA(config-if)#no shut SA(config-if)#exit SA(config)#int vlan 100 %LINK-5-CHANGED: Interface Vlan100, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up SA(config-if)#ip address 172.16.100.1 255.255.255.0 SA(config-if)#no shut
-
Código SB:
-
SB>enable SB#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SB(config)#int vlan 8 %LINK-5-CHANGED: Interface Vlan8, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan8, changed state to up SB(config-if)#ip address 172.16.8.1 255.255.255.0 SB(config-if)#no shut SB(config-if)#exit SB(config)#int vlan 9 %LINK-5-CHANGED: Interface Vlan9, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan9, changed state to up SB(config-if)#ip address 172.16.9.1 255.255.255.0 SB(config-if)#no shut SB(config-if)#exit SB(config)#int vlan 100 %LINK-5-CHANGED: Interface Vlan100, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up SB(config-if)#ip address 172.16.100.2 255.255.255.0 SB(config-if)#no shut SB(config-if)#exit
-
Inicie o protocolo RIP para realizar a comunicação entre os dois switches:
-
Código SA:
-
SA>enable SA#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SA(config)#router rip SA(config-router)#version 2 SA(config-router)#network 172.16.6.0 SA(config-router)#network 172.16.7.0 SA(config-router)#network 172.16.100.0
-
Código SB:
-
SB>enable SB#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. SB(config)#router rip SB(config-router)#version 2 SB(config-router)#network 172.16.8.0 SB(config-router)#network 172.16.9.0 SB(config-router)#network 172.16.100.0
-
Depois de concluir a configuração acima, teste a conectividade entre os PCs
-
6. Resultados experimentais e capturas de tela
Configuração de topologia:
Divida a vlan do switch:
PARA:
SB :
Configure o endereço IP de cada porta virtual vlan do switch:
PARA:
SB :
Inicie o protocolo RIP para realizar a comunicação entre os dois switches:
PARA:
SB :
A comunicação entre PCs após iniciar o protocolo RIP
PC1 e SB podem se comunicar:
PC1 e PC3 podem se comunicar:
PC1 e PC4 podem se comunicar: