在gre over ipsec中,ipsec用野蛮模式,华三V7的gre配置
int tunnel 0 mode gre
sourec
destination
地址怎么写,如果是固定公网ip是写公网,不是固定的怎么写呢
还有ipsec的 acl 怎么抓数据流?
(0)
最佳答案
需要固定地址
GRE Over IPSec野蛮模式
蓝色:GRE关键配置
红色:IPSec关键配置
[RTA]display current-configuration
#
version 7.1.059, Alpha 7159
#
sysname RTA
#
interface LoopBack0
ip address 172.16.1.1 255.255.255.255
#
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 dhcp-alloc
ipsec apply policy my
#
interface Tunnel0 mode gre
ip address 10.1.1.1 255.255.255.0
source 172.16.1.1
destination 172.16.1.2
#
ip route-static 192.168.2.0 24 Tunnel0
#
acl advanced 3000
rule 0 permit ip source 172.16.1.1 0 destination 172.16.1.2 0
#
ipsec transform-set 1
esp encryption-algorithm des-cbc
esp authentication-algorithm md5
#
ipsec policy my 10 isakmp
transform-set 1
security acl 3000
remote-address 2.2.2.1
ike-profile 1
#
ike identity user-fqdn
#
ike profile 1
keychain 1
exchange-mode aggressive
local-identity user-fqdn rta
match remote identity user-fqdn rtb
#
ike keychain 1
pre-shared-key address 2.2.2.1 255.255.255.255 key simple h3c
[RTB]display current-configuration
#
version 7.1.059, Alpha 7159
#
sysname RTB
#
interface LoopBack0
ip address 172.16.1.2 255.255.255.255
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.2.1 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 2.2.2.1 255.255.255.0
ipsec apply policy my
#
interface Tunnel0 mode gre
ip address 10.1.1.2 255.255.255.0
source 172.16.1.2
destination 172.16.1.1
#
ip route-static 0.0.0.0 0 2.2.2.2
ip route-static 192.168.1.0 24 Tunnel0
#
ipsec transform-set 1
esp encryption-algorithm des-cbc
esp authentication-algorithm md5
#
ipsec policy-template rta 1
transform-set 1
ike-profile 1
#
ipsec policy my 10 isakmp template rta
#
ike identity user-fqdn
#
ike profile 1
keychain 1
exchange-mode aggressive
local-identity user-fqdn rtb
match remote identity user-fqdn rta
#
ike keychain 1
pre-shared-key hostname rta key simple h3c
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
如果dhcp地址刷新了,那不是还要重新配置?
噢噢,source跟destination写的不是公网地址呀