华为路由连通基本配置
[Huawei-GigabitEthernet0/0/0]ip add 1.1.1.1 24
[Huawei-GigabitEthernet0/0/1]ip add 2.1.1.2 24
[Huawei]nat address-group 5 2.1.1.2 2.1.1.3
[Huawei]acl number 2000
[Huawei-acl-basic-2000]rule permit source 10.0.0.0 0.255.255.255
[Huawei-GigabitEthernet0/0/1]nat outbound 2000 (出口)
[Huawei]ip route-static 0.0.0.0 0.0.0.0 2.1.1.1
[Huawei]ip route-static 10.0.0.0 255.0.0.0 1.1.1.2
[Huawei]acl number 2001
[Huawei-acl-basic-2001]rule permit source 10.0.0.0 0.255.255.255
[Huawei]nat address-group 1 2.1.1.2 2.1.1.4
[Huawei-GigabitEthernet0/0/1]nat outbound 2001