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

相关推荐
无穷小亮12 小时前
Flutter框架跨平台鸿蒙开发——打字练习APP开发流程
flutter·华为·harmonyos·鸿蒙
打工的小王12 小时前
docker(三)具体项目的部署
运维·docker·容器
九 龙13 小时前
Flutter框架跨平台鸿蒙开发——水电缴费提醒APP的开发流程
flutter·华为·harmonyos·鸿蒙
步步为营DotNet14 小时前
深度剖析.NET中IHostedService:后台服务管理的关键组件
服务器·网络·.net
一叶星殇14 小时前
.NET WebAPI:用 Nginx 还是 IIS 更好
运维·nginx·.net
BlackWolfSky15 小时前
鸿蒙中级课程笔记4—应用程序框架进阶1—Stage模型应用组成结构、UIAbility启动模式、启动应用内UIAbility
笔记·华为·harmonyos
Ares-Wang15 小时前
网络》》路由引入 、路由控制 》》路由策略 route-policy 、Filter-Policy(过滤策略)
网络·智能路由器
Miguo94well16 小时前
Flutter框架跨平台鸿蒙开发——植物养殖APP的开发流程
flutter·华为·harmonyos·鸿蒙
九 龙16 小时前
Flutter框架跨平台鸿蒙开发——电影拍摄知识APP的开发流程
flutter·华为·harmonyos·鸿蒙
星辰徐哥16 小时前
鸿蒙APP开发从入门到精通:ArkUI组件库详解与常用组件实战
华为·app·harmonyos·组件·arkui·组件库