VLAN routing

por | 15 marzo, 2017

Create vlans

SW1#conf t
SW1(config)#vlan 2
SW1(config-vlan)#name ACCT
SW1(config-vlan)#exit

SW1(config)#vlan 3
SW1(config-vlan)#name Sales
SW1(config-vlan)#exit

SW1(config)#int gigabitEthernet 0/0
SW1(config-if)#switchport access vlan 200

TRUNK PORTS

Manual Configuration ( TRUNK / NONEGOTITATE)

Dynamic Configuration ( Dinamic Auto / Dynamic Desirable)

Dynamic Configuration DTP (Dynamic Trunking Protocol)

* * SW1 Desirable -> Los dos se convierten en Trunks (Envian mensajes de DTP)

* * SW1 Dynamic Auto —> Los dos se quedan como access points ( No envía mensajes DTP)

* * SW1 Dynamic Auto —> Se convierte en trunk, el primero recibe el mensaje DTP y se convierte en Trunk

>>>> La mejor configuración para Trunks es manual y nonegotiate <<<<< NATIVE VLAN Recibe untag traffic switch originated traffic —> Ejemplo CDP
Pass-trhough devices
Virtualized Servers

Es vlan 1 por default

———————————————————-

VTP (Vlan trunking protocol)

VLAN.dat —> Borrar en switches nuevos

show vtp status

SW1#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : CISCO-vIOS
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 00c2.b321.5d00
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

Feature VLAN:
————–
VTP Operating Mode : Transparent
Maximum VLANs supported locally : 1005
Number of existing VLANs : 8
Configuration Revision : 0
MD5 digest : 0x70 0x15 0xB0 0xEC 0x59 0xA0 0xE3 0x7A
0x3C 0x91 0x9B 0x51 0xAB 0xFE 0x25 0x1A

VTP —> CLIENT
—> SERVER
—> TRANSPARENT (OFF)

SW1#show vlan

VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Gi0/2, Gi0/3, Gi1/0, Gi1/1
Gi1/2
100 VLAN100 active
200 SALES active Gi0/0
300 ACCT active Gi0/1
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
—- —– ———- —– —— —— ——– —- ——– —— ——
1 enet 100001 1500 – – – – – 0 0
100 enet 100100 1500 – – – – – 0 0
200 enet 100200 1500 – – – – – 0 0
300 enet 100300 1500 – – – – – 0 0
1002 fddi 101002 1500 – – – – – 0 0
1003 trcrf 101003 4472 1005 3276 – – srb 0 0
1004 fdnet 101004 1500 – – – ieee – 0 0
1005 trbrf 101005 4472 – – 15 ibm – 0 0

VLAN AREHops STEHops Backup CRF
—- ——- ——- ———-
1003 7 7 off

Primary Secondary Type Ports
——- ——— —————– ——————————————

SW1(config)#vlan 2
SW1(config-vlan)#name ACCT
SW1(config-vlan)#vlan 3
SW1(config-vlan)#name SALES

SW1(config)#interface range gigabitEthernet 0/0-3
SW1(config-if-range)#switchport mode access    <—- Solo puede acceder una vlan
SW1(config-if-range)#switchport access vlan 2
SW1(config-if-range)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
host. Connecting hubs, concentrators, switches, bridges, etc… to this
interface when portfast is enabled, can cause temporary bridging loops.
Use with CAUTION

%Portfast will be configured in 2 interfaces due to the range command
but will only have effect when the interfaces are in a non-trunking mode.

SW1#show interfaces gigabitEthernet 0/1 switchport
Name: Gi0/1
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: static access
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 2 (ACCT1)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL

Appliance trust: none

SW1#show mac address-table
Mac Address Table
——————————————-

Vlan Mac Address Type Ports
—- ———– ——– —–
1 00c2.b34e.a500 DYNAMIC Gi1/3
1 00c2.b355.b400 DYNAMIC Gi1/3
1 00c2.b3b5.7607 DYNAMIC Gi1/3
1 0200.4c4f.4f50 DYNAMIC Gi1/1
1 c201.070f.0000 DYNAMIC Gi1/2
2 00c2.b34e.a500 DYNAMIC Gi0/0
2 00c2.b355.b400 DYNAMIC Gi0/1
Total Mac Addresses for this criterion: 7

 

 
S1(config-if)#vtp mode server
Device mode already VTP Server for VLANS.

S1(config)#vtp domain cbtlearn
Changing VTP domain name from NULL to cbtlearn
S1(config)#

S1(config)#vtp password cbt
Setting device VTP password to cbt

 

S1(config)#interface gigabitEthernet 1/2
S1(config-if)#description TRUNK LINK
S1(config-if)#no negotiation auto
S1(config-if)#switchport trunk encapsulation dot1q