360
# Configure NAT.
[Router] interface gigabitethernet 1/0/2
[Router-GigabitEthernet1/0/2] nat outbound 2001 address-group 1
NBT ALG configuration example
Network requirements
As shown in
, a company accesses the Internet through a router with NAT and ALG enabled.
The company provides NBT services to the outside. The inside network segment of the company is
192.168.1.0/24. Configure NAT and ALG to meet the following requirements:
•
Host B can access the WINS server and Host A with host names.
•
Host A uses 5.5.5.9 as its external IP address, and the WINS server uses 5.5.5.10 as its external
IP address.
Figure 127
Network diagram for NBT ALG configuration
Configuration procedure
# Configure a static NAT entry.
<Router> system-view
[Router] nat static 192.168.1.3 5.5.5.9
# Enable ALG for NBT.
[Router] alg nbt
# Configure NAT.
[Router] interface gigabitethernet 1/0/2
[Router-GigabitEthernet1/0/2] nat outbound static
# Configure the internal WINS server.
[Router-GigabitEthernet1/0/2] nat server protocol udp global 5.5.5.10 137 inside
192.168.1.2 137
[Router-GigabitEthernet1/0/2] nat server protocol udp global 5.5.5.10 138 inside
192.168.1.2 138
[Router-GigabitEthernet1/0/2] nat server protocol tcp global 5.5.5.10 139 inside
192.168.1.2 139