华为交换机IPv6静态路由、默认路由、RIPng和OSPFv3路由配置

一、基础配置

SWA:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huaweiundo info-center ena

Info: Information center is disabled.

Huaweisysn SWA

SWAvlan batch 10 100

Info: This operation may take a few seconds. Please wait for a moment...done.

SWAipv6

SWAint vlan 10

SWA-Vlanif10ipv ena

SWA-Vlanif10ipv add 2002::1 64

SWA-Vlanif10int vlan 100

SWA-Vlanif100ipv ena

SWA-Vlanif100ipv add 2001::1 64

SWA-Vlanif100qu

SWAint g0/0/1

SWA-GigabitEthernet0/0/1p l a

SWA-GigabitEthernet0/0/1p d v 100

SWA-GigabitEthernet0/0/1int g0/0/2

SWA-GigabitEthernet0/0/1p l a

SWA-GigabitEthernet0/0/1p d v 10

SWA-GigabitEthernet0/0/1qu

SWB:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huaweiundo info-center ena

Info: Information center is disabled.

Huaweisysn SWB

SWBvlan batch 20 100

Info: This operation may take a few seconds. Please wait for a moment...done.

SWBipv6

SWBint vlan 20

SWB-Vlanif20ipv ena

SWB-Vlanif20ipv add 2003::1 64

SWB-Vlanif20int vlan 100

SWB-Vlanif100ipv ena

SWB-Vlanif100ipv add 2001::2 64

SWB-Vlanif100qu

SWBint g0/0/1

SWB-GigabitEthernet0/0/1p l a

SWB-GigabitEthernet0/0/1p d v 100

SWB-GigabitEthernet0/0/1int g0/0/2

SWB-GigabitEthernet0/0/1p l a

SWB-GigabitEthernet0/0/1p d v 20

SWB-GigabitEthernet0/0/1qu

二、静态路由

SWA:

SWAipv6 route-static 2003:: 64 2001::2

SWB:

SWBipv6 route-static 2002:: 64 2001::1

验证:

三、默认路由

SWA:

SWAipv6 route-static :: 0 2001::2

SWB:

SWBipv6 route-static :: 0 2001::1

四、RIPng路由

SWA:

SWAripng 1

SWA-ripng-1qu

SWAint vlan 10

SWA-Vlanif10ripng 1 enable

SWA-Vlanif10int vlan 100

SWA-Vlanif100ripng 1 enable

SWA-Vlanif100qu

SWB:

SWBripng 1

SWB-ripng-1qu

SWBint vlan 20

SWB-Vlanif20ripng 1 ena

SWB-Vlanif20int vlan 100

SWB-Vlanif100ripng 1 ena

SWB-Vlanif100qu

五、OSPFv3路由

SWA:

SWAospfv3 1

SWA-ospfv3-1router-id 1.1.1.1

SWA-ospfv3-1qu

SWAint vlan 10

SWA-Vlanif10ospfv3 1 ar 0

SWA-Vlanif10int vlan 100

SWA-Vlanif100ospfv3 1 ar 0

SWA-Vlanif100qu

SWB:

SWBospfv3 1

SWB-ospfv3-1router-id 2.2.2.2

SWB-ospfv3-1qu

SWBint vlan 20

SWB-Vlanif20ospfv 1 ar 0

SWB-Vlanif20int vlan 100

SWB-Vlanif100ospfv 1 ar 0

SWB-Vlanif100qu

相关推荐
hai31524754310 分钟前
九章编译法----空间几何统一编译法
网络·汇编·人工智能·线性代数
CN_HW20 分钟前
Nginx 流量镜像配置文档-双轨国产化
服务器·前端·网络
java_logo34 分钟前
5 分钟共享打印机:用 Docker 一键部署 CUPS
运维·docker·容器·cups·网络打印机·共享打印机·docker部署cups
Macbethad1 小时前
基于TwinCAT的半导体刻蚀设备SCADA管理程序技术方案
运维·网络·数据库
ZZZMMM.zip1 小时前
基于鸿蒙HarmonyOS NEXT开发AI书籍推荐应用:智能阅读新体验与鸿蒙Flutter框架跨端实践
人工智能·flutter·华为·harmonyos·鸿蒙
Helen_cai1 小时前
OpenHarmony http 网络请求封装与全局拦截实战(API Version23 + 适配版)
网络·网络协议·http·华为·harmonyos
liulilittle1 小时前
Exhaustive drift-fix simulation V2 — KCC on shared-bottleneck wired path.
开发语言·网络·python·tcp/ip·计算机网络·信息与通信·通信
刘马想放假2 小时前
生成树协议 STP、RSTP、MSTP 分析:二层环网如何既冗余又不环路
运维·网络协议
nuoxin1142 小时前
HR4988替代A4988-富利威
网络·人工智能·嵌入式硬件·fpga开发·dsp开发
zhz52142 小时前
Nginx + OpenSSL 自签名证书配置:优劣总结
运维·nginx