In my Scenario i Created 4 Vlan. Below all the Steps which i followed.
console>enable
console#configure
console(config)#vlan database
console(config-vlan)#vlan 101
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 102
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 103
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 104
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#exit
console(config)#interface range ethernet 1/g1-1/g4
console(config-if)#switchport access vlan 101
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface range ethernet 1/g5-1/g20
console(config-if)#switchport access vlan 102
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface ethernet 1/g21
console(config-if-1/g21)#description 'trunk-to-sw2-port21'
console(config-if-1/g21)#switchport mode trunk
console(config-if-1/g21)#switchport trunk allowed vlan add 101-105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if-1/g21)#exit
console(config)#interface ethernet 1/g22
console(config-if-1/g22)#description 'trunk-to-sw2-port22'
console(config-if-1/g22)#switchport mode trunk
console(config-if-1/g22)#switchport trunk allowed vlan add 101-105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if-1/g22)#exit
console(config)#interface range ethernet 1/g23-1/g38
console(config-if)#switchport access vlan 103
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface range ethernet 1/g39-1/g46
console(config-if)#switchport access vlan 104
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface range ethernet 1/g47-1/g48
console(config-if)#switchport access vlan 105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#spanning-tree priority 0
console(config)#exit
console#copy running-config startup-config
This operation may take a few minutes.
Management interfaces will not be available during this time.
Are you sure you want to save? (y/n) y
Configuration Saved!
console#show vlan
VLAN Name Ports Type Authorization
----- --------------- ------------- ----- -------------
1 Default ch1-48, Default Required
1/xg1-1/xg4
101 1/g1-1/g4, Static Required
1/g21-1/g22
102 1/g5-1/g22 Static Required
103 1/g21-1/g38 Static Required
104 1/g21-1/g22, Static Required
1/g39-1/g46
105 1/g21-1/g22, Static Required
1/g47-1/g48
console#
console>enable
console#configure
console(config)#vlan database
console(config-vlan)#vlan 101
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 102
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 103
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 104
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#vlan 105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-vlan)#exit
console(config)#interface range ethernet 1/g1-1/g4
console(config-if)#switchport access vlan 101
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface range ethernet 1/g5-1/g20
console(config-if)#switchport access vlan 102
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface ethernet 1/g21
console(config-if-1/g21)#description 'trunk-to-sw2-port21'
console(config-if-1/g21)#switchport mode trunk
console(config-if-1/g21)#switchport trunk allowed vlan add 101-105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if-1/g21)#exit
console(config)#interface ethernet 1/g22
console(config-if-1/g22)#description 'trunk-to-sw2-port22'
console(config-if-1/g22)#switchport mode trunk
console(config-if-1/g22)#switchport trunk allowed vlan add 101-105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if-1/g22)#exit
console(config)#interface range ethernet 1/g23-1/g38
console(config-if)#switchport access vlan 103
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface range ethernet 1/g39-1/g46
console(config-if)#switchport access vlan 104
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#interface range ethernet 1/g47-1/g48
console(config-if)#switchport access vlan 105
Warning: The use of large numbers of VLANs or interfaces may cause significant
delays in applying the configuration.
console(config-if)#exit
console(config)#spanning-tree priority 0
console(config)#exit
console#copy running-config startup-config
This operation may take a few minutes.
Management interfaces will not be available during this time.
Are you sure you want to save? (y/n) y
Configuration Saved!
console#show vlan
VLAN Name Ports Type Authorization
----- --------------- ------------- ----- -------------
1 Default ch1-48, Default Required
1/xg1-1/xg4
101 1/g1-1/g4, Static Required
1/g21-1/g22
102 1/g5-1/g22 Static Required
103 1/g21-1/g38 Static Required
104 1/g21-1/g22, Static Required
1/g39-1/g46
105 1/g21-1/g22, Static Required
1/g47-1/g48
console#
0 comments:
Post a Comment