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

相关推荐
Leinwin1 小时前
OpenClaw 多 Agent 协作框架的并发限制与企业化规避方案痛点直击
java·运维·数据库
2401_865382501 小时前
信息化项目运维与运营的区别
运维·运营·信息化项目·政务信息化
漠北的哈士奇1 小时前
VMware Workstation导入ova文件时出现闪退但是没有报错信息
运维·vmware·虚拟机·闪退·ova
如意.7592 小时前
【Linux开发工具实战】Git、GDB与CGDB从入门到精通
linux·运维·git
运维小欣2 小时前
智能体选型实战指南
运维·人工智能
yy55272 小时前
Nginx 性能优化与监控
运维·nginx·性能优化
爱吃土豆的马铃薯ㅤㅤㅤㅤㅤㅤㅤㅤㅤ3 小时前
Linux 查询某进程文件所在路径 命令
linux·运维·服务器
05大叔5 小时前
网络基础知识 域名,JSON格式,AI基础
运维·服务器·网络
安当加密5 小时前
无需改 PAM!轻量级 RADIUS + ASP身份认证系统 实现 Linux 登录双因子认证
linux·运维·服务器
我想走路带风5 小时前
c++工具转向网络底层工具
网络