Difference between revisions of "VLANs"

From Ever changing code
Jump to navigation Jump to search
Line 30: Line 30:
  r1-basic#show interfaces trunk
  r1-basic#show interfaces trunk


;This is an example 802.1Q switch port configuration:
;Access port configuration
interface GigabitEthernet1/0/2
description Access Port to Cisco Access Point
switchport access vlan 10
no ip address
end
 
;Trunk port configuration in this example 802.1Q encapsulation is used
  interface GigabitEthernet1/0/1
  interface GigabitEthernet1/0/1
  description Trunk Port to Cisco WLC
  description Trunk Port to Cisco WLC
  switchport trunk encapsulation dot1q
  switchport trunk encapsulation dot1q
  switchport trunk allowed vlan 2-4,60
  switchport trunk allowed vlan 2-4,10
  switchport mode trunk
  switchport mode trunk
  no shutdown
  no shutdown
[[Category:cisco]]

Revision as of 01:27, 25 September 2013

Basic VLANs info. Cisco series 1900 routers support up to 16 VLANs.

Create
#vlan vlan_id
Deleting a VLAN
#no vlan vlan_id
Show all VLANs summary and port assignment
r1-basic#sh vlan-switch

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi0/1/0, Gi0/1/1, Gi0/1/2
                                                Gi0/1/3
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup

VLAN Type  SAID       MTU   Parent RingNo BridgeNo Stp  BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1    enet  100001     1500  -      -      -        -    -        1002   1003
1002 fddi  101002     1500  -      -      -        -    -        1      1003
1003 tr    101003     1500  1005   0      -        -    srb      1      1002
1004 fdnet 101004     1500  -      -      1        ibm  -        0      0
1005 trnet 101005     1500  -      -      1        ibm  -        0      0
Verify trunk interfaces
r1-basic#show interfaces trunk
Access port configuration
interface GigabitEthernet1/0/2
description Access Port to Cisco Access Point
switchport access vlan 10
no ip address
end
Trunk port configuration in this example 802.1Q encapsulation is used
interface GigabitEthernet1/0/1
description Trunk Port to Cisco WLC
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2-4,10
switchport mode trunk
no shutdown