OSPFv3 路由汇总配置

1.网络拓扑图
链接:https://pan.baidu.com/s/1XyXj8BQ4mlZI5qCMAFgpUA
提取码:8888
eNSP
链接:https://pan.baidu.com/s/1wP0vHim4yqVV0bc0wmzhFw
提取码:8888
在这里插入图片描述
2.网络需求
在R1上配置ABR路由汇总,在R2上配置ASBR路由汇总。并实现网络互通。

3.网络配置
首先在R1上部署路由汇总,将Area 1内的路由汇总成2001:1::/32。R1的配置如下:
[R1] ospfv3 1
[R1-ospfv3-1] area 1
[R1-ospfv3-1-area-0.0.0.1] abr-summary 2001:1:: 32

在ASBR R2上执行路由汇总,这种路由汇总方式是对注入到OSPF的外部路由进行的路由汇总,汇总后的路由是2001:2::/32,R2的配置如下:
[R2] ospfv3 1
[R2-ospfv3-1] asbr-summary 2001:2:: 32

3.1、R1的配置
display current-configuration
[V200R003C00]

sysname R1

board add 0/1 1GEC

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

ipv6

set cpu-usage threshold 80 restore 75

aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher % % K8m.Nt84DZ}e#<0`8bmE3Uw}% %
local-user admin service-type http

ospfv3 1
router-id 1.1.1.1
area 0.0.0.1
abr-summary 2001:1:: 32

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 2001:1:1::1/64
ospfv3 1 area 0.0.0.1

interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2001:1:2::1/64
ospfv3 1 area 0.0.0.1

interface GigabitEthernet0/0/2
ipv6 enable
ipv6 address 2001:1:3::1/64
ospfv3 1 area 0.0.0.1

interface GigabitEthernet1/0/0
ipv6 enable
ipv6 address 2001:12::1/64
ospfv3 1 area 0.0.0.0

interface NULL0

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return
3.2、R2的配置
display current-configuration
[V200R003C00]

sysname R2

board add 0/1 1GEC

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

ipv6

set cpu-usage threshold 80 restore 75

aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher % % K8m.Nt84DZ}e#<0`8bmE3Uw}% %
local-user admin service-type http

ospfv3 1
router-id 2.2.2.2
import-route direct
asbr-summary 2001:2:: 32

firewall zone Local
priority 15

interface GigabitEthernet0/0/0
ipv6 enable
ipv6 address 2001:2:1::1/64

interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2001:2:2::1/64

interface GigabitEthernet0/0/2
ipv6 enable
ipv6 address 2001:2:3::1/64

interface GigabitEthernet1/0/0
ipv6 enable
ipv6 address 2001:12::2/64
ospfv3 1 area 0.0.0.0

interface NULL0

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

wlan ac

return

猜你喜欢

转载自blog.csdn.net/qq_41235506/article/details/109695407