CCNP~SWITCH2011~6~6
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
VLAN 和VTP
Core1#show vtp status
VTP Version : 2 Configuration Revision : 3 Maximum VLANs supported locally : 256
Number of existing VLANs : 11
VTP Operating Mode : Server
VTP Domain Name : tuoyu
VTP Pruning Mode : Enabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x5D 0x96 0x8C 0xB2 0x7D 0x10 0xFC 0xC1
Configuration last modified by 192.168.2.253 at 3-1-02 00:08:57
Local updater ID is 192.168.2.253 on interface Vl2 (lowest numbered VLAN interface found)
Core2#show vtp sta
Core2#show vtp status
VTP Version : 2
Configuration Revision : 3
Number of existing VLANs : 11
VTP Operating Mode : Client
VTP Domain Name : tuoyu
VTP Pruning Mode : Enabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x5D 0x96 0x8C 0xB2 0x7D 0x10 0xFC 0xC1
Configuration last modified by 192.168.2.253 at 3-1-02 00:08:57
Core2#show vlan-s
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/0, Fa0/1, Fa0/2, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/15
2 VLAN0002 active
3 VLAN0003 active
4 VLAN0004 active
5 VLAN0005 active
6 VLAN0006 active
7 VLAN0007 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 100
2 1003
2 enet 100002 1500 - - - - - 0 0
3 enet 100003 1500 - - - - - 0 0
4 enet 100004 1500 - - - - - 0 0
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
5 enet 100005 1500 - - - - -
0 0
6 enet 100006 1500 - - - - -
0 0
7 enet 100007 1500 - - - - -
0 0
1002 fddi 101002 1500 - 0 - - -
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
Core2#
Building configuration...
Current configuration : 2865 bytes
!
version 12.4
service timestamps debug datetime msec service timestamps log datetime msec
no service password-encryption
!
hostname Core1
!
boot-start-marker
!
!
no aaa new-model memory-size iomem 5 !
!
ip cef
no ip domain lookup !
!
!
!
! ! ! ! ! ! ! ! ! ! ! !
spanning-tree vlan 2 priority 8192 spanning-tree vlan 3 priority 8192 spanning-tree vlan 4 priority 8192 spanning-tree vlan 5 priority 16384 spanning-tree vlan 6 priority 16384 spanning-tree vlan 7 priority 16384 !
!
!
!
!
!
!
interface Port-channel1
switchport mode trunk
!
interface FastEthernet0/0
!
interface FastEthernet0/1
!
interface FastEthernet0/2
no switchport
ip address 192.168.8.2 255.255.255.0 !
!
interface FastEthernet0/4 switchport mode trunk channel-group 1 mode on !
interface FastEthernet0/5 switchport mode trunk channel-group 1 mode on !
interface FastEthernet0/6 switchport mode trunk
!
switchport mode trunk
!
interface FastEthernet0/8 switchport mode trunk
!
interface FastEthernet0/9 switchport mode trunk
!
interface FastEthernet0/10 !
interface FastEthernet0/11 !
!
interface FastEthernet0/13 !
interface FastEthernet0/14 !
interface FastEthernet0/15 !
interface FastEthernet1/0 no ip address
shutdown
duplex auto
speed auto
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.2.253 255.255.255.0 standby 2 ip 192.168.2.254
standby 2 priority 200
standby 2 preempt
standby 2 track FastEthernet0/2 80 standby 2 track Port-channel1
!
interface Vlan3
standby 3 ip 192.168.3.254
standby 3 priority 200
standby 3 preempt
standby 3 track FastEthernet0/2 80 standby 3 track Port-channel1
!
interface Vlan4
ip address 192.168.4.253 255.255.255.0 standby 4 ip 192.168.4.254
standby 4 priority 200
standby 4 preempt
standby 4 track FastEthernet0/2 80
!
interface Vlan5
ip address 192.168.5.253 255.255.255.0 standby 5 ip 192.168.5.254
standby 5 priority 150
!
interface Vlan6
ip address 192.168.6.253 255.255.255.0 standby 6 ip 192.168.6.254
standby 6 priority 150
!
interface Vlan7
standby 7 ip 192.168.7.254
standby 7 priority 150
!
router ospf 1
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0 network 192.168.3.0 0.0.0.255 area 0 network 192.168.4.0 0.0.0.255 area 0 network 192.168.5.0 0.0.0.255 area 0 network 192.168.6.0 0.0.0.255 area 0 network 192.168.7.0 0.0.0.255 area 0 network 192.168.8.0 0.0.0.255 area 0
ip http server
no ip http secure-server
!
!
!
mac-address-table static 0000.0c07.ac03 interface FastEthernet0/5 vlan 3
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0 logging synchronous line aux 0
line vty 0 4
login
!
!
end
Core2#show run
Building configuration...
Current configuration : 2796 bytes
!
version 12.4
service timestamps debug datetime msec service timestamps log datetime msec
no service password-encryption
hostname Core2
!
boot-start-marker boot-end-marker
!
!
no aaa new-model memory-size iomem 5 !
!
ip cef
no ip domain lookup
! ! ! ! ! ! ! ! ! ! ! !
!
!
!
spanning-tree backbonefast spanning-tree vlan 2 priority 16384 spanning-tree vlan 3 priority 16384 spanning-tree vlan 4 priority 16384 spanning-tree vlan 5 priority 8192 spanning-tree vlan 6 priority 8192 spanning-tree vlan 7 priority 8192 !
!
!
!
!
!
!
!
interface Port-channel1 switchport mode trunk !
interface FastEthernet0/0 !
interface FastEthernet0/1 !
interface FastEthernet0/2
!
interface FastEthernet0/3
no switchport
ip address 192.168.9.2 255.255.255.0 !
interface FastEthernet0/4
switchport mode trunk
channel-group 1 mode on
!
interface FastEthernet0/5
switchport mode trunk
channel-group 1 mode on
interface FastEthernet0/6 !
interface FastEthernet0/7 !
interface FastEthernet0/8 !
interface FastEthernet0/9 !
interface FastEthernet0/10 !
interface FastEthernet0/11 switchport mode trunk
interface FastEthernet0/12 switchport mode trunk
!
interface FastEthernet0/13 switchport mode trunk
!
interface FastEthernet0/14 switchport mode trunk
!
interface FastEthernet0/15 !
interface Vlan1
no ip address
!
interface Vlan2
ip address 192.168.2.252 255.255.255.0 standby 2 ip 192.168.2.254
standby 2 priority 150
!
interface Vlan3
ip address 192.168.3.252 255.255.255.0 standby 3 ip 192.168.3.254
standby 3 priority 150
!
interface Vlan4
ip address 192.168.4.252 255.255.255.0 standby 4 ip 192.168.4.254
standby 4 priority 150
!
interface Vlan5
ip address 192.168.5.252 255.255.255.0 standby 5 ip 192.168.5.254
standby 5 priority 200
standby 5 preempt
standby 5 track FastEthernet0/3 80 standby 5 track Port-channel1 80
!
interface Vlan6
ip address 192.168.6.252 255.255.255.0 standby 6 ip 192.168.6.254
standby 6 priority 200
standby 6 preempt
standby 6 track FastEthernet0/3 80 standby 6 track Port-channel1 80
!
interface Vlan7
ip address 192.168.7.252 255.255.255.0 standby 7 ip 192.168.7.254
standby 7 priority 200
standby 7 preempt
standby 7 track FastEthernet0/3 80
standby 7 track Port-channel1 80
!
router ospf 1
log-adjacency-changes
network 192.168.2.0 0.0.0.255 area 0 network 192.168.3.0 0.0.0.255 area 0 network 192.168.4.0 0.0.0.255 area 0 network 192.168.5.0 0.0.0.255 area 0 network 192.168.6.0 0.0.0.255 area 0 network 192.168.7.0 0.0.0.255 area 0 network 192.168.9.0 0.0.0.255 area 0 !
ip http server
no ip http secure-server
!
!
!
mac-address-table static 0000.0c07.ac06 interface FastEthernet0/5 vlan 6
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0 logging synchronous line aux 0
line vty 0 4
login
!
end
S1#show run
Building configuration...
Current configuration : 1188 bytes
!
version 12.4
service timestamps debug datetime msec service timestamps log datetime msec
no service password-encryption
!
hostname S1
!
boot-start-marker boot-end-marker
!
!
no aaa new-model memory-size iomem 5 no ip routing
!
!
no ip cef
no ip domain lookup
! ! ! ! ! ! ! ! ! ! ! !
!
!
!
spanning-tree uplinkfast spanning-tree backbonefast !
!
!
!
!
!
interface FastEthernet0/0
interface FastEthernet0/1 switchport access vlan 2 spanning-tree portfast !
interface FastEthernet0/2 switchport access vlan 3 spanning-tree portfast !
interface FastEthernet0/3 !
interface FastEthernet0/4 !
interface FastEthernet0/5 !
interface FastEthernet0/6 switchport mode trunk
!
interface FastEthernet0/7 !
interface FastEthernet0/8 !
interface FastEthernet0/9 !
interface FastEthernet0/10 !
interface FastEthernet0/11 switchport mode trunk
!
interface FastEthernet0/12 !
interface FastEthernet0/13 !
interface FastEthernet0/14 !
interface FastEthernet0/15 !
interface Vlan1
no ip address
no ip route-cache
!
ip http server
no ip http secure-server !
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0 logging synchronous line aux 0
line vty 0 4
login
!
!
end
S2#sh run
Building configuration...
Current configuration : 1211 bytes
!
version 12.4
service timestamps debug datetime msec service timestamps log datetime msec
no service password-encryption
hostname S2
!
boot-start-marker boot-end-marker
!
!
no aaa new-model memory-size iomem 5 no ip routing
!
!
no ip cef
! ! ! ! ! ! ! ! ! ! ! !
!
!
!
!
spanning-tree uplinkfast spanning-tree backbonefast !
!
!
!
!
!
switchport mode trunk !
interface FastEthernet0/1 !
interface FastEthernet0/2 !
interface FastEthernet0/3 switchport access vlan 4 spanning-tree portfast !
interface FastEthernet0/4 switchport access vlan 5
!
interface FastEthernet0/5 !
interface FastEthernet0/6 !
interface FastEthernet0/7 switchport mode trunk !
interface FastEthernet0/8 !
interface FastEthernet0/9 !
!
interface FastEthernet0/11 !
interface FastEthernet0/12 switchport mode trunk
!
interface FastEthernet0/13 !
interface FastEthernet0/14 !
interface FastEthernet0/15 !。