December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You want to use route maps to give finer control over your static NAT translation rules.
One of the best uses of this feature appears when you have two Internet Provider connections and you want to use distinct NAT rules for each:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router(config)#interfaceRouter(config-if)#FastEthernet0/0ip addressRouter(config-if)#172.16.1.5 255.255.255.252ip nat outsideRouter(config-if)#exitRouter(config)#interfaceRouter(config-if)#FastEthernet0/1ip addressRouter(config-if)#172.16.2.5 255.255.255.252ip nat outsideRouter(config-if)#exitRouter(config)#interfaceRouter(config-if)#FastEthernet0/2ip addressRouter(config-if)#192.168.1.1 255.255.255.0ip nat insideRouter(config-if)#exitRouter(config)#ip nat inside source route-mapISP-1interfaceFastEthernet0/0overloadRouter(config)#ip nat inside source route-mapISP-2interfaceFastEthernet0/1overloadRouter(config)#route-mapISP-1permitRouter(config-route-map)#10match interfaceRouter(config-route-map)#FastEthernet0/0exitRouter(config)#route-mapISP-2permitRouter(config-route-map)#10match interfaceRouter(config-route-map)#FastEthernet0/1exitRouter(config)#endRouter#
This example shows a relatively common situation in which a network has two Internet connections for redundancy. Note that we don’t show the redundancy mechanism here, but it could be handled by BGP, ...