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

一、基础配置

SWA:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huaweiundo info-center ena

Info: Information center is disabled.

Huaweisysn SWA

SWAvlan batch 10 100

Info: This operation may take a few seconds. Please wait for a moment...done.

SWAipv6

SWAint vlan 10

SWA-Vlanif10ipv ena

SWA-Vlanif10ipv add 2002::1 64

SWA-Vlanif10int vlan 100

SWA-Vlanif100ipv ena

SWA-Vlanif100ipv add 2001::1 64

SWA-Vlanif100qu

SWAint g0/0/1

SWA-GigabitEthernet0/0/1p l a

SWA-GigabitEthernet0/0/1p d v 100

SWA-GigabitEthernet0/0/1int g0/0/2

SWA-GigabitEthernet0/0/1p l a

SWA-GigabitEthernet0/0/1p d v 10

SWA-GigabitEthernet0/0/1qu

SWB:

<Huawei>sys

Enter system view, return user view with Ctrl+Z.

Huaweiundo info-center ena

Info: Information center is disabled.

Huaweisysn SWB

SWBvlan batch 20 100

Info: This operation may take a few seconds. Please wait for a moment...done.

SWBipv6

SWBint vlan 20

SWB-Vlanif20ipv ena

SWB-Vlanif20ipv add 2003::1 64

SWB-Vlanif20int vlan 100

SWB-Vlanif100ipv ena

SWB-Vlanif100ipv add 2001::2 64

SWB-Vlanif100qu

SWBint g0/0/1

SWB-GigabitEthernet0/0/1p l a

SWB-GigabitEthernet0/0/1p d v 100

SWB-GigabitEthernet0/0/1int g0/0/2

SWB-GigabitEthernet0/0/1p l a

SWB-GigabitEthernet0/0/1p d v 20

SWB-GigabitEthernet0/0/1qu

二、静态路由

SWA:

SWAipv6 route-static 2003:: 64 2001::2

SWB:

SWBipv6 route-static 2002:: 64 2001::1

验证:

三、默认路由

SWA:

SWAipv6 route-static :: 0 2001::2

SWB:

SWBipv6 route-static :: 0 2001::1

四、RIPng路由

SWA:

SWAripng 1

SWA-ripng-1qu

SWAint vlan 10

SWA-Vlanif10ripng 1 enable

SWA-Vlanif10int vlan 100

SWA-Vlanif100ripng 1 enable

SWA-Vlanif100qu

SWB:

SWBripng 1

SWB-ripng-1qu

SWBint vlan 20

SWB-Vlanif20ripng 1 ena

SWB-Vlanif20int vlan 100

SWB-Vlanif100ripng 1 ena

SWB-Vlanif100qu

五、OSPFv3路由

SWA:

SWAospfv3 1

SWA-ospfv3-1router-id 1.1.1.1

SWA-ospfv3-1qu

SWAint vlan 10

SWA-Vlanif10ospfv3 1 ar 0

SWA-Vlanif10int vlan 100

SWA-Vlanif100ospfv3 1 ar 0

SWA-Vlanif100qu

SWB:

SWBospfv3 1

SWB-ospfv3-1router-id 2.2.2.2

SWB-ospfv3-1qu

SWBint vlan 20

SWB-Vlanif20ospfv 1 ar 0

SWB-Vlanif20int vlan 100

SWB-Vlanif100ospfv 1 ar 0

SWB-Vlanif100qu

相关推荐
发量惊人的中年网工几秒前
SD-WAN如何赋能工业物联网?打造工厂网络远程连接和数据传输新方案
运维·网络·分布式·物联网
Chengbei115 分钟前
云存储桶漏洞检测工具OSS-2.0更新,全类型文件解析,存储桶遍历 + 敏感排查一站式完成渗透取证
网络·安全·web安全·网络安全·xss
GitCode官方13 分钟前
openPangu-2.0-Pro 模型及技术报告正式开源上线 AtomGit AI
人工智能·华为·开源·harmonyos·atomgit
乐维_lwops18 分钟前
乐维社区“专家坐诊”第403期问答
运维·网络·监控系统·答疑·lerwee运维智能体
爱喝水的鱼丶22 分钟前
SAP-ABAP:SAP 实战笔记:BAPI_OUTB_DELIVERY_CONFIRM_DEC 详解——外向交货单过账的利器
运维·性能优化·sap·abap·经验交流
国际云,接待28 分钟前
AWS RDS 备份与 PITR 恢复演练:从保留期、恢复命令到应用切换验证
运维·云计算·aws·灾难恢复·数据库备份·rds
小王C语言1 小时前
虚拟机开机过程中关机,再次开机没有分配 IP
linux·网络·tcp/ip
回眸不遇1 小时前
类型的区别和应用场景 nested 每个对象独立存储为隐藏的子文档 适合存储数组 查询的时候有特定的语法 nested查询 且字段要 ...
运维·jenkins
零零信安1 小时前
暗网监测技术实践(一):威胁源采集与反爬对抗——基于《暗网情报技术能力框架》的双生态视角
网络·数据泄露·零零信安
诸葛老刘1 小时前
Ubuntu 服务器常用运维命令
运维·服务器·ubuntu