The router of Huawei has different ports in the specified outside and inside,
I hope to help you and avoid detours!
Quidway # show run Now create configuration... Current configuration ! Version 1.66:
Enable password, Y @ JM, UXNZL0XaLTV. U4 *!!! Access-list normal 100 permit ip 10.0.0.0 0.20.255.255 any ! Interface Aux0 Async mode interactive Encapsulation ppp ! Interface Ethernet0 # inside port # Speed auto Duplex auto No loopback Ip address 10.0.0.2 255.255.255.0 ! Interface Ethernet1 # outside port # Speed auto Duplex auto No loopback Ip address 192.168.0.198 255.255.255.0 Nat inside 100 interface # Use this command to help set the access list and address pool on the external port # ! Interface Serial0 Encapsulation ppp ! Exit Ip route 0.0.0.0 0.0.0.0 192.168.0.254 preference 60 ! End Quidway# |
The NAT configuration task list is as follows:
1. Configure the address pool
2. Configure the association between the access control list and address pool
3. Configure the easy ip feature associated with the access control list and Interface)
4. Configure the Internal Server
Add an internal server
Nat serverglobal global-addr [global-port] inside-addr inside-port protocol
Example: 202.38.160.101-103 is a public IP address.
Set up an internal FTP Server
Quidway (config-if-Serial0) # nat server global 202.38.160.101 inside 10.110.10.1 ftp tcp
! Set internal WWW Server 1
Quidway (config-if-Serial0) # nat server global 202.38.160.102 inside 10.110.10.2 www tcp
! Set up internal WWW Server 2
Quidway (config-if-Serial0) # nat server global 202.38.160.102 8080 inside 10.110.10.3 www tcp
! Set up an internal SNMP Server
Quidway (config-if-Serial0) # nat server global 202.38.160.103 inside 10.110.10.4 snmp udp
5. Configure the effective time of address translation
Related Articles]
- Simple configuration of Huawei Router
- L2TP configuration on the Huawei Router
- Summary of Huawei router configuration and firewall configuration