|
本帖最后由 lucylove 于 2011-9-23 11:55 编辑
sw1:
config)#int range f0/13 - 15
config-range-if)#switchport mode trunk
config-range-if)#no shu
vlan database
vtp domain benet
vtp server
vtp password 123
vtp pruning
vlan 2
vlan 3
vlan 4
config)#int vlan 2
config-if)#ip add 192.168.2.1 255.255.255.0
config-if)#no shu
config-if)#standby 10 ip 192.168.2.254
config-if)#standby 10 priority 150
config-if)#standby 10 preempt
config-if)#standby 30 track f0/13 100
config-if)#standby 30 track f0/14 100
config-if)#standby 30 track f0/15 100
config)#int vlan 3
config-if)#ip add 192.168.3.1 255.255.255.0
config-if)#no shu
config-if)#standby 20 ip 192.168.3.254
config-if)#standby 20 priority 150
config-if)#standby 20 preempt
config-if)#standby 30 track f0/13 100
config-if)#standby 30 track f0/14 100
config-if)#standby 30 track f0/15 100
config)#int vlan 4
config-if)#ip add 192.168.4.1 255.255.255.0
config-if)#no shu
config-if)#standby 30 ip 192.168.4.254
config-if)#standby 30 priority 100
config-if)#standby 30 preempt
config)#spanning vlan 2 root primary
config)#spanning vlan 3 root primary
config)#spanning vlan 4 root secondary
sw2:
config)#int range f0/13 - 15
config-range-if)#switchport mode trunk
config-range-if)#no shu
vlan database
vtp domian benet
vtp client
vtp password 123
config)#int vlan 2
config-if)#ip add 192.168.2.2 255.255.255.0
config-if)#no shu
config-if)#standby 10 ip 192.168.2.254
config-if)#standby 10 priority 100
config-if)#standby 10 preempt
config)#int vlan 3
config-if)#ip add 192.168.3.2 255.255.255.0
config-if)#no shu
config-if)#standby 20 ip 192.168.3.254
config-if)#standby 20 priority 100
config-if)#standby 20 preempt
config)#int vlan 4
config-if)#ip add 192.168.4.2 255.255.255.0
config-if)#no shu
config-if)#standby 30 ip 192.168.4.254
config-if)#standby 30 priority 150
config-if)#standby 30 preempt
config-if)#standby 30 track f0/13 100
config-if)#standby 30 track f0/14 100
config-if)#standby 30 track f0/15 100
config)#spanning vlan 2 root secondary
config)#spanning vlan 3 root secondary
config)#spanning vlan 4 root primary
sw3:
config)#int range f0/14 - 15
config-range-if)#switchport mode trunk
config-range-if)#no shu
vlan database
vtp domian benet
vtp client
vtp password 123
config)#int f0/0
config-if)#switchport access vlan 2
config-if)#no shu
config)#int f0/1
config-if)#swithcport access vlan 3
config-if)#no shu
sw4:
config)#int range f0/14 - 15
config-range-if)#switchport mode trunk
cofing-range-if)#no shu
vlan database
vtp domian benet
vtp client
vtp password 123
config)#int f0/0
config-if)#switchport access vlan 2
config-if)#no shu
config)#int f0/1
config-if)#swithcport access vlan 4
config-if)#no shu
pc1:
vlan 2:192.168.2.10/24
pc2:
vlan 3:192.168.3.10/24
pc3:
vlan 2:192.168.2.11/24
pc4:
vlan 4:192.168.4.10/24 |
分享来源于:北京IT外包 如果有什么需要交流的,请给我留言,希望我们能够一起学习!! http://www.ithuhang.com
|
|
|
|
|
|
|