例子二:
本例主要涉及HSRP培植,使用HSRP可使用网络提供更好的访问性能,
并使网络拓扑结构对主机来说是透明的。活动器受HSRP中培植的备份路由器
的监控,一旦活动路由器失去作用,备份路由器取代它从而变为活动路由器。
Helper address 通过发送广播到目标使连接变得更容易。
本例里:helper address 是一个DHCP 地址。
本例也包括对IP多播,DVMRP通道,和PIM的配置。
version 12.0
service slave-coredump
no service pad
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service dup-small-servers
service tcp-small-servers
!
hostname Ceneter_8540
!
aaa new-model
aaa authentication login admin tacacs+enable
enable password 7 105D100A0618
!
no ip rcmd domain-lookup
ip rcmd rcp-enable
ip rcmd rsh-enable
ip rcmd remote-host root 172.19.1.162 root enable
ip rcmd remote-host root 172.19.2.81 root enable
ip rcmd remote-host root 172.19.6.66 root enable
ip rcmd remote-host root 172.19.43.19 root enable
ip rcmd remote-username root
ip domain-name a.com
ip name-server 12.19.2.132
ip name-server 198.22.30.32
ip multicast-routing
ip dvmrp route-limit 7000
clock timezone PST -8
clock summer-time PDT recurring
!
INTERACE FastEthernet1/0/0
ip address 172.19.95.197 255.255.255.192
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/1
description Bldg 1 Network A
ip address 172.19.93.1 255.255.255.192
ip helper-address 172.19.2.74
ip helper-address 172.19.2.123
ip helper-address 172.19.30.31
ip helper-address 172.19.2.121
ip helper-address 172.27.84.140
ip helper-address 172.19.67.35
no ip redirects
no ip directed-broadcast
ip pim sparse-mode
ntp broadcast key 10
standby priority 200
standby preempt
standby ip 172.19.93.6
!
interface FastEthernet1/0/2
ip address 172.19.90.1 255.255.255.192
ip helper-address 172.19.2.74
ip helper-address 172.19.2.123
ip helper-address 172.19.30.31
ip helper-address 172.19.2.121
ip helper-address 172.27.84.140
ip helper-address 172.19.67.35
no ip redirects
no ip directed-broadcast
ip pim sparse-mode
ntp broadcast key 10
standby priority 200
standby preempt
standby ip 172.19.90.6
standby track FastEthernet1/0/3 150
!
interface FastEthernet1/0/3
ip address 172.19.91.1 255.255.255.192
ip helper-address 172.19.2.74
ip helper-address 172.19.2.123
ip helper-address 172.19.30.31
ip helper-address 172.19.2.121
ip helper-address 172.27.84.140
ip helper-address 172.19.67.35
no ip redirects
no ip directed-broadcast
ip pim sparse-mode
ntp broadcast key 10
standby priority 200
standby preempt
standby ip 172.19.91.6
!
interface FastEthernet1/0/4
description Building 2 Network A
ip address 172.19.90.1 255.255.255.192
ip helper-address 172.19.2.74
ip helper-address 172.19.2.123
ip helper-address 172.19.30.31
ip helper-address 172.19.2.121
ip helper-address 172.27.84.140
ip helper-address 172.19.67.35
no ip redirects
no ip directed-broadcast
ip pim sparse-mode
ntp broadcast key 10
standby priority 200
standby preempt
standby ip 172.19.88.6
!
interface FastEthernet1/0/4
description Building 3 Network A
ip address 172.19.90.1 255.255.255.192
ip helper-address 172.19.2.74
ip helper-address 172.19.2.123
ip helper-address 172.19.30.31
ip helper-address 172.19.2.121
ip helper-address 172.27.84.140
ip helper-address 172.19.67.35
no ip redirects
no ip directed-broadcast
ip pim sparse-mode
ntp broadcast key 10
standby priority 200
standby preempt
standby ip 172.19.89.6
!
interface FastEthernet1/0/6
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/7
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/8
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/9
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/10
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/11
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/12
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/13
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/14
no ip address
no ip directed-broadcast
no keepalive
!
interface FastEthernet1/0/15
no ip address
no ip directed-broadcast
no keepalive
!
interface Ethernet0
no ip address
no ip directed-broadcast
shutdown
!
router eigrp 109
network 172.19.0.0
no auto-summary
!
ip forward-protocol udp sunrpc
ip pim accept-rp auto-rp
ip pim accept-rp 172.19.10.13
logging 172.19.43.19
snmp-server community 8540 RO98
snmp-server community RW 99
snmp-server host 172.19.43.19 traps public
tacacs-server host 172.19.2.210
trcacs-server timeout 15
!
line con 0
password 7 071B245F5A
transport input none
line aux 0
password 7 071B245F5A
line vty 0
exec-timeout 0 0
login authentication admin
line vty 1
exec-timeout 0 0
login authentication admin
length 57
line vtp 2 4
exec-timeout 0 0
login authentication admin
【责编:admin】
--------------------next---------------------