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都不通)???大神召唤术,求帮助啊。
(0)
最佳答案
正常路由可以通为啥要nat呢?
再检查一下mtu ,nat加了一层报文头
(0)
大哥,MTU是什么,检查的命令是什么,正常不通啊,去掉tunnel0是不通的,对端 198.10.1.66只有一个到 10.56.255.14的回程路由,其他地址访问不过去,有其他变通的变法没有?NAT加了一层报文头是什么意思,要如何去掉?
报文经过nat默认会加一层, mtu,改成1400 tcp mss 改成1024看看。切记在没有业务的情况修改。
请问是这样改吗? # interface Tunnel0 mode gre ip mtu 1400 tcp mss 1024
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
请问是这样改吗? # interface Tunnel0 mode gre ip mtu 1400 tcp mss 1024