Documente Academic
Documente Profesional
Documente Cultură
Tabla de direccionamiento
Asignacin de puertos
Management&Native
Faculty/Staff
Students
Guest(Default)
S2(config)#interface fastEthernet0/6
S2(config-if)#switchport access vlan 30
S2(config-if)#interface fastEthernet0/11
S2(config-if)#switchport access vlan 10
S2(config-if)#interface fastEthernet0/18
S2(config-if)#switchport access vlan 20
S2(config-if)#end
S2#copy running-config startup-config
- Repite estas acciones para el switch S3 6 Comprobar los puertos que han sido aadidos en S2 y S3 mediante el comando
show vlan id <numero-vlan>
S1(config)#interface vlan 99
S1(config-if)#ip address 172.17.99.11 255.255.255.0
S1(config-if)#no shutdown
S2(config)#interface vlan 99
S2(config-if)#ip address 172.17.99.12 255.255.255.0
S2(config-if)#no shutdown
S3(config)#interface vlan 99
S3(config-if)#ip address 172.17.99.13 255.255.255.0
S3(config-if)#no shutdown
S1(config)#interface fa0/1
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#interface fa0/2
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 99
S1(config-if)#end
S2(config)#interface fa0/1
S2(config-if)#switchport mode trunk
S2(config-if)#switchport trunk native vlan 99
S2(config-if)#end
S3(config)#interface fa0/2
S3(config-if)#switchport mode trunk
S3(config-if)#switchport trunk native vlan 99
S3(config-if)#end
10
Comprobar que las lneas troncales han sido configuradas. Para ello se utilizar el
comando siguiente.
show interface trunk
11 Hacer pruebas de conectividad. Realiza pruebas de ping desde cada switch a los otros.
12
13
S2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
S2(config)#interface fastethernet 0/11
S2(config-if)#switchport access vlan 20
S2(config-if)#end
14
15. Ahora vamos a enrutar entre las VLAN. En algn momento necesitamos poner un router,
para enrutar entre VLAN y hacia afuera. En este apartado vamos a conectar el Switch 1 a un
router. Existen dos mtodos, el tradicional y el basado en subinterfaces:
1. Mtodo tradicional: Emplear una interfaz para cada VLAN.
Comprueba que hay conetividad entre las distintas VLAN empleando el mtodo
tradicional.
2. Mtodo basado en subinterfaces: Emplear una troncal para todas las interfaces.
En el switch debemos asignar un puerto a la VLAN nativa y definir una troncal que
estar conectada al router..
En el router debemos asignar a una sola interfaz tantas subinterfaces como VLAN
haya, y habilitar el encapsulamiento 802.1q.