文章插图
IPsec连通性测试使用PC1测试到PC2和PC3的连通性 。
文章插图
Hub查看IKE SA
文章插图
Hub查看IPsec SA
文章插图
文章插图
Spoke2查看IPsec SA
文章插图
实验SW1
vlan batch 10 11 16 20 30 40 41interface Ethernet0/0/2description Link_Hub_G0/0/2port link-type accessport default vlan 11interface Ethernet0/0/10description Link_Internet_G0/0/0port link-type accessport default vlan 11interface Ethernet0/0/11description Link_Internet_G0/0/1port link-type accessport default vlan 41interface Ethernet0/0/14description Link_Spoke2_G0/0/1port link-type accessport default vlan 41interface Ethernet0/0/12description Link_Internet_G0/0/2port link-type accessport default vlan 40interface Ethernet0/0/6description Link_Spoke1_G0/0/2port link-type accessport default vlan 40interface Ethernet0/0/13description Link_Spoke2_G0/0/0port link-type accessport default vlan 30interface Ethernet0/0/22description Link_HCNP_Spoke(PC3)port link-type accessport default vlan 30复制代码
FW1(Hub)interface g0/0/1ip address 10.1.1.10 24interface g0/0/2ip address 202.100.10.10 24undo ip route-static 0.0.0.0 0.0.0.0 202.100.1.11ip route-static 0.0.0.0 0.0.0.0 202.100.10.254// 用图形化界面配置后的结果acl number 3000rule 5 permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255rule 10 permit ip source 10.1.1.0 0.0.0.255 destination 10.1.3.0 0.0.0.255ike proposal 1authentication-algorithm sha2-256integrity-algorithm aes-xcbc-96 hmac-sha2-256ike peer ike48143238157exchange-mode autopre-shared-key Huawei@123ike negotiate compatibleike-proposal 1remote-id-type noneipsec proposal prop48143238157encapsulation-mode autoesp authentication-algorithm sha2-256ipsec policy-template tpl48143238157 1security acl 3000ike-peer ike48143238157alias hub_ipsecproposal prop48143238157local-address Applied-interfacesa duration traffic-based 200000000sa duration time-based 3600ipsec policy ipsec4814323820 10000 isakmp template tpl48143238157interface GigabitEthernet0/0/2ipsec policy ipsec4814323820 auto-negip service-set ISAKMP type objectservice 0 protocol udp source-port 0 to 65535 destination-port 5000security-policyrule name ipsec1source-zone localdestination-zone untrustsource-address 202.100.10.10 mask 255.255.255.255service ISAKMPservice espaction permitrule name ipsec2source-zone untrustdestination-zone localdestination-address 202.100.10.10 mask 255.255.255.255service ISAKMPservice espaction permitrule name ipsec3source-zone trustsource-zone untrustdestination-zone trustdestination-zone untrustsource-address address-set ipsecdestination-address address-set ipsecaction permit复制代码
FW2(Spoke1)interface g0/0/1ip address 10.1.2.10 24interface g0/0/2ip address 202.100.1.10 24undo ip route-static 0.0.0.0 0.0.0.0 202.100.1.10ip route-static 0.0.0.0 0.0.0.0 202.100.1.254复制代码
AR1(Internet)interface g0/0/0undo portswitchip address 202.100.10.254 24interface g0/0/1undo portswitchip address 202.100.2.254 24interface g0/0/2undo portswitchip address 202.100.1.254 24复制代码
AR2(Spoke2)interface g0/0/1undo portswitchip address 202.100.2.10 24interface g0/0/0undo portswitchip address 10.1.3.10 24ip route-static 0.0.0.0 0.0.0.0 202.100.2.254ike proposal 10encryption-algorithm aes-cbc-128authentication-algorithm sha2-256ike peer hub v1exchange-mode mainpre-shared-key simple Huawei@123ike-proposal 10remote-address 202.100.10.10acl 3000rule permit ip source 10.1.3.0 0.0.0.255 destination 10.1.1.0 0.00.255ipsec proposal 10esp encryption-algorithm aes-128esp authentication-algorithm sha1ipsec policy ipsec_policy 10 isakmpsecurity acl 3000ike-peer hubproposal 10interface g0/0/1ipsec policy ipsec_policy
推荐阅读
- 深圳华为地铁站什么时候通车 深圳华为地铁站开通时间
- 深圳华为地铁站是几号线 一起来看看
- 华为|余承东:中国不少企业抄袭我们设计 用华为专利不付专利费行为非常不耻
- 火灾|问界M5华为店内起火自燃?消防认定:购物中心电缆短路引发火灾
- 惠普笔记本和华为笔记本哪个更好?惠普的笔记本好还是华为的笔记本好_3
- 戴尔笔记本电脑风扇一直响怎么办?华为笔记本电脑风扇一直响怎么办
- 华为平板电脑10寸报价 华为平板电脑价格一览表2022
- 智能手机|手机直连卫星时代来了?华为、苹果抢跑 吉利布局
- 华为|5G通信壳华为Mate 50全系都有份!保时捷版压轴登场
- 原创|小米最大的敌人是谁?不是苹果,也不是三星,而是华为!