华为路由器配置Easy IP
来源:原创
时间:2024-04-21
作者:脚本小站
分类:网络
AR1:
[AR1]interface GigabitEthernet 0/0/0 [AR1-GigabitEthernet0/0/0]ip address 192.168.0.1 24 [AR1]interface GigabitEthernet 0/0/1 [AR1-GigabitEthernet0/0/1]ip address 12.2.2.1 24 [AR1]ip route-static 0.0.0.0 0 12.2.2.254 [AR1] [AR1]acl 2000 [AR1-acl-basic-2000]rule permit source 192.168.0.0 0.0.0.255 [AR1-acl-basic-2000]rule deny [AR1]interface GigabitEthernet 0/0/1 [AR1-GigabitEthernet0/0/1]nat outbound 2000
AR2:
[AR2]interface GigabitEthernet 0/0/0 [AR2-GigabitEthernet0/0/0]ip address 12.2.2.254 24 [AR2] [AR2]interface GigabitEthernet 0/0/1 [AR2-GigabitEthernet0/0/1]ip address 20.1.2.1 24
Easy IP是一种简化的NAPT,不需要配置公网地址池,直接使用外网接口的地址作地址转换,适用于没有固定公网地址的情况,获得什么地址就用什么地址作NAPT转换。