VTP STP 三层交换 HSRP思科认证
文章作者 100test 发表时间 2009:06:18 20:55:36
来源 100Test.Com百考试题网
路由器配置
路由基本配置
en
conf t
no ip do lo
lin c 0
no exec-t
logg s
end
接口配置
conf t
int f0/0
ip add 1.1.1.1 255.255.255.0
no shu
int f1/0
ip add 2.2.2.1 255.255.255.0
no shu
int loopback 1
ip add 3.3.3.1 255.255.255.0
no shu
end
rip路由协议配置
conf t
router rip
ver 2
no auto
network 1.1.1.0
network 2.2.2.0
network 3.3.3.0
end
三层交换机S3A
conf t
no ip do lo
ho S3A
lin c 0
no exec-t
logg s
end
vlan data
vtp domain benet
vtp password 123456
vtp v2-mode
vtp pruning
vl 2
vl 3
vl 4
exit
conf t
int f0/0
no switchport
ip add 1.1.1.254 255.255.255.0
no shu
int vl 1
ip add 192.168.1.254 255.255.255.0
no shu
int vl 2
ip add 192.168.2.254 255.255.255.0
no shu
int vl 3
ip add 192.168.3.254 255.255.255.0
no shu
int vl 4
ip add 192.168.4.254 255.255.255.0
no shu
end
conf t
spanning-tree vlan 1 root primary
spanning-tree vlan 2 root secondary
spanning-tree vlan 3 root primary
spanning-tree vlan 4 root secondary
spanning-tree backbonefast
int f0/11
sw mo tr
int f0/12
sw mo tr
int f0/13
sw mo tr
int range f0/14 - 15
channel-group 1 mode on
int port-channel 1
sw mo tr
end
conf t
router rip
ver 2
no auto
network 1.1.1.0
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
network 192.168.4.0
end