Thứ Năm, 26 tháng 5, 2011

Lab2 VLAN STP

Configure R1
!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
no ip dhcp use vrf connected
!
ip dhcp pool Vlan10
   network 192.168.10.0 255.255.255.0
   default-router 192.168.10.2
   dns-server 8.8.8.8
!
ip dhcp pool Vlan20
   network 192.168.20.0 255.255.255.0
   default-router 192.168.20.2
   dns-server 8.8.8.8
!
ip dhcp pool Vlan30
   network 192.168.30.0 255.255.255.0
   default-router 192.168.30.2
   dns-server 8.8.8.8
!
ip dhcp pool Vlan40
   network 192.168.40.0 255.255.255.0
   default-router 192.168.40.2
   dns-server 8.8.8.8
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.11.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router rip
 version 2
 network 192.168.11.0
 no auto-summary
!
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

Configure R2
!

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 192.168.11.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 192.168.10.2 255.255.255.0
 ip helper-address 192.168.11.1
 no snmp trap link-status
!
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 192.168.20.2 255.255.255.0
 ip helper-address 192.168.11.1
 no snmp trap link-status
!
interface FastEthernet0/0.30
 encapsulation dot1Q 30
 ip address 192.168.30.2 255.255.255.0
 ip helper-address 192.168.11.1
 no snmp trap link-status
!
interface FastEthernet0/0.40
 encapsulation dot1Q 40
 ip address 192.168.40.2 255.255.255.0
 ip helper-address 192.168.11.1
 no snmp trap link-status
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
router rip
 version 2
 network 192.168.10.0
 network 192.168.11.0
 network 192.168.20.0
 network 192.168.30.0
 network 192.168.40.0
 no auto-summary
!
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

Configure SW1
!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW1
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
spanning-tree vlan 10 priority 4096
spanning-tree vlan 20 priority 8192
spanning-tree vlan 30 priority 12288
spanning-tree vlan 40 priority 4096
!
!
!
!
interface FastEthernet0/0
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end

Configure SW2
!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW2
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
spanning-tree vlan 10 priority 12288
spanning-tree vlan 20 priority 4096
spanning-tree vlan 30 priority 8192
spanning-tree vlan 40 priority 12288
!
!
!
!
interface FastEthernet0/0
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end

Configure SW3
!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW3
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
spanning-tree vlan 10 priority 8192
spanning-tree vlan 20 priority 12288
spanning-tree vlan 30 priority 4096
spanning-tree vlan 40 priority 8192
!
!
!
!
interface FastEthernet0/0
 switchport access vlan 10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 switchport access vlan 10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 switchport access vlan 10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 switchport access vlan 10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 switchport access vlan 20
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 switchport access vlan 20
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 switchport access vlan 20
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 switchport access vlan 30
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 switchport access vlan 30
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 switchport access vlan 30
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 switchport access vlan 40
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 switchport access vlan 40
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 switchport access vlan 40
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end

Configure SW4
!

version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname SW4
!
logging queue-limit 100
!
ip subnet-zero
!
!
no ip domain lookup
!
vtp file nvram:vlan.dat

!
!
!
!
!
!
!
!
!
no voice hpi capture buffer
no voice hpi capture destination
!
!
mta receive maximum-recipients 0
!
!
!
!
interface FastEthernet0/0
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/1
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/2
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/3
 switchport mode trunk
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/4
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/5
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/6
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/7
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/8
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/9
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/10
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/11
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/12
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/13
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/14
 no ip address
 spanning-tree portfast
!
interface FastEthernet0/15
 no ip address
 spanning-tree portfast
!
interface Vlan1
 no ip address
 shutdown
!
ip http server
ip classless
!
!
!
!
call rsvp-sync
!
!
mgcp profile default
!
!
!
dial-peer cor custom
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
 login
!
!
end
---------------The end-----------------

Không có nhận xét nào:

Đăng nhận xét