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

相关推荐
C雨后彩虹5 小时前
计算误码率
java·数据结构·算法·华为·面试
ELI_He9995 小时前
Airflow docker 部署
运维·docker·容器
拜托啦!狮子5 小时前
安装和使用Homer(linux)
linux·运维·服务器
木鱼布5 小时前
聊聊防火墙技术
网络·网络协议·tcp/ip
liulilittle5 小时前
XDP VNP虚拟以太网关(章节:一)
linux·服务器·开发语言·网络·c++·通信·xdp
应用市场6 小时前
图片格式完全指南——从JPEG到AVIF的技术原理与选型
网络·人工智能·安全·汽车
剑之所向6 小时前
c# modbus大小端
linux·运维·网络
顶点多余7 小时前
Linux中的基本命令-2
linux·运维·服务器
钱彬 (Qian Bin)7 小时前
项目实践14—全球证件智能识别系统(切换回SQLite数据库并基于Docker实现离线部署和日常管理)
运维·docker·容器·fastapi·证件识别