Figure 5-5
Network diagram for configuring outbound NAT
Eth0/0/0
Eth2/0/0
Area B
PC 1...PC n
10.0.0.0/24
Eth0/0/1
Area A
PC 1...PC n
192.168.20.0/24
Router
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure IP addresses for interfaces.
2.
Configure a default route.
3.
Configure outbound NAT on the WAN-side interface to allow internal hosts to access
external networks.
Procedure
Step 1
Configure IP addresses for the interfaces of the AR150/200.
<Huawei>
system-view
[Huawei]
vlan 100
[Huawei-vlan100]
quit
[Huawei]
interface vlanif 100
[Huawei-Vlanif100]
ip address 192.168.20.1 24
[Huawei-Vlanif100]
quit
[Huawei]
interface Ethernet 0/0/0
[Huawei-Ethernet0/0/0]
port link-type access
[Huawei-Ethernet0/0/0]
port default vlan 100
[Huawei-Ethernet0/0/0]
quit
[Huawei]
vlan 200
[Huawei-vlan200]
quit
[Huawei]
interface vlanif 200
[Huawei-Vlanif200]
ip address 10.0.0.1 24
[Huawei-Vlanif200]
quit
[Huawei]
interface Ethernet 0/0/1
[Huawei-Ethernet0/0/1]
port link-type access
[Huawei-Ethernet0/0/1]
port default vlan 200
[Huawei-Ethernet0/0/1]
quit
[Huawei]
interface ethernet 2/0/0
[Huawei-Ethernet2/0/0]
ip address 202.169.10.1 24
[Huawei-Ethernet2/0/0]
quit
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - IP Service
5 NAT Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
120