内网电脑192.168.1.2,外网接口20.1.1.1,外网测试pc 20.1.1.2,虚拟地址20.1.1.3
把20.1.1.3映射到192.168.1.2对外访问
现在外网能ping通20.1.1.3
但是内网电脑ping不通20.1.1.3
-----------------------------------------------
in pc
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.1.2 255.255.255.0 #
ip route-static 0.0.0.0 0 192.168.1.1
[in pc-GigabitEthernet0/0]ping 20.1.1.2 Ping 20.1.1.2 (20.1.1.2): 56 data bytes, press CTRL_C to break 56 bytes from 20.1.1.2: icmp_seq=0 ttl=254 time=1.000 ms 56 bytes from 20.1.1.2: icmp_seq=1 ttl=254 time=1.000 ms 56 bytes from 20.1.1.2: icmp_seq=2 ttl=254 time=1.000 ms 56 bytes from 20.1.1.2: icmp_seq=3 ttl=254 time=1.000 ms 56 bytes from 20.1.1.2: icmp_seq=4 ttl=254 time=1.000 ms
[in pc-GigabitEthernet0/0]ping 20.1.1.3 Ping 20.1.1.3 (20.1.1.3): 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Request time out Request time out
--------------------------------------------------------
router
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.1.1 255.255.255.0 #
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 20.1.1.1 255.255.255.0
nat outbound
nat server global 20.1.1.3 inside 192.168.1.2
ip route-static 0.0.0.0 0 20.1.1.2
-----------------------------------------------------------
out pc
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 20.1.1.2 255.255.255.0
ping 20.1.1.3 Ping 20.1.1.3 (20.1.1.3): 56 data bytes, press CTRL_C to break 56 bytes from 20.1.1.3: icmp_seq=0 ttl=254 time=2.000 ms 56 bytes from 20.1.1.3: icmp_seq=1 ttl=254 time=1.000 ms 56 bytes from 20.1.1.3: icmp_seq=2 ttl=254 time=2.000 ms 56 bytes from 20.1.1.3: icmp_seq=3 ttl=254 time=1.000 ms 56 bytes from 20.1.1.3: icmp_seq=4 ttl=254 time=1.000 ms
(0)
缺个设置
interface GigabitEthernet0/1
ip address 20.1.1.3 255.255.255.0 sub
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论