两个或者多个router组成一个HSRP group实现redundancy,同时,这些router都实现了NAT功能,即从outside到inside的translation。
Topology:
Client(outside) --- ASR1000 --- Server(inside, 100.100.100.142)
配置如下:
Router 1 configuration:
conf t
# ASR1002-15
inter gi 0/0/0
ip address 90.1.0.115 255.255.255.0
standby 1 ip 90.1.0.1
standby 1 authentication msrpc
standby 1 priority 200
standby 1 timers 2 6
standby 1 preempt
standby 1 track 1 decrement 50
standby 1 track 2 decrement 50
inter gi 0/0/1
ip address 100.100.100.115 255.255.255.0
standby 1 ip 100.100.100.1
standby 1 authentication msrpc
standby 1 priority 200
standby 1 timers 2 6
standby 1 preempt
standby 1 track 1 decrement 50
standby 1 track 2 decrement 50
!
track 2 interface gigabitEthernet 0/0/1 line-protocol
track 1 interface gigabitEthernet 0/0/0 line-protocol
!
ip nat inside source static 100.100.100.142 90.1.0.14
!
end
Router 2 configuration
conf t
# ASR1004-5
inter gi 0/0/0
ip address 90.1.0.105 255.255.255.0
standby 1 ip 90.1.0.1
standby 1 authentication msrpc
standby 1 priority 200
standby 1 timers 2 6
standby 1 preempt
standby 1 track 1 decrement 50
standby 1 track 2 decrement 50
inter gi 0/0/1
ip address 100.100.100.105 255.255.255.0
standby 1 ip 100.100.100.1
standby 1 authentication msrpc
standby 1 priority 200
standby 1 timers 2 6
standby 1 preempt
standby 1 track 1 decrement 50
standby 1 track 2 decrement 50
!
track 2 interface gigabitEthernet 0/0/1 line-protocol
track 1 interface gigabitEthernet 0/0/0 line-protocol
!
ip nat inside source static 100.100.100.142 90.1.0.14
!
end