H3Cv7版本ipsecovergre配置指导

上传人:鲁** 文档编号:438824884 上传时间:2023-04-04 格式:DOCX 页数:6 大小:22.63KB
返回 下载 相关 举报
H3Cv7版本ipsecovergre配置指导_第1页
第1页 / 共6页
H3Cv7版本ipsecovergre配置指导_第2页
第2页 / 共6页
H3Cv7版本ipsecovergre配置指导_第3页
第3页 / 共6页
H3Cv7版本ipsecovergre配置指导_第4页
第4页 / 共6页
H3Cv7版本ipsecovergre配置指导_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《H3Cv7版本ipsecovergre配置指导》由会员分享,可在线阅读,更多相关《H3Cv7版本ipsecovergre配置指导(6页珍藏版)》请在金锄头文库上搜索。

1、Ipsec over gre 酉己置Tunnel0:100.1.1.1/24Tunnel0;1004.1.2/24RT1 10.1.1.1/2410.1,1.2/24 rt2 20.1.1.1/24Loopback0:192.168.1.1/3220.1.1.2/24 RT3Loopback0:192.168.2.1/32RT1和RT3用环回口来模拟私网上的接口它们的封装方式是先封装ipsec,然后在进行gre的封装,所以在ipsec的ACL中要 匹配的事两端私网的地址。报文的圭寸装格式:IP 公|gre|ip 头|esp 头 |ip 私 |date|esp 尾RT1的主要配置:进入系统试图s

2、ystem-view配置接口 IPH3Ci nteface GigabitEthernet 0/0H3C-GigabitEther net0/0ip address 10.1.1.1 24创建环回接口:H3C-GigabitEther net0/0quitH3Ci nteface LoopBack 0H3C-LoopBack0ip address 192.168.1.1 32创建 Tunnel 口:H3C-LoopBack0quitH3Cinterface Tunnel 0 mode greH3C-Tunnel0ip address 100.1.1.1 24 指定 Tunnel 口源接口地址H

3、3C-Tunnel0source 10.1.1.1指定 Tunnel 口目的端地址H3C-Tunnel0destination 20.1.1.2H3C-Tunnel0 quit创建访问控制列表H3Cacl advanced 3000H3C-acl-ipv4-adv-3000rule 0 permit ip source 192.168.1.1 0.0.0.0 destination 192.168.2.1 0.0.0.0H3C-acl-ipv4-adv-3000quit创建 ipsec 安全提议 tran1H3Cipsec transform-set tran1 指定安全协议的工作模式为隧道模

4、式 H3C-ipsec-transform-set-tran1encapsulation-mode tunnel 选择安全协议为 espH3C-ipsec-transform-set-tran1protocol esp加密算法为 desH3C-ipsec-transform-set-tran1esp encryption-algorithm des-cbc 验证算法为 md5H3C-ipsec-transform-set-tran1esp authentication-algorithm md5 H3C-ipsec-transform-set-tran1quit 配置 ike kaychain

5、 ,创建 ike1H3Cike keychain ike1配置对端 tunnel 口的 IP 和使用的预共享秘钥H3C-ike-keychain-ike1pre-shared-key address 100.1.1.2 24 key simple 123 H3C-ike-keychain-ike1quit创建 ike profile ,名称为 profile1H3Cike profile profile1绑定 ike keychainH3C-ike-profile-profile1keychain ike1 配置本地封装的 IP 地址H3C-ike-profile-profile1local-

6、identity address 100.1.1.1 配置对端封装的 IP 地址H3C-ike-profile-profile1match remote identity address 100.1.1.2 24 H3C-ike-profile-profile1quit创建一条 ike 协商方式的 ipsec 安全策略,序列号为 1,名字为 policy1 H3Cipsec policy policy1 1 isakmp指定引用 ACL3000H3C-ipsec-policy-isakmp-policy1-1security acl 3000 指定引用的 ike profile 为 profi

7、le1 H3C-ipsec-policy-isakmp-policy1-1ike-profile profile1 指定引用的安全协议为 tran1H3C-ipsec-policy-isakmp-policy1-1transform-set tran1 指定对端隧道地址H3C-ipsec-policy-isakmp-policy1-1remote-address 100.1.1.2 H3C-ipsec-policy-isakmp-policy1-1quit进入 Tunnel0H3Cinterface Tunnel0把 ipsec 策略在 Tunnel 口生效H3C-Tunnel0ipsec a

8、pply policy policy1 在三个路由器之间使用 rip 路由协议 H3Crip H3C-rip-1version 2H3C-rip-1undo summary H3C-rip-1network 10.1.1.1RT2 的主要配置:system-viewH3Cinterface GigabitEthernet 0/0H3C-GigabitEthernet0/0ip address 10.1.1.2 24 H3C-GigabitEthernet0/0quitH3Cinterface GigabitEthernet 0/1H3C-GigabitEthernet0/1 ip addres

9、s 20.1.1.1 24 H3C-GigabitEthernet0/1quit 配置 rip 路由协议H3CripH3C-rip-1version 2H3C-rip-1undo summaryH3C-rip-1network 10.1.1.2H3C-rip-1network 20.1.1.1RT3 的主要配置:进入系统试图 system-view 配置接口 IPH3Cinterface GigabitEthernet 0/0H3C-GigabitEthernet0/0ip address 20.1.1.2 24 创建环回接口:H3C-GigabitEthernet0/0quitH3Cinte

10、rface LoopBack 0 H3C-LoopBack0ip address 192.168.2.1 32 创建 Tunnel 口: H3C-LoopBack0quitH3Cinterface Tunnel 0 mode greH3C-Tunnel0ip address 100.1.1.1 24指定 Tunnel 口源接口地址H3C-Tunnel0source 20.1.1.2指定 Tunnel 口目的端地址H3C-Tunnel0destination 10.1.1.1 H3C-Tunnel0 quit创建访问控制列表H3Cacl advanced 3000H3C-acl-ipv4-adv

11、-3000rule 0 permit ip source 192.168.2.1 0.0.0.0 destination 192.168.1.1 0.0.0.0H3C-acl-ipv4-adv-3000quit创建 ipsec 安全提议 tran1H3Cipsec transform-set tran1指定安全协议的工作模式为隧道模式 H3C-ipsec-transform-set-tran1encapsulation-mode tunnel 选择安全协议为 espH3C-ipsec-transform-set-tran1protocol esp加密算法为 desH3C-ipsec-trans

12、form-set-tran1esp encryption-algorithm des-cbc 验证算法为 md5H3C-ipsec-transform-set-tran1esp authentication-algorithm md5 H3C-ipsec-transform-set-tran1quit配置 ike kaychain ,创建 ike1 H3Cike keychain ike1 配置对端 tunnel 口的 IP 和使用的预共享秘钥H3C-ike-keychain-ike1pre-shared-key address 100.1.1.1 24 key simple 123 H3C-

13、ike-keychain-ike1quit创建 ike profile ,名称为 profile1H3Cike profile profile1绑定 ike keychainH3C-ike-profile-profile1keychain ike1 配置本地封装的 IP 地址H3C-ike-profile-profile1local-identity address 100.1.1.2 配置对端封装的 IP 地址H3C-ike-profile-profile1match remote identity address 100.1.1.1 24 H3C-ike-profile-profile1q

14、uit创建一条 ike 协商方式的 ipsec 安全策略,序列号为 1,名字为 policy1 H3Cipsec policy policy1 1 isakmp指定引用 ACL3000H3C-ipsec-policy-isakmp-policy1-1security acl 3000 指定引用的 ike profile 为 profile1 H3C-ipsec-policy-isakmp-policy1-1ike-profile profile1 指定引用的安全协议为 tran1H3C-ipsec-policy-isakmp-policy1-1transform-set tran1 指定对端隧

15、道地址H3C-ipsec-policy-isakmp-policy1-1remote-address 100.1.1.1 H3C-ipsec-policy-isakmp-policy1-1quit进入 Tunnel0H3Cinterface Tunnel0把 ipsec 策略在 Tunnel 口生效H3C-Tunnel0ipsec apply policy policy1配置 rip 路由协议H3CripH3C-rip-1version 2H3C-rip-1undo summaryH3C-rip-1network 20.1.1.2测试从 RT1 的环回口来 ping RT3 的环回口H3Cping -a 192.168.1.1 192.168.2.1

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号