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

相关推荐
米羊1213 小时前
已有安全措施确认(中)
网络
听麟3 小时前
HarmonyOS 6.0+ 跨端智慧政务服务平台开发实战:多端协同办理与电子证照管理落地
笔记·华为·wpf·音视频·harmonyos·政务
前端世界4 小时前
从单设备到多设备协同:鸿蒙分布式计算框架原理与实战解析
华为·harmonyos
迎仔4 小时前
A-算力中心网络隔离总览:数字世界的“酒店房间“
网络
wangjialelele4 小时前
Linux下的IO操作以及ext系列文件系统
linux·运维·服务器·c语言·c++·个人开发
宝塔面板4 小时前
AllinSSL 一站式搞定 SSL 自动续期:永久免费,开源可自托管
网络·网络协议·ssl
csdn今天倒闭了吗4 小时前
飞牛lucky配置ipv6 ddns+ssl+反向代理
网络·网络协议·ssl
HypoxiaDream4 小时前
LINUX-Ext系列⽂件系统
linux·运维·服务器
小毛驴8504 小时前
Linux curl 命令用法
linux·运维·chrome
强风7944 小时前
Linux-网络层
网络