- 论坛徽章:
- 0
|
![]()
en
config t
line 0
no exec-timeout
no ip domain lookup
end
r1
en
config t
interface f0/0
no shut
interface f0/0.1
en do 1
ip add 10.0.0.3 255.255.255.0
standby 1 ip 10.0.0.1
standby 1 priority 130
standby 1 preempt
no shut
interface f0/0.2
en do 2
ip add 11.0.0.3 255.255.255.0
ip helper-address 10.0.0.2
standby 2 ip 11.0.0.1
standby 2 priority 125
standby 2 preempt
no shut
end
r2
config t
interface f0/0
no shut
interface f0/0.1
en do 1
ip add 10.0.0.4 255.255.255.0
standby 1 ip 10.0.0.1
standby 1 priority 125
standby 1 preempt
no shut
interface f0/0.2
en do 2
ip add 11.0.0.4 255.255.255.0
ip helper-address 10.0.0.2
standby 2 ip 11.0.0.1
standby 2 priority 130
standby 2 preempt
no shut
end
s1
en
vlan database
vtp domain zhou
vlan 1
vlan 2
vtp server
exit
config t
interface range f0/0 -3
switch mode trunk
no shut
exit
s2
en
vlan database
vtp domain zhou
vtp client
exit
config t
interface range f0/0 -3
switch mode trunk
no shut
exit
s3
en
vlan database
vtp client
vtp domain zhou
exit
config t
interface range f0/0 -3
no shut
interface f0/0
switch mode trunk
interface f0/3
switch mode trunk
exit
end
s4
en
vlan database
vtp domain zhou
vtp client
exit
config t
interface f0/0
switch mode trunk
interface f0/3
switch mode trunk
no shut
end
s3
config t
interface range f0/1 -2
switch access vlan 1
no shut
exit
s4
config t
interface f0/1
switch access vlan 2
no shut
exit
r3/r4
en
config t
no ip routing
interface f0/0
ip add dhcp
no shut
exit
r5
en
config t
no ip routing
ip dhcp pool vlan1
network 10.0.0.0 255.255.255.0
default-router 10.0.0.1
ip dhcp excluded-address 10.0.0.1 10.0.0.4
ip dhcp pool vlan2
network 11.0.0.0 255.255.255.0
default-router 11.0.0.1
ip dhcp excluded-address 10.0.0.1 10.0.0.4
exit
config t
ip default-gateway 10.0.0.1
interface f0/0
ip add 10.0.0.2 255.255.255.0
no shut
end
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/94591/showart_1900505.html |
|