news 2026/7/4 17:29:25

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

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
华为交换机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:

<Huawei>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

验证:

三、默认路由

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

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/1 18:33:29

传统调试 vs AI辅助:解决405错误效率对比

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 创建一个405错误解决效率对比工具&#xff0c;包含&#xff1a;1)传统调试模拟器&#xff1a;手动检查请求、服务器配置、查文档等步骤 2)AI辅助模式&#xff1a;自动分析并给出解…

作者头像 李华
网站建设 2026/7/1 21:07:19

AI助力快速获取OPENSSH:自动生成下载与配置脚本

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 创建一个Python脚本&#xff0c;自动从OPENSSH官网下载最新版本的SSH客户端和服务端&#xff0c;并完成基本的配置。脚本需要包含以下功能&#xff1a;1. 检测当前操作系统类型&am…

作者头像 李华
网站建设 2026/7/1 20:58:21

GitHub镜像网站推荐:快速获取VibeVoice开源项目源码

VibeVoice-WEB-UI&#xff1a;如何用低帧率语音表示与对话式生成重塑长文本TTS 在播客制作间里&#xff0c;两位主播正为下一期节目反复录制——语气不对重来&#xff0c;角色切换生硬再录&#xff0c;三万字脚本整整磨了三天。这样的场景&#xff0c;在内容创作领域并不罕见。…

作者头像 李华
网站建设 2026/7/2 11:58:24

如何将VibeVoice集成到自己的产品原型中?API接口展望

如何将VibeVoice集成到自己的产品原型中&#xff1f;API接口展望 在AI驱动内容创作的浪潮中&#xff0c;语音合成早已不再满足于“把文字读出来”。真正有竞争力的产品&#xff0c;需要的是能讲出故事、传递情绪、模拟真实对话节奏的智能声音引擎。然而&#xff0c;市面上大多数…

作者头像 李华
网站建设 2026/7/2 12:35:14

传统搜索 vs AI聚合:获取2025资料的效率革命

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 构建一个资料获取效率对比工具&#xff0c;左侧模拟传统搜索引擎&#xff08;需手动筛选结果&#xff09;&#xff0c;右侧接入AI资料聚合API。用户输入相同关键词后&#xff0c;系…

作者头像 李华
网站建设 2026/7/3 6:26:46

DEPENDENCY WALKER入门指南:小白也能懂的DLL分析教程

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容&#xff1a; 开发一个交互式入门教程应用&#xff0c;引导新手逐步学习使用DEPENDENCY WALKER。教程应包含&#xff1a;软件安装指导、界面介绍、基本扫描操作、结果解读和常见问题解答。每个步…

作者头像 李华