1. 首页
  2. 服务器

问题:配置通过NAT地址池访问Internet外网

 [Router]acl number 2000
//配置允许进行NAT转换的内网地址段
rule 5 permit source 192.168.66.0 0.0.0.255
[Router] nat address-group 1 106.3.45.3
106.3.45.4 //配置NAT地址池

[Router] interface GigabitEthernet 0/0/1
[Router-GigabitEthernet 0/0/1] ip address
106.3.45.2 255.255.255.0
[Router-GigabitEthernet 0/0/1] nat outbound 2000 address-group 1
//在出接口上配置NAT Outbound

[Router] interface GigabitEthernet 0/0/2
[Router-GigabitEthernet 0/0/2] ip address 192.168.20.1
255.255.255.0 //配置内网网关的IP地址

[Router] ip route-static 0.0.0.0 0.0.0.0 106.3.45.1
//配置默认路由

原创文章,作者:cheshirex,如若转载,请注明出处:https://www.homedt.net/5284.html

联系我们

联系QQ:28575315