锐捷GRE一对多

前言:如果是真实设备要把vlan 1删除掉才有效果。

拓扑图:

R1配置:

!        

interface GigabitEthernet 0/0

 ip address 222.100.100.1 255.255.255.252

 duplex auto

 speed auto

!

interface Loopback 0

 ip address 192.168.1.254 255.255.255.0

!

interface Tunnel 1

 tunnel mode gre multipoint

 tunnel source GigabitEthernet 0/0

 ip nhrp network-id 100

 ip nhrp map multicast dynamic

 ip address 172.16.100.1 255.255.255.0

!

router ospf 10

 network 222.100.100.0 0.0.0.255 area 0

!

ip route 192.168.3.0 255.255.255.0 Tunnel 1 172.16.100.3

R2配置:

interface GigabitEthernet 0/0

 ip address 222.100.100.2 255.255.255.252

 duplex auto

 speed auto

!

interface GigabitEthernet 0/1

 ip address 222.200.200.2 255.255.255.252

 duplex auto

 speed auto

!

router ospf 10

 network 222.100.100.0 0.0.0.255 area 0

 network 222.200.200.0 0.0.0.255 area 0

R3配置:

interface GigabitEthernet 0/0

 ip address 222.200.200.1 255.255.255.252

 duplex auto

 speed auto

!

interface Loopback 0

 ip address 192.168.3.254 255.255.255.0

!

interface Tunnel 1

 tunnel mode gre multipoint

 tunnel source GigabitEthernet 0/0

 ip nhrp nhs 172.16.100.1

 ip nhrp network-id 100

 ip nhrp map 172.16.100.1 222.100.100.1

 ip address 172.16.100.3 255.255.255.0

!

router ospf 10

 network 222.200.200.0 0.0.0.255 area 0

!

ip route 192.168.1.0 255.255.255.0 Tunnel 1 172.16.100.1

Test1:

Test2(没有路由):

No ip route 192.168.1.0 255.255.255.0 Tunnel 1 172.16.100.1

Test3:

锐捷设备支持通过配置GRE隧道来实现IPv6网络的连接。根据提供的引用内容,可以看到有两个接口Tunnel0/0/0,分别配置了IPv6地址和tunnel-protocol为GRE。其中,引用\[1\]中的目的地地址为23.1.1.2,引用\[2\]中的目的地地址为12.1.1.1。这意味着这两个隧道分别连接到了不同的目标设备。 为了实现PC1和PC2之间的IPv6通信,可以按照以下步骤进行配置: 1. 在PC1上配置IPv6地址,例如2003::1/64。 2. 在PC2上配置IPv6地址,例如2003::2/64。 3. 在锐捷设备上配置Tunnel0/0/0接口的源地址为GigabitEthernet0/0/0,并设置目的地地址为PC2的IPv4地址(12.1.1.1)。 4. 在锐捷设备上配置Tunnel0/0/0接口的IPv6地址,例如192.168.1.1/24。 5. 在锐捷设备上配置Tunnel0/0/0接口的tunnel-protocol为GRE。 6. 在锐捷设备上配置另一个Tunnel0/0/0接口,将其源地址设置为GigabitEthernet0/0/0,并设置目的地地址为PC1的IPv4地址(23.1.1.2)。 7. 在锐捷设备上配置另一个Tunnel0/0/0接口的IPv6地址,例如192.168.1.2/24。 8. 在锐捷设备上配置另一个Tunnel0/0/0接口的tunnel-protocol为GRE。 通过以上配置,PC1和PC2之间的IPv6通信将通过锐捷设备上的GRE隧道进行传输。 #### 引用[.reference_title] - *1* *2* *3* [使用GRE隧道实现IPv4和IPv6通信配置](https://blog.csdn.net/qq_41235506/article/details/109694459)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

灰白的奇迹

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值