- 积分
- 537
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2016-12-30
- 最后登录
- 1970-1-1
- 阅读权限
- 40
- 听众
- 收听
中级工程师
![Rank: 7](https://cdn.hh010.com/static/image/common/star_level2.gif) ![Rank: 7](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 7](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 7](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
![](https://cdn.hh010.com/static/image/common/ico_lz.png)
楼主 |
发表于 2018-8-4 21:42:24
|
显示全部楼层
!
interface Ethernet0/0 //内网接口
ip address 10.2.10.2 255.255.255.0
ip nat enable
!
interface Ethernet0/1 //外网接口
ip address 172.16.1.2 255.255.255.0
ip nat enable
!
ip nat source list 1 interface Ethernet0/1 overload
ip nat source static tcp 10.2.12.2 23 172.16.1.2 88 extendable
!
access-list 1 permit 10.0.0.0 0.255.255.255
!
内网PC
PC#telnet 172.16.1.2 88
Trying 172.16.1.2, 88 ...
% Connection timed out; remote host not responding
PC#
!
边界路由器的debug ip nat tran
R2#
*Aug 4 21:16:11.865: NAT: [0] Allocated Port for 10.2.11.2 -> 172.16.1.2: wanted 47824 got 47824
*Aug 4 21:16:11.865: NAT: i: tcp (10.2.11.2, 47824) -> (172.16.1.2, 88) [35140]
*Aug 4 21:16:11.865: NAT: TCP s=47824, d=88->23
*Aug 4 21:16:11.865: NAT: s=10.2.11.2->172.16.1.2, d=172.16.1.2 [35140]
*Aug 4 21:16:11.865: NAT: s=172.16.1.2, d=172.16.1.2->10.2.12.2 [35140]
R2#
说明一下,是拿eve模拟器做的,不是真机
转换的对,但好像是没有回包,显示trying |
板凳
2018-8-4 21:42:24
回复(0)
收起回复
|