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

相关推荐
gsls20080810 分钟前
Penpot Docker 部署与 MCP 服务配置文档
运维·docker·容器·原型·penpot
HwJack2016 分钟前
UIAbility 生命周期全链路:从冷启动到热启动的实战笔记
笔记·华为·harmonyos
九硕智慧建筑一体化厂家20 分钟前
直流智能照明|全场景节能升级!打造安全低碳的智慧建筑光环境
运维·笔记·安全·智慧城市
蓝速科技39 分钟前
蓝速科技丨数智人终端选型指南:后台运维如何决定长期运营成本
运维·科技
奇树谦1 小时前
HDD 为什么适合顺序大文件读写:从 RAID 5 到 RAID 50 的原理与性能分析
linux·运维·网络
hi_ro_a1 小时前
Linux基础开发工具详解
linux·运维·服务器
嵌入式阿蔡1 小时前
Linux_01:交叉编译与开发环境实战——从单片机跨到 Linux 的第一道坎
linux·运维·网络·单片机·嵌入式硬件·嵌入式实时数据库
Pocker_Spades_A2 小时前
终端里也能斗地主:Linux部署Ratel,从本地对战到公网联机
linux·运维·服务器
佳児素花痴╮2 小时前
C语言链接库
linux·运维·服务器
雷电小将军2 小时前
诡秘之主手游占卜家序列加点 诡秘之主手游占卜家怎么加点
服务器·网络·游戏·电脑·玩游戏