华为交换机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

相关推荐
云飞云共享云桌面21 小时前
传统工作站 vs 云飞云共享云桌面:制造业设计云桌面选型深度对比
运维·服务器·前端·网络·3d·架构·制造
森G1 天前
61、信号与槽机制在 TCP 编程中的应用---------网络编程
网络·c++·qt·网络协议·tcp/ip
Maynor9961 天前
我用 Codex 给自己的网站上线了一个智能体客服:从 Dify 到服务器部署,全程实战复盘
运维·服务器
祭曦念1 天前
【共创季稿事节】鸿蒙原生ArkTS布局深度解析_GridRow_Row_Column混合栅格布局实战
华为·harmonyos
kiros_wang1 天前
鸿蒙 ArkUI:V1 与 V2 装饰器全面对比与迁移指南
ubuntu·华为·harmonyos
java_cj1 天前
深入kubectl create源码:从YAML到Pod的完整链路拆解
运维·云原生·容器·kubernetes
不羁的木木1 天前
HarmonyOS 6.1.0 创新特性技术精讲之沉浸光感
华为·harmonyos
swordbob1 天前
NIO 的 Channel 里有多个 BIO 吗?
linux·网络·nio
天天讯通1 天前
OKCC 呼叫中心安全性能全解析:技术防护与管理措施指南
大数据·开发语言·网络·人工智能·安全·语音识别
深圳恒讯1 天前
越南服务器BGP多线和单线有什么区别?
运维·服务器