GNS3-GREvpn

GREvpn

发一下这些日忙的东西~

实验拓扑

在这里插入图片描述

以R2为界限的左半边运行ospf,各个链路已经ping通,用R7模拟PC1,PC1和R2的f0/0来回链路没问题

在这里插入图片描述

右半边同左半边做相应的配置也成功ping通

在R2和R3之间建立vpn隧道,网段为172.16.23.0/24,配置完成后在R2和R3中宣告隧道网段,PC1成功ping通PC2,也走vpn

所在的网段
在这里插入图片描述

实验成功!

R1的配置

!
hostname R1
!
ip cef
!
!
interface FastEthernet0/0
 ip address 10.1.10.1 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.12.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 log-adjacency-changes
 network 10.1.10.1 0.0.0.0 area 0
 network 192.168.12.1 0.0.0.0 area 0
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

R2

!
hostname R2
!
ip cef
!
!
interface Tunnel1
 ip address 172.16.23.1 255.255.255.0
 tunnel source 202.103.23.1
 tunnel destination 202.103.23.2
!
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 202.103.23.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 router-id 10.253.1.2
 log-adjacency-changes
 network 172.16.23.1 0.0.0.0 area 0
 network 192.168.12.2 0.0.0.0 area 0
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

R3

!
hostname R3
!
ip cef
!
!
interface Tunnel1
 ip address 172.16.23.2 255.255.255.0
 tunnel source 202.103.23.2
 tunnel destination 202.103.23.1
!
interface FastEthernet0/0
 ip address 202.103.23.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 192.168.34.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 router-id 10.253.1.3
 log-adjacency-changes
 network 172.16.23.2 0.0.0.0 area 0
 network 192.168.34.1 0.0.0.0 area 10
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
 exec-timeout 0 0
line aux 0
line vty 0 4
!
!
end

R4

!
hostname R4
!
interface FastEthernet0/0
 ip address 192.168.34.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 10.1.20.1 255.255.255.0
 duplex auto
 speed auto
!
router ospf 1
 router-id 10.253.1.4
 log-adjacency-changes
 network 10.1.20.1 0.0.0.0 area 10
 network 192.168.34.2 0.0.0.0 area 10
!
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

R6

!
hostname PC2
!
interface FastEthernet0/0
 ip address 10.1.20.2 255.255.255.0
 no ip route-cache
 duplex auto
 speed auto
!
ip default-gateway 10.1.20.1
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
!
end

R7

!
hostname PC1
!
interface FastEthernet0/0
 ip address 10.1.10.2 255.255.255.0
 no ip route-cache
 duplex auto
 speed auto
!
ip default-gateway 10.1.10.1
ip http server
no ip http secure-server
!
!
control-plane
!
!
line con 0
line aux 0
line vty 0 4
!
!
end
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值