Please press ENTER to execute command3、在华为设备上部署PAT技术实现公司员工(私网)访问internet(公网)
AR1#
acl number 2000
rule 5 permit source 192.168.1.0 0.0.0.255 interface GigabitEthernet0/0/1
ip address 202.106.1.2 255.255.255.0
nat outbound 2000 (定义复用接口g0/0/1用于PAT转换)
结果测试
[AR1]dis nat outbound
NAT Outbound Information:
--------------------------------------------------------------------------
Interface Acl Address-group/IP/Interface Type
--------------------------------------------------------------------------
GigabitEthernet0/0/1 2000 202.106.1.2 easyip
-------------------------------------------------------------------------- Total : 1 [AR1]
4、在华为设备上部署静态端口映射技术实现公网用户访问私网服务器 静态端口映射
-------------------------------------------------------------------------- AR1#
acl number 2000
rule 5 permit source 192.168.1.0 0.0.0.255
interface GigabitEthernet0/0/1
ip address 202.106.1.2 255.255.255.0
nat static protocol tcp global 202.1.1.1 23 inside 192.168.1.4 23 nat outbound 2000 #
return
[AR1-GigabitEthernet0/0/1]
--------------------------------------------------------------------------
AR3#
[AR3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
[AR3]dis cu | begin vty user-interface vty 0 4
authentication-mode password
set authentication password cipher **** user-interface vty 16 20 [AR3]