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

一、基础配置

SWA:

<Huawei>sys

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

Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn SWA \[SWA\]vlan batch 10 100 Info: This operation may take a few seconds. Please wait for a moment...done. \[SWA\]ipv6 \[SWA\]int vlan 10 \[SWA-Vlanif10\]ipv ena \[SWA-Vlanif10\]ipv add 2002::1 64 \[SWA-Vlanif10\]int vlan 100 \[SWA-Vlanif100\]ipv ena \[SWA-Vlanif100\]ipv add 2001::1 64 \[SWA-Vlanif100\]qu \[SWA\]int g0/0/1 \[SWA-GigabitEthernet0/0/1\]p l a \[SWA-GigabitEthernet0/0/1\]p d v 100 \[SWA-GigabitEthernet0/0/1\]int g0/0/2 \[SWA-GigabitEthernet0/0/1\]p l a \[SWA-GigabitEthernet0/0/1\]p d v 10 \[SWA-GigabitEthernet0/0/1\]qu ##### SWB: \sys Enter system view, return user view with Ctrl+Z. \[Huawei\]undo info-center ena Info: Information center is disabled. \[Huawei\]sysn SWB \[SWB\]vlan batch 20 100 Info: This operation may take a few seconds. Please wait for a moment...done. \[SWB\]ipv6 \[SWB\]int vlan 20 \[SWB-Vlanif20\]ipv ena \[SWB-Vlanif20\]ipv add 2003::1 64 \[SWB-Vlanif20\]int vlan 100 \[SWB-Vlanif100\]ipv ena \[SWB-Vlanif100\]ipv add 2001::2 64 \[SWB-Vlanif100\]qu \[SWB\]int g0/0/1 \[SWB-GigabitEthernet0/0/1\]p l a \[SWB-GigabitEthernet0/0/1\]p d v 100 \[SWB-GigabitEthernet0/0/1\]int g0/0/2 \[SWB-GigabitEthernet0/0/1\]p l a \[SWB-GigabitEthernet0/0/1\]p d v 20 \[SWB-GigabitEthernet0/0/1\]qu #### 二、静态路由 ##### SWA: \[SWA\]ipv6 route-static 2003:: 64 2001::2 ##### SWB: \[SWB\]ipv6 route-static 2002:: 64 2001::1 ##### 验证: ![](https://i-blog.csdnimg.cn/direct/8e045cb5b8d04eb4824011e95bd0b1ea.png) ![](https://i-blog.csdnimg.cn/direct/8c76a1ee64164c2ab2aa74b088599925.png) #### 三、默认路由 ##### SWA: \[SWA\]ipv6 route-static :: 0 2001::2 ##### SWB: \[SWB\]ipv6 route-static :: 0 2001::1 #### 四、RIPng路由 ##### SWA: \[SWA\]ripng 1 \[SWA-ripng-1\]qu \[SWA\]int vlan 10 \[SWA-Vlanif10\]ripng 1 enable \[SWA-Vlanif10\]int vlan 100 \[SWA-Vlanif100\]ripng 1 enable \[SWA-Vlanif100\]qu ##### SWB: \[SWB\]ripng 1 \[SWB-ripng-1\]qu \[SWB\]int vlan 20 \[SWB-Vlanif20\]ripng 1 ena \[SWB-Vlanif20\]int vlan 100 \[SWB-Vlanif100\]ripng 1 ena \[SWB-Vlanif100\]qu #### 五、OSPFv3路由 ##### SWA: \[SWA\]ospfv3 1 \[SWA-ospfv3-1\]router-id 1.1.1.1 \[SWA-ospfv3-1\]qu \[SWA\]int vlan 10 \[SWA-Vlanif10\]ospfv3 1 ar 0 \[SWA-Vlanif10\]int vlan 100 \[SWA-Vlanif100\]ospfv3 1 ar 0 \[SWA-Vlanif100\]qu ##### SWB: \[SWB\]ospfv3 1 \[SWB-ospfv3-1\]router-id 2.2.2.2 \[SWB-ospfv3-1\]qu \[SWB\]int vlan 20 \[SWB-Vlanif20\]ospfv 1 ar 0 \[SWB-Vlanif20\]int vlan 100 \[SWB-Vlanif100\]ospfv 1 ar 0 \[SWB-Vlanif100\]qu

相关推荐
xyz5992 分钟前
如何在 WSL 中删除指定版本的 Ubuntu 以及安装
linux·运维·ubuntu
北京耐用通信8 分钟前
无缝衔接·高效传输——耐达讯自动化CC-Link IE转Modbus TCP核心解决方案
网络·人工智能·物联网·网络协议·自动化·信息与通信
linux修理工8 分钟前
Claude code与CC-switch安装使用
运维·人工智能
小叶lr12 分钟前
jenkins打包前端样式丢失/与本地不一致问题
运维·前端·jenkins
Agent产品评测局16 分钟前
互联网行业自动化平台选型,运营全流程提效指南:2026企业级智能体架构与实战全解析
运维·人工智能·ai·chatgpt·架构·自动化
亚空间仓鼠30 分钟前
OpenEuler系统常用服务(五)
linux·运维·服务器·网络
聊点儿技术35 分钟前
CDN调度失准导致跨省流量浪费?在GSLB层用IP归属地查询实现精准就近接入
网络·ip·ip归属地查询·ip地址查询·ip离线库·cdn调度
咸鱼嵌入式1 小时前
【AutoSAR】详解PDUR模块
网络
浮芷.1 小时前
Flutter 框架跨平台鸿蒙开发 - 家庭健康监测云应用
科技·flutter·华为·harmonyos·鸿蒙
世人万千丶1 小时前
Flutter 框架跨平台鸿蒙开发 - 宠物语言翻译器应用
学习·flutter·华为·开源·harmonyos·鸿蒙