文档编号:1763
浏览:8160 评分:6
最后更新于:2014-07-07
交换机ST3556F端口1-44做22组静态汇聚,G0/1-12在VLAN10,G0/13-24在VLAN20,G0/25-36在VLAN30,G0/37-48、T1-8是公共口可以与所有端口接通。配置时除了汇聚组里的端口要做VLAN设置,汇聚组也要做VLAN设置。
拓扑图
命令行配置如下:
一、G0/1-12的PVID配置为10,模式为trunk,不带TAG的VLAN范围1,10。
Switch_config_if_range#interface range gigaEthernet 0/1 – 12
Switch_config_if_range# switchport trunk vlan-untagged 1,10
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 10
二、G0/13-24的PVID配置为20,模式为trunk,不带TAG的VLAN范围1,20。
Switch_config_if_range#interface range gigaEthernet 0/13 – 24
Switch_config_if_range# switchport trunk vlan-untagged 1,20
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 20
三、G0/25-36的PVID配置为30,模式为trunk,不带TAG的VLAN范围1,30。
Switch_config_if_range#interface range gigaEthernet 0/25 – 36
Switch_config_if_range# switchport trunk vlan-untagged 1,30
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 30
四、G0/37-48的PVID配置为1,模式为trunk,不带TAG的VLAN范围1,10,20,30。
Switch_config_if_range#interface range gigaEthernet 0/37 – 48
Switch_config_if_range# switchport trunk vlan-untagged 1,10,20,30
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 1
五、T1/1-8的PVID配置为1,模式为trunk,不带TAG的VLAN范围1,10,20,30。
Switch_config#interface range tgigaEthernet 1/1 - 8
Switch_config_if_range# switchport trunk vlan-untagged 1,10,20,30
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 1
六、P1-6的PVID配置为10,模式为trunk,不带TAG的VLAN范围1,10。
Switch_config#interface range port-aggregator 1 - 6
Switch_config_if_range# switchport trunk vlan-untagged 1,10
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 10
七、P7-12的PVID配置为20,模式为trunk,不带TAG的VLAN范围1,20。
Switch_config_if_range#interface range port-aggregator 7 - 12
Switch_config_if_range# switchport trunk vlan-untagged 1,20
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 20
八、P13-18的PVID配置为30,模式为trunk,不带TAG的VLAN范围1,30。
Switch_config_if_range#interface range port-aggregator 13 - 18
Switch_config_if_range# switchport trunk vlan-untagged 1,30
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 30
九、P19-22的PVID配置为1,模式为trunk,不带TAG的VLAN范围1,10,20,30。
Switch_config_if_range#interface range port-aggregator 19 - 22
Switch_config_if_range# switchport trunk vlan-untagged 1,10,20,30
Switch_config_if_range# switchport mode trunk
Switch_config_if_range# switchport pvid 1
WEB界面配置如下:
配置文件如下:
Switch#show run
Building configuration...
Current configuration:
!
!version 2.1.1B build 16463
service timestamps log date
service timestamps debug date
!
vlan shared-learning
!
!
!
spanning-tree mode rstp
!
!
!
!
aaa authentication login default local
aaa authentication enable default none
aaa authorization exec default local
!
username admin password 0 admin
!
!
!
interface Port-aggregator1
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
!
interface Port-aggregator2
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
!
interface Port-aggregator3
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
!
interface Port-aggregator4
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
!
interface Port-aggregator5
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
!
interface Port-aggregator6
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
!
interface Port-aggregator7
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
!
interface Port-aggregator8
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
!
interface Port-aggregator9
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
!
interface Port-aggregator10
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
!
interface Port-aggregator11
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
!
interface Port-aggregator12
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
!
interface Port-aggregator13
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
!
interface Port-aggregator14
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
!
interface Port-aggregator15
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
!
interface Port-aggregator16
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
!
interface Port-aggregator17
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
!
interface Port-aggregator18
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
!
interface Port-aggregator19
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface Port-aggregator20
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface Port-aggregator21
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface Port-aggregator22
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface GigaEthernet0/1
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 1 mode static
!
interface GigaEthernet0/2
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 1 mode static
!
interface GigaEthernet0/3
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 2 mode static
!
interface GigaEthernet0/4
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 2 mode static
!
interface GigaEthernet0/5
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 3 mode static
!
interface GigaEthernet0/6
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 3 mode static
!
interface GigaEthernet0/7
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 4 mode static
!
interface GigaEthernet0/8
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 4 mode static
!
interface GigaEthernet0/9
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 5 mode static
!
interface GigaEthernet0/10
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 5 mode static
!
interface GigaEthernet0/11
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 6 mode static
!
interface GigaEthernet0/12
switchport trunk vlan-untagged 1,10
switchport mode trunk
switchport pvid 10
aggregator-group 6 mode static
!
interface GigaEthernet0/13
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 7 mode static
!
interface GigaEthernet0/14
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 7 mode static
!
interface GigaEthernet0/15
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 8 mode static
!
interface GigaEthernet0/16
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 8 mode static
!
interface GigaEthernet0/17
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 9 mode static
!
interface GigaEthernet0/18
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 9 mode static
!
interface GigaEthernet0/19
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 10 mode static
!
interface GigaEthernet0/20
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 10 mode static
!
interface GigaEthernet0/21
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 11 mode static
!
interface GigaEthernet0/22
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 11 mode static
!
interface GigaEthernet0/23
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 12 mode static
!
interface GigaEthernet0/24
switchport trunk vlan-untagged 1,20
switchport mode trunk
switchport pvid 20
aggregator-group 12 mode static
!
interface GigaEthernet0/25
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 13 mode static
!
interface GigaEthernet0/26
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 13 mode static
!
interface GigaEthernet0/27
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 14 mode static
!
interface GigaEthernet0/28
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 14 mode static
!
interface GigaEthernet0/29
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 15 mode static
!
interface GigaEthernet0/30
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 15 mode static
!
interface GigaEthernet0/31
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 16 mode static
!
interface GigaEthernet0/32
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 16 mode static
!
interface GigaEthernet0/33
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 17 mode static
!
interface GigaEthernet0/34
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 17 mode static
!
interface GigaEthernet0/35
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 18 mode static
!
interface GigaEthernet0/36
switchport trunk vlan-untagged 1,30
switchport mode trunk
switchport pvid 30
aggregator-group 18 mode static
!
interface GigaEthernet0/37
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 19 mode static
!
interface GigaEthernet0/38
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 19 mode static
!
interface GigaEthernet0/39
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 20 mode static
!
interface GigaEthernet0/40
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 20 mode static
!
interface GigaEthernet0/41
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 21 mode static
!
interface GigaEthernet0/42
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 21 mode static
!
interface GigaEthernet0/43
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 22 mode static
!
interface GigaEthernet0/44
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
aggregator-group 22 mode static
!
interface GigaEthernet0/45
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface GigaEthernet0/46
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface GigaEthernet0/47
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface GigaEthernet0/48
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/1
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/2
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/3
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/4
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/5
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/6
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/7
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface TGigaEthernet1/8
switchport trunk vlan-untagged 1,10,20,30
switchport mode trunk
!
interface VLAN1
ip address 192.168.0.1 255.255.255.0
!
vlan 1,10,20,30
!
!
!
ip http server
!
!
Switch#