赞
踩
目录
AR1和AR3充当两私网的边界设备,AR2充当ISP,要求PC1和PC2通过IPSEC互通
int g 0/0/0 ip add 12.0.0.2 24 int g 0/0/1 ip add 192.168.0.1 24 ip route-static 0.0.0.0 0 12.0.0.1
int g 0/0/0 ip add 12.0.0.1 24 int g 0/0/1 ip add 21.0.0.1 24
int g 0/0/0 ip add 23.0.0.2 24 int g 0/0/1 ip add 192.168.1.1 24 ip route-static 0.0.0.0 0 23.0.0.1
acl 3000 rule permit ip source 192.168.0.0 0.0.0.255 destination 192.168.1.0 0.0.0.255
acl 3000rule permit ip source 192.168.1.0 0.0.0.255 destination 192.168.0.0 0.0.0.255
ike proposal 1 //配置ike安全提议编号为1 encryption-algorithm aes-cbc-128 //设置对称加密方式为:aes-cbc-128 authentication-method pre-share //配置身份认证方式为预共享密钥(PSK) authentication-algorithm md5 //配置HASH算法为md5 dh group5 //配置DH算法质数组为5位 sa duration 86400 //失效时间
要求两边协商参数一样
ike proposal 1 //配置ike安全提议编号为1 encryption-algorithm aes-cbc-128 //设置对称加密方式为:aes-cbc-128 authentication-method pre-share //配置身份认证方式为预共享密钥(PSK) authentication-algorithm md5 //配置HASH算法为md5 dh group5 //配置DH算法质数组为5位 sa duration 86400 //失效时间
ike peer aa v1 //建立对等体 名称 aa 版本1 ike-proposal 1 //关联安全提议 pre-shared-key cipher 123456 //与共享密钥123456 exchange-mode main //第一阶段模式为主模式 remote-address 23.0.0.2 //建立对等体的目标
ike peer aa v1 //建立对等体 名称 aa 版本1 ike-proposal 1 //关联安全提议 pre-shared-key cipher 123456 //与共享密钥123456 exchange-mode main //第一阶段模式为主模式 remote-address 12.0.0.2 //建立对等体的目标
ipsec proposal aa //ipsec 提议配置 名 aa transform esp //安全协议为esp encapsulation-mode tunnel //要跨越公网封装模式为隧道 esp encryption-algorithm aes-128 //加密方式aes-128 esp authentication-algorithm md5 //HASH算法md5
ipsec proposal aa //ipsec 提议配置 名 aa transform esp //安全协议为esp encapsulation-mode tunnel //要跨越公网封装模式为隧道 esp encryption-algorithm aes-128 //加密方式aes-128 esp authentication-algorithm md5 //HASH算法md5
ipsec policy aa 1 isakmp //ipsec策略 名字 aa 编号 1 模式isakmp security acl 3000 //关联流量 acl 3000 ike-peer aa // 关联对等体 aa proposal aa // 关联ipsec提议 aa
ipsec policy aa 1 isakmp //ipsec策略 名字 aa 编号 1 模式isakmp security acl 3000 //关联流量 acl 3000 ike-peer aa // 关联对等体 aa proposal aa // 关联ipsec提议 aa
int g 0/0/0 ipsec policy aa
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。