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

相关推荐
疯狂打码的少年1 小时前
【计算机网络】TCP/IP协议族(四层体系结构,与OSI对比)
网络·笔记·tcp/ip·计算机网络
snow@li1 小时前
服务器运维:Linux命令速查手册(全景梳理)
linux·服务器·网络
handler011 小时前
【Linux】线程与虚拟内存的底层世界
linux·运维·服务器·c++·线程·虚拟地址空间·共享内存
布莱克6051 小时前
TCP 三次握手与四次挥手详解
服务器·网络·tcp/ip·计算机网络·网络编程
新时代牛马2 小时前
实时 Linux:PREEMPT_RT、延迟来源与观测
linux·运维·服务器
2501_919749032 小时前
华为鸿蒙免费刷题软件—小羊免费刷题
华为·harmonyos·鸿蒙
zhexunnb2 小时前
深挖SAP系统模块价值,助力无锡制造企业打通数字化全链路
运维
anxiao_m2 小时前
2026企业AI数字孪生选型攻略,不同场景对应不同解决方案
大数据·网络·数据库
weipt3 小时前
利用wsl给windows电脑上安装一个ubuntu
linux·运维·ubuntu
jarreyer3 小时前
【软件操作】加快资源管理器打开速度
运维