ip address 61.161.xxx.2 255.255.255.240 //这里可以使用61.161.xxx.2-14个地址中的任意一个,这里就用2 ip nat outside full-duplex no shutdown interface e0/1 ip address 192.168.1.1 255.255.255.0 ip nat inside full-duplex no shutdown //设置放行的IP地址列表 access-list 1 permit host 192.168.1....
6.设置默认路由 第一步: 配置cnc接口: interface GigabitEthernet1/1 ip address 60.10.135.11 255.255.255.242 ip nat outside 配置tel接口: interface GigabitEthernet1/2 ip address 219.148.157.22 255.255.255.252 ip nat outside 配置内网接口: interface GigabitEthernet1/3 ip address 192.168.0.1 255.255.255....
外网口下面配置ip nat outside内网口下面配置ip nat inside 全局配置ip nat inside source static tcp <内网地址> <内网端口><外网地址><外网端口> 0 有帮助 回复 fishlonely Level 1 发布时间 03-30-2018 06:09 PM 谢谢楼上的解答我的问题是: 内网用户 通过...
---路由器有两种配置NAT的方法,一种传统的接口下ip nat inside/outside方式,一种NAT Virtual Interface (NVI)方式,在接口下配置ip nat enable,两种方式可以同时并存 ---能成功进行NAT首先需要存在路由,另外一个必须的条件是:从ip nat inside接口进入,从ip nat outside接口出,或者从一个ip nat enable接口进入,...
Router(config-if)#ip nat inside Router(config)#int e1 Router(config-if)#ip add 202.1.1.1 255.255.255.252 Router(config-if)#ip nat outside Router(config)#ip nat inside source static tcp 10.1.1.1 80 202.1.1.1 80 (2) Router(config)#access-list 1 permit 10.1.1.0 0.0.0.255 (3) ...
Router(config-if)#ip access-group acl名称 in或out (3)删除已建立的命名acl Router(config)#no IP acl表号 standard或extended(标准名或扩展名) acl名称 11、NAT转换 (1)静态NAT配置 设置NAT功能的路由器需要有一个内部端口(inside)和一个外部端口(outside),内部端口连接的网络用户使用的是内部IP地址...
但第一种写法较简单。!!!interface FastEthernet0/0ip address23.0.0.2255.255.255.0ip nat outside ipvirtual-reassembly duplex half!interface FastEthernet1/0ip address24.0.0.2255.255.255.0ip nat outside ipvirtual-reassembly duplexautospeedauto!interface FastEthernet1/1ip address12.0.0.1255.255.255.0ip ...
ip nat outside no ip virtual-reassembly in encapsulation ppp ip tcp adjust-mss 1452 dialer pool 1 dialer down-with-vInterface no cdp enable ipv6 address dhcp rapid-commit ipv6 address FE80::7281:5FF:FEF6:93C1 link-local ipv6 enable ipv6 dhcp client pd ct-prefix rapid-co...
只需要更改你的outside口的IP地址和nat地址池、默认路由即可:interface GigabitEthernet0/0 ip address 129.65.110.14 255.255.255.252 ip nat outside ip nat pool NAT 地址池起始地址 结束地址 netmask 255.255.255.252 ip nat inside source list 1 pool NAT overload access-list 1 permit...
配置NAT ip nat inside source list 1 int XX overload 这里的int XX,是本地出口路由器与运营商连接的端口 指定outside int xx ip nat outside 这里的XX同上 指定inside int yy ip nat inside 这里的YY接口,是下联PC或LAN的接口(PC网关)HXrouter#show run Building configuration...Current ...