Figure 7 illustrates how outside hosts can initiate conversations with inside hosts through the use of a DNS server that resides on the inside network.
The inside realm uses basic NAT. The inside network uses a mix of private subnetwork address space (192.168.22/24) and registered public addresses.
Figure 7: Bidirectional NAT Example

To configure this example:
- host1(config)#virtual-router blue
- host1:blue(config)#interface serial 1/1:1/1
- host1:blue(config-interface)#ip nat inside
- host1:blue(config-interface)#exit
- host1:blue(config)#interface gigabitEthernet
3/0.1
- host1:blue(config-interface)#ip nat outside
- host1:blue(config-interface)#exit
- host1:blue(config)#ip nat inside source static
192.168.22.2 192.32.6.1
- host1:blue(config)#ip nat pool entA192 192.32.6.2
192.32.6.63 prefix-length 24
- host1:blue(config)#access-list entA permit
192.168.22.0 0.0.0.255
- host1:blue(config)#ip nat inside source list
entA pool entA192
- host1:blue(config)#ip route 0.0.0.0 0.0.0.0
gigabitEthernet 3/0.1
- host1:blue(config)#ip route 192.32.6.0 255.255.255.192
null 0
![]() |
Note: Null route applies to 192.32.6.0 and 192.32.6.1, which do not exist in the address pool. |