Figure 7: Bidirectional NAT Example
To configure this example:
1.
Enter the correct virtual router context.
host1(config)#
virtual-router blue
2.
Mark the inside interface.
host1:blue(config)#
interface serial 1/1:1/1
host1:blue(config-interface)#
ip nat inside
host1:blue(config-interface)#
exit
3.
Mark the outside interface.
host1:blue(config)#
interface gigabitEthernet 3/0.1
host1:blue(config-interface)#
ip nat outside
host1:blue(config-interface)#
exit
4.
Create the translation for the DNS.
host1:blue(config)#
ip nat inside source static 192.168.22.2 192.32.6.1
5.
Create the address pool for dynamic translations.
host1:blue(config)#
ip nat pool entA192 192.32.6.2 192.32.6.63 prefix-length
24
6.
Create the access list for addresses eligible for dynamic translation (that is, private
addresses).
host1:blue(config)#
access-list entA permit 192.168.22.0 0.0.0.255
7.
Create the dynamic translation rule.
host1:blue(config)#
ip nat inside source list entA pool entA192
8.
Configure a default route to the outside interface.
host1:blue(config)#
ip route 0.0.0.0 0.0.0.0 gigabitEthernet 3/0.1
9.
Configure a null route for the inside global addresses, to prevent routing loops
when no matching translation exists.
82
■
NAT Configuration Examples
JUNOSe 11.1.x IP Services Configuration Guide
Содержание IP SERVICES - CONFIGURATION GUIDE V 11.1.X
Страница 6: ...vi...
Страница 8: ...viii JUNOSe 11 1 x IP Services Configuration Guide...
Страница 18: ...xviii Table of Contents JUNOSe 11 1 x IP Services Configuration Guide...
Страница 20: ...xx List of Figures JUNOSe 11 1 x IP Services Configuration Guide...
Страница 22: ...xxii List of Tables JUNOSe 11 1 x IP Services Configuration Guide...
Страница 28: ...2 Chapters JUNOSe 11 1 x IP Services Configuration Guide...
Страница 138: ...112 Monitoring J Flow Statistics JUNOSe 11 1 x IP Services Configuration Guide...
Страница 286: ...260 Monitoring IP Tunnels JUNOSe 11 1 x IP Services Configuration Guide...
Страница 312: ...286 Monitoring IP Reassembly JUNOSe 11 1 x IP Services Configuration Guide...
Страница 357: ...Part 2 Index Index on page 333 Index 331...
Страница 358: ...332 Index JUNOSe 11 1 x IP Services Configuration Guide...