设为首页收藏本站language 语言切换
查看: 2590|回复: 5
收起左侧

[分享] 华为创建IPv6静态路由

[复制链接]
 成长值: 64615
发表于 2023-11-2 21:46:09 | 显示全部楼层 |阅读模式
背景信息
在创建IPv6静态路由时,可以同时指定出接口和下一跳。对于不同的出接口类型,也可以只指定出接口或只指定下一跳。
对于点到点接口,指定出接口。

对于NBMA(Non Broadcast Multiple Access)接口,指定下一跳。

对于广播类型接口,需指定下一跳地址。下一跳地址可以是链路本地地址,当下一跳地址为链路本地地址时,必须同时指定出接口。

在创建相同目的地址的多条IPv6静态路由时,如果指定相同优先级,则可实现负载分担,如果指定不同优先级,则可实现路由备份。

在创建IPv6静态路由时,如果将目的地址与掩码配置为全零,则表示配置的是IPv6静态缺省路由。缺省情况下,没有创建IPv6静态缺省路由。

操作步骤
执行命令system-view,进入系统视图。
配置IPv6静态路由。
在公网上配置IPv6静态路由:ipv6 route-static dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | nexthop-ipv6-address } [ preference preference | tag tag ] * [ description text ]或ipv6 route-static dest-ipv6-address prefix-length vpn-instance vpn-destination-name [ preference preference | tag tag ] * [ description text ]
在VPN实例中配置IPv6静态路由:ipv6 route-static vpn-instance vpn-instance-name dest-ipv6-address prefix-length { [ interface-type interface-number ] nexthop-ipv6-address | nexthop-ipv6-address [ public ] | vpn-instance vpn-destination-name nexthop-ipv6-address } [ preference preference | tag tag ] * [ description text ]或ipv6 route-static vpn-instance vpn-instance-name dest-ipv6-address prefix-length { public | vpn-instance vpn-destination-name } [ preference preference | tag tag ] * [ description text ]


您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-24 19:20 , Processed in 0.139175 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表