• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 全部
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索

SR6608-X内网地址nat转换成隧道出口地址无法访问对端IP地址,求大神帮助。

2021-10-29提问
  • 0关注
  • 1收藏,712浏览
粉丝:0人 关注:0人

问题描述:

1、10.24.1.0/24段的内网地址转换成隧道出口地址10.56.255.14访问198.10.1.66(此地址没有回程路由,只能内网转换成10.56.255.14地址进行访问),配置好后不通啊,求救。

#
version 7.1.054, Release 7103P10
#
sysname SR6608-X
#
interface GigabitEthernet3/0/1
port link-mode route
ip address 10.1.254.70 255.255.255.252
#
interface GigabitEthernet3/3/0
port link-mode route
ip address 10.24.0.254 255.255.255.0
#
interface GigabitEthernet3/3/1
port link-mode route
ip address 10.22.175.21 255.255.255.252
#
interface GigabitEthernet3/4/0
port link-mode route
ip address 10.22.175.1 255.255.255.252
#
interface GigabitEthernet4/0/1
port link-mode route
ip address 10.24.1.254 255.255.255.0
#
interface M-GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
#
interface Tunnel0 mode gre
ip address 10.56.255.14 255.255.255.252
source 10.24.1.254
destination 10.23.253.253
nat outbound 3005 address-group 1 no-pat reversible
#
ip route-static 0.0.0.0 0 10.1.254.69
ip route-static 10.56.255.0 24 Tunnel0
ip route-static 198.0.0.0 8 Tunnel0
ip route-static 198.10.1.66 32 10.56.255.13
#
acl number 3005
rule 0 permit ip source 10.24.1.0 0.0.0.255
rule 5 deny ip
#
nat address-group 1
address 10.56.255.14 10.56.255.14
#
return


组网及组网描述:

IP情况如下

[SR6608-X]dis ip interface brief
*down: administratively down
(s): spoofing (l): loopback
Interface Physical Protocol IP Address Description
GE3/0/0 down down -- --
GE3/0/1 up up 10.1.254.70 TO_NJ_C_CR1600...
GE3/3/0 up up 10.24.0.254 jttfirewallman...
GE3/3/1 up up 10.22.175.21 TOXuNiJi
GE3/4/0 up up 10.22.175.1 TOHW7706-2
GE3/4/1 down down -- --
GE3/4/2 down down -- --
GE3/4/3 down down -- --
GE3/4/4 down down -- --
GE3/4/5 down down -- --
GE3/4/6 down down -- --
GE3/4/7 down down -- --
GE4/0/0 down down -- --
GE4/0/1 up up 10.24.1.254 ToMSA
MGE0/0/0 down down 192.168.1.1 --
XGE4/1/0 down down -- --
XGE4/2/0 down down -- --
Tun0 up up 10.56.255.14 --
[SR6608-X]

[SR6608-X]dis nat session verbose
Slot 0:
Total sessions found: 0
Slot 1:
Total sessions found: 0
Slot 3:
Total sessions found: 0
Slot 4:
Initiator:
Source IP/port: 10.24.1.253/512
Destination IP/port: 10.56.255.13/2048
DS-Lite tunnel peer: -
VPN instance/VLAN ID/VLL ID: -/-/-
Protocol: ICMP(1)
Inbound interface: GigabitEthernet4/0/1
Responder:
Source IP/port: 10.56.255.13/512
Destination IP/port: 10.56.255.14/0
DS-Lite tunnel peer: -
VPN instance/VLAN ID/VLL ID: -/-/-
Protocol: ICMP(1)
Inbound interface: Tunnel0
State: ICMP_REQUEST
Application: OTHER
Start time: 2021-10-28 16:50 TTL: 59s
Initiator->Responder: 0 packets 0 bytes
Responder->Initiator: 0 packets 0 bytes
Initiator:
Source IP/port: 10.24.1.253/512
Destination IP/port: 198.10.1.66/2048
DS-Lite tunnel peer: -
VPN instance/VLAN ID/VLL ID: -/-/-
Protocol: ICMP(1)
Inbound interface: GigabitEthernet4/0/1
Responder:
Source IP/port: 198.10.1.66/512
Destination IP/port: 10.56.255.14/0
DS-Lite tunnel peer: -
VPN instance/VLAN ID/VLL ID: -/-/-
Protocol: ICMP(1)
Inbound interface: Tunnel0
State: ICMP_REQUEST
Application: OTHER
Start time: 2021-10-28 16:50 TTL: 57s
Initiator->Responder: 0 packets 0 bytes
Responder->Initiator: 0 packets 0 bytes
Total sessions found: 2

[SR6608-X]

[SR6608-X]dis nat all
NAT address group information:
Totally 1 NAT address groups.
Address group 1:
Port range: 1-65535
Address information:
Start address End address
10.56.255.14 10.56.255.14
NAT outbound information:
Totally 1 NAT outbound rules.
Interface: Tunnel0
ACL: 3005 Address group: 1 Port-preserved: N
NO-PAT: Y Reversible: Y
Config status: Active
[SR6608-X]  

路由情况。

[SR6608-X]dis ip routing-table 198.10.1.66
Summary Count : 3
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 10.1.254.69 GE3/0/1
198.0.0.0/8 Static 60 0 0.0.0.0 Tun0
198.10.1.66/32 Static 60 0 10.56.255.13 Tun0
[SR6608-X]dis ip routing-table 10.56.255.13
Summary Count : 3
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 10.1.254.69 GE3/0/1
10.56.255.0/24 Static 60 0 0.0.0.0 Tun0
10.56.255.12/30 Direct 0 0 10.56.255.14 Tun0
[SR6608-X]

[SR6608-X] ping 198.10.1.66

Ping 198.10.1.66 (198.10.1.66): 56 data bytes, press CTRL_C to break

56 bytes from 198.10.1.66: icmp_seq=0 ttl=57 time=40.825 ms

56 bytes from 198.10.1.66: icmp_seq=1 ttl=57 time=43.721 ms

56 bytes from 198.10.1.66: icmp_seq=2 ttl=57 time=38.004 ms

56 bytes from 198.10.1.66: icmp_seq=3 ttl=57 time=37.189 ms

56 bytes from 198.10.1.66: icmp_seq=4 ttl=57 time=36.591 ms

--- Ping statistics for 198.10.1.66 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 36.591/39.266/43.721/2.659 ms

[SR6608-X]ping -a 10.56.255.14 10.56.255.13

Ping 10.56.255.13 (10.56.255.13) from 10.56.255.14: 56 data bytes, press CTRL_C to break

56 bytes from 10.56.255.13: icmp_seq=0 ttl=255 time=5.090 ms

56 bytes from 10.56.255.13: icmp_seq=1 ttl=255 time=5.048 ms

56 bytes from 10.56.255.13: icmp_seq=2 ttl=255 time=5.032 ms

56 bytes from 10.56.255.13: icmp_seq=3 ttl=255 time=5.008 ms

56 bytes from 10.56.255.13: icmp_seq=4 ttl=255 time=5.053 ms

--- Ping statistics for 10.56.255.13 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 5.008/5.046/5.090/0.027 ms

[SR6608-X]ping -a 10.56.255.14 198.10.1.66

Ping 198.10.1.66 (198.10.1.66) from 10.56.255.14: 56 data bytes, press CTRL_C to break

56 bytes from 198.10.1.66: icmp_seq=0 ttl=57 time=36.235 ms

56 bytes from 198.10.1.66: icmp_seq=1 ttl=57 time=36.192 ms

56 bytes from 198.10.1.66: icmp_seq=2 ttl=57 time=41.136 ms

56 bytes from 198.10.1.66: icmp_seq=3 ttl=57 time=37.754 ms

56 bytes from 198.10.1.66: icmp_seq=4 ttl=57 time=36.616 ms

--- Ping statistics for 198.10.1.66 ---

5 packets transmitted, 5 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 36.192/37.587/41.136/1.862 ms

[SR6608-X]ping -a 10.24.1.254 198.10.1.66

Ping 198.10.1.66 (198.10.1.66) from 10.24.1.254: 56 data bytes, press CTRL_C to break

Request time out

Request time out

Request time out

Request time out

Request time out

--- Ping statistics for 198.10.1.66 ---

5 packets transmitted, 0 packets received, 100.0% packet loss

[SR6608-X]ping -a 10.24.1.253 198.10.1.66

Ping 198.10.1.66 (198.10.1.66) from 10.24.1.253: 56 data bytes, press CTRL_C to break

Request time out

Request time out

Request time out

Request time out

Request time out

--- Ping statistics for 198.10.1.66 ---

5 packets transmitted, 0 packets received, 100.0% packet loss


日志看的不是很明白,是不是nat地址转换未生效啊,不明白ping -a 10.56.255.14 198.10.1.66能通,为什么10.24.1.253和10.24.1.254转换成10.56.255.14就不通了呢(ping -a 10.24.1.254 198.10.1.66和ping -a 10.24.1.253 198.10.1.66都不通)???大神召唤术,求帮助啊。

最佳答案

粉丝:111人 关注:1人

正常路由可以通为啥要nat呢?

再检查一下mtu ,nat加了一层报文头

大哥,MTU是什么,检查的命令是什么,正常不通啊,去掉tunnel0是不通的,对端 198.10.1.66只有一个到 10.56.255.14的回程路由,其他地址访问不过去,有其他变通的变法没有?NAT加了一层报文头是什么意思,要如何去掉?

zhiliao_DtTwmR 发表时间:2021-10-29

报文经过nat默认会加一层, mtu,改成1400 tcp mss 改成1024看看。切记在没有业务的情况修改。

漓离原上谱 发表时间:2021-10-29

请问是这样改吗? # interface Tunnel0 mode gre ip mtu 1400 tcp mss 1024

zhiliao_DtTwmR 发表时间:2021-10-29
0 个回答

该问题暂时没有网友解答

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

分享扩散:

提出建议

    +

亲~登录后才可以操作哦!

确定

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明