R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.255
interface Ethernet0/0
ip address 172.168.1.1 255.255.255.0
interface Ethernet0/1
ip address 172.168.2.1 255.255.255.0
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 172.16.0.0 0.0.255.255 area 0
SW1:
vtp domain eilm
vtp mode transparent
spanning-tree mode mst
spanning-tree extend system-id
spanning-tree mst configuration
instance 2 vlan 2-4
instance 3 vlan 10-12, 99
spanning-tree mst 2 priority 0
spanning-tree mst 3 priority 4096
vlan internal allocation policy ascending
vlan 2-4,10-12,99
track 1 interface Ethernet0/3 line-protocol
track 2 interface Ethernet0/0 line-protocol
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface Port-channel1
switchport
switchport access vlan 3
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/0
no switchport
ip address 172.16.1.2 255.255.255.0
duplex auto
interface Ethernet0/1
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet1/0
switchport access vlan 3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
channel-group 1 mode on
interface Ethernet1/1
switchport access vlan 2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
channel-group 1 mode on
interface Ethernet1/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
channel-group 1 mode on
interface Ethernet1/3
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Vlan1
no ip address
shutdown
interface Vlan2
ip address 192.168.1.1 255.255.255.0
vrrp 1 ip 192.168.1.254
vrrp 1 priority 120
vrrp 1 track 1 decrement 30
vrrp 1 track 2 decrement 30
vrrp 2 ip 192.168.1.253
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 172.16.0.0 0.0.255.255 area 0
network 192.168.1.0 0.0.0.255 area 0
ip dhcp pool s1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.0 255.255.255.0
dns-server 114.114.114.114
SW2:
vtp domain eilm
vtp mode transparent
spanning-tree mode mst
spanning-tree extend system-id
spanning-tree mst configuration
instance 2 vlan 2-4
instance 3 vlan 10-12, 99
spanning-tree mst 2 priority 4096
spanning-tree mst 3 priority 0
vlan internal allocation policy ascending
vlan 2-4,10-12,99
track 1 interface Ethernet0/3 line-protocol
track 2 interface Ethernet0/1 line-protocol
interface Loopback0
ip address 3.3.3.3 255.255.255.255
interface Port-channel1
switchport
switchport access vlan 11
switchport trunk encapsulation dot1q
switchport mode trunk
interface Ethernet0/0
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet0/1
no switchport
ip address 172.16.2.2 255.255.255.0
duplex auto
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet1/0
switchport access vlan 11
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
channel-group 1 mode on
interface Ethernet1/1
switchport access vlan 10
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
channel-group 1 mode on
interface Ethernet1/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
channel-group 1 mode on
interface Ethernet1/3
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Vlan1
no ip address
shutdown
interface Vlan2
ip address 192.168.1.2 255.255.255.0
vrrp 1 ip 192.168.1.254
vrrp 2 ip 192.168.1.253
vrrp 2 priority 120
vrrp 2 track 1 decrement 30
vrrp 2 track 2 decrement 30
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 172.16.0.0 0.0.255.255 area 0
network 192.168.1.0 0.0.0.255 area 0
ip dhcp pool s2
network 192.168.1.0 255.255.255.0
default-router 192.168.1.0 255.255.255.0
dns-server 114.114.114.114
SW4:
vtp domain eilm
vtp mode transparent
spanning-tree mode mst
spanning-tree extend system-id
spanning-tree mst configuration
instance 2 vlan 2-4
instance 3 vlan 10-12, 99
vlan internal allocation policy ascending
vlan 2-4,10-12,99
interface Ethernet0/0
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet0/1
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet1/0
duplex auto
interface Ethernet1/1
duplex auto
interface Ethernet1/2
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet1/3
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Vlan1
no ip address
shutdown
SW5:
vtp domain eilm
vtp mode transparent
spanning-tree mode mst
spanning-tree extend system-id
spanning-tree mst configuration
instance 2 vlan 2-4
instance 3 vlan 10-12, 99
vlan internal allocation policy ascending
vlan 2-4,10-12,99
interface Ethernet0/0
switchport access vlan 99
switchport mode access
duplex auto
interface Ethernet0/1
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet0/2
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet0/3
switchport trunk encapsulation dot1q
switchport mode trunk
duplex auto
interface Ethernet1/0
duplex auto
interface Ethernet1/1
duplex auto
interface Ethernet1/2
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Ethernet1/3
switchport access vlan 99
switchport mode access
shutdown
duplex auto
interface Vlan1
no ip address
shutdown
PC1-4:
interface e0/0
pc1(config-if)#ip add
pc1(config-if)#ip address d
pc1(config-if)#ip address dhcp
原文:http://blog.51cto.com/13597470/2087769