实例2-多VLAN网络
本节中的全设备配置均针对实例2:2948G-L3 配置样例中的单VLAN 网络。
Catalyst 2948G-L3
Catalyst 3512XL
Catalyst 2924XL
Catalyst 3548XL
2948G-L3#show running-config Building configuration... Current configuration: ! ! Last configuration change at 04:48:24 PST Thu Jun 22 2000 ! NVRAM config last updated at 04:45:02 PST Thu Jun 22 2000 ! version 12.0 no service pad service timestamps debug datetime msec localtime service timestamps log datetime msec localtime no service passWord-encryption ! hostname 2948G-L3 ! no logging console enable password verysecret ! clock timezone PST -8 clock calendar-valid ip subnet-zero bridge irb ! ! ! interface Port-channel1 no ip address no ip directed-broadcast hold-queue 300 in ! interface Port-channel1.1 encapsulation isl 1 no ip redirects no ip directed-broadcast bridge-group 1 ! interface Port-channel1.100 encapsulation isl 100 ip address 10.100.100.1 255.255.255.0 no ip redirects no ip directed-broadcast ! interface Port-channel2 no ip address no ip directed-broadcast hold-queue 300 in ! interface Port-channel2.1 encapsulation isl 1 no ip redirects no ip directed-broadcast bridge-group 1 ! interface Port-channel2.10 encapsulation isl 10 ip address 10.10.10.1 255.255.255.0 no ip redirects no ip directed-broadcast ! interface Port-channel2.20 encapsulation isl 20 ip address 10.20.20.1 255.255.255.0 no ip redirects no ip directed-broadcast ! interface FastEthernet1 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet2 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet3 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet4 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet5 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet6 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet7 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet8 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet9 no ip address
no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet10 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet11 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet12 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet13 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet14 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet15 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet16 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet17 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet18 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet19 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet20 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet21 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet22 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet23 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet24 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet25 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet26 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet27 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet28 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet29 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet30 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet31 no ip address no ip directed-broadcast bridge-group 200
bridge-group 200 spanning-disabled ! interface FastEthernet32 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet33 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet34 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet35 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet36 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet37 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet38 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet39 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet40 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet41 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet42 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet43 no ip address no ip directed-broadcast bridge-group 200 bridge-group 200 spanning-disabled ! interface FastEthernet44 no ip address no ip directed-broadcast ! interface FastEthernet44.1 encapsulation isl 1 no ip redirects no ip directed-broadcast bridge-group 1 ! interface FastEthernet44.30 encapsulation isl 30 ip address 10.30.30.1 255.255.255.0 no ip redirects no ip directed-broadcast ! interface FastEthernet45 no ip address no ip directed-broadcast channel-group 2 ! interface FastEthernet46 no ip address no ip directed-broadcast channel-group 2 ! interface FastEthernet47 no ip address no ip directed-broadcast channel-group 2 ! interface FastEthernet48 no ip address no ip directed-broadcast channel-group 2 ! interface GigabitEthernet49 no ip address no ip directed-broadcast no negotiation auto channel-group 1 ! interface GigabitEthernet50 no ip address no ip directed-broadcast no negotiation auto channel-group 1 ! interface BVI1 ip address 10.1.1.1 255.255.255.0 no ip directed-broadcast no ip route-cache cef ! interface BVI200 ip address 10.200.200.1 255.255.255.0 no ip directed-broadcast no ip route-cache cef ! ip classless ! bridge 1 PRotocol ieee bridge 1 route ip bridge 200 protocol ieee bridge 200 route ip ! line con 0 transport input none
line aux 0 line vty 0 4 password secret login ! end 2948G-L3#
3512XL#show running-config Building configuration... Current configuration: ! ! Last configuration change at 12:52:31 PST Thu Jun 22 2000 ! NVRAM config last updated at 12:52:32 PST Thu Jun 22 2000 ! version 12.0 no service pad service timestamps debug datetime msec localtime service timestamps log datetime msec localtime no service password-encryption ! hostname 3512XL ! no logging console enable password verysecret ! ! ! ! ! clock timezone PST -8 ! ip subnet-zero ! ! ! interface FastEthernet0/1 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/2 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/3 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/4 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/5 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/6 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/7 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/8 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/9 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/10 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/11 switchport access vlan 100 spanning-tree portfast ! interface FastEthernet0/12 switchport access vlan 100 spanning-tree portfast ! interface GigabitEthernet0/1 no negotiation auto port group 1 switchport mode trunk ! interface GigabitEthernet0/2 no negotiation auto port group 1 switchport mode trunk ! interface VLAN1 ip address 10.1.1.2 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 10.1.1.1 ! line con 0 transport input none stopbits 1 line vty 0 4 password secret login line vty 5 15 login ! end 3512XL#
2924XL#show running-config Building configuration... Current configuration: ! ! Last configuration change at 12:58:30 PST Thu Jun 22 2000 ! NVRAM config last updated at 12:58:40 PST Thu Jun 22 2000 ! version 12.0 no service pad service timestamps debug datetime msec localtime service timestamps log datetime msec localtime no service password-encryption ! hostname 2924XL ! no logging console enable password verysecret ! ! ! ! ! clock timezone PST -8 ! ip subnet-zero ! ! ! interface FastEthernet0/1 switchport access vlan 30 spanning-tree portfast
! interface FastEthernet0/2 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/3 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/4 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/5 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/6 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/7 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/8 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/9 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/10 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/11 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/12 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/13 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/14 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/15 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/16 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/17 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/18 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/19 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/20 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/21 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/22 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/23 switchport access vlan 30 spanning-tree portfast ! interface FastEthernet0/24 switchport mode trunk ! interface VLAN1 ip address 10.1.1.4 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 10.1.1.1 ! line con 0 transport input none stopbits 1 line vty 0 4 password secret login line vty 5 15 login ! end 2924XL#
3548XL#show running-config Building configuration... Current configuration: ! ! Last configuration change at 12:56:22 PST Thu Jun 22 2000 ! NVRAM config last updated at 12:56:23 PST Thu Jun 22 2000 ! version 12.0 no service pad service timestamps debug datetime msec localtime service timestamps log datetime msec localtime no service password-encryption ! hostname 3548XL ! no logging console enable password verysecret ! ! ! ! ! clock timezone PST -8 ! ip subnet-zero ! ! ! interface FastEthernet0/1 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/2
switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/3 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/4 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/5 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/6 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/7 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/8 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/9 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/10 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/11 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/12 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/13 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/14 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/15 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/16 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/17 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/18 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/19 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/20 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/21 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/22 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/23 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/24 switchport access vlan 10 spanning-tree portfast ! interface FastEthernet0/25 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/26 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/27 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/28 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/29 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/30 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/31 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/32 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/33 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/34 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/35 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/36
switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/37 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/38 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/39 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/40 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/41 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/42 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/43 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/44 switchport access vlan 20 spanning-tree portfast ! interface FastEthernet0/45 port group 1 switchport mode trunk ! interface FastEthernet0/46 port group 1 switchport mode trunk ! interface FastEthernet0/47 port group 1 switchport mode trunk ! interface FastEthernet0/48 port group 1 switchport mode trunk ! interface GigabitEthernet0/1 ! interface GigabitEthernet0/2 ! interface VLAN1 ip address 10.1.1.3 255.255.255.0 no ip directed-broadcast no ip route-cache ! ip default-gateway 10.1.1.1 ! line con 0 transport input none stopbits 1 line vty 0 4 password secret login line vty 5 15 login ! end 3548XL#
新闻热点
疑难解答