Hello everyone,
I'd like to share a simple NAT configuration on NE router, Here we configure easy-IP mode for NAT pool, which means that NAT will choose the interface IP address to make the NAT.
1. Create NAT instance, Binding a Service Board to a NAT Instance
[~HUAWEI] service-location 1
[*HUAWEI-service-location-1] location slot 1
[*HUAWEI-service-location-1] commit
[~HUAWEI-service-location-1] quit
[~HUAWEI] service-instance-group group1
[*HUAWEI-service-instance-group-group1] service-location 1
[*HUAWEI-service-instance-group-group1] commit
[~HUAWEI-service-instance-group-group1] quit
[~HUAWEI] nat instance nat1 id 1
[*HUAWEI-nat-instance-nat1] service-instance-group group1
[*HUAWEI-nat-instance-nat1] commit
[~HUAWEI-nat-instance-nat1] quit
2. Configure easy IP NAT pool, here we suppose the outbound interface is 0/2/1
[~HUAWEI] nat instance nat1 id 1
[*HUAWEI-nat-instance-cpe1] nat address-group group1 group-id 1 unnumbered interface GigabitEthernet 0/2/1
3. Confiure ip address for outbound interface:
[~HUAWEI] interface gigabitEthernet 0/2/1
[~HUAWEI-GigabitEthernet0/2/1] ip address 120.10.10.143 255.255.255.0
[*HUAWEI-GigabitEthernet0/2/1] commit
[~HUAWEI-GigabitEthernet0/2/1] quit
4. Configure ACL to match the traffic that need to do the NAT:
[~HUAWEI] acl 3001
[*HUAWEI-acl4-advance-3001] rule 5 permit ip source 10.91.100.0 0.0.0.255
[*HUAWEI-acl4-advance-3001] commit
[~HUAWEI-acl4-advance-3001] quit
5. Apply NAT at the outbound interface:
[~HUAWEI] interface gigabitEthernet 0/2/1
[*HUAWEI-GigabitEthernet0/2/1] ip address 120.10.10.143 255.255.255.0
[*HUAWEI-GigabitEthernet0/2/1] nat bind acl 3001 instance nat1
[*HUAWEI-GigabitEthernet0/2/1] commit
[~HUAWEI-GigabitEthernet0/2/1] quit
That is all I want to share with you! Thank you!
From group: Router