R1(config-if)#ip rip authentication mode md5
路由器R2,基本配置如下: interface FastEthernet0/0
ip address 192.168.11.1 255.255.255.0 duplex auto speed auto !
interface FastEthernet1/0 no ip address duplex auto speed auto shutdown !
interface Serial2/0
ip address 192.168.9.2 255.255.255.0 clock rate 64000 !
interface Serial3/0
ip address 192.168.10.2 255.255.255.0 clock rate 64000 !
interface FastEthernet4/0 no ip address shutdown !
interface FastEthernet5/0 no ip address shutdown !
router ospf 100 log-adjacency-changes redistribute rip subnets
26
network 192.168.9.0 0.0.0.255 area 0 network 192.168.10.0 0.0.0.255 area 0 ! router rip version 2
redistribute ospf 100 metric 2 network 192.168.9.0 network 192.168.10.0 network 192.168.11.0 no auto-summary !
ip classless ! ! ! ! ! ! ! line con 0 line vty 0 4 password 123456 login ! ! ! End
路由器R3,基本配置如下: interface FastEthernet0/0
ip address 192.168.5.2 255.255.255.0 duplex auto speed auto !
interface FastEthernet1/0
27
ip address 192.168.7.2 255.255.255.0 duplex auto speed auto !
interface Serial2/0
ip address 192.168.9.1 255.255.255.0 !
interface Serial3/0 no ip address !
interface FastEthernet4/0 no ip address shutdown !
interface FastEthernet5/0 no ip address shutdown !
router ospf 100 router-id 4.4.4.4 log-adjacency-changes
network 192.168.5.0 0.0.0.255 area 1 network 192.168.7.0 0.0.0.255 area 1 network 192.168.9.0 0.0.0.255 area 0 !
ip classless ! ! ! ! ! ! ! line con 0 line vty 0 4 password 123456
28
login ! ! ! End
路由器R4,基本配置如下: interface FastEthernet0/0
ip address 192.168.8.2 255.255.255.0 duplex auto speed auto !
interface FastEthernet1/0
ip address 192.168.6.2 255.255.255.0 duplex auto speed auto !
interface Serial2/0
ip address 192.168.10.1 255.255.255.0 !
interface Serial3/0 no ip address !
interface FastEthernet4/0 no ip address shutdown !
interface FastEthernet5/0 no ip address shutdown !
router ospf 100 router-id 5.5.5.5 log-adjacency-changes
network 192.168.6.0 0.0.0.255 area 1 network 192.168.8.0 0.0.0.255 area 1 network 192.168.10.0 0.0.0.255 area 0
29
!
ip classless ! ! ! ! ! ! ! line con 0 line vty 0 4 password 123456 login ! ! ! End
端口镜像,sw8 的f1/7 口做端口镜像,要求监控f1/15 端口的入流量 的配置为:sw8(config)#monitor session 1 source interface f0/15 rx sw8(config)#monitor session 1 destination interface f0/7 VRRP
sw5(config-if)#int f0/3
sw5(config-if)#vrrp 1 ip 192.168.0.1 sw5(config-if)#vrrp 1 priority 200 sw5(config-if)#vrrp 1 preempt sw5(config-if)#vrrp 2 ip 192.168.2.1 sw5(config-if)#vrrp 2 priority 100 sw5(config-if)#vrrp 2 preempt sw6 配置类似
30