NAT在HSRP网络中的实现(含配置)


两个或者多个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 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值