华为 路由聚合

这篇博客详细记录了配置华为路由器Ar1、Ar2和交换机Sw1、Sw2的过程,包括进入系统视图、设置接口IP地址、开启信息中心、配置Eth-Trunk端口、静态路由等步骤,确保网络设备间能够互相通信。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

Ar4

<Huawei>sy

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

[Huawei]un in en

Info: Information center is disabled.

[Huawei]int g0/0/2

[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.1 24

[Huawei-GigabitEthernet0/0/2]un sh

Info: Interface GigabitEthernet0/0/2 is not shutdown.

[Huawei-GigabitEthernet0/0/2]q

[Huawei]int Eth-Trunk 1

[Huawei-Eth-Trunk1]undo portsw

[Huawei-Eth-Trunk1]trunkport g 0/0/0  to 0/0/1

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

[Huawei-Eth-Trunk1]ip add 192.168.2.1 24

[Huawei-Eth-Trunk1]un sh

Info: Interface Eth-Trunk1 is not shutdown.

[Huawei-Eth-Trunk1]q

[Huawei]ip route-static  192.168.4.0  24  192.168.2.2

ar2

<Huawei>sy

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

[Huawei]un in e

Info: Information center is disabled.

[Huawei]int Eth-Trunk 1

[Huawei-Eth-Trunk1]undo portsw

[Huawei-Eth-Trunk1]trunkport g 0/0/0 to 0/0/1

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

[Huawei-Eth-Trunk1]ip add 192.168.2.2  24

[Huawei-Eth-Trunk1]un sh

Info: Interface Eth-Trunk1 is not shutdown.

[Huawei-Eth-Trunk1]q

[Huawei]int Eth-Trunk 2

[Huawei-Eth-Trunk2]undo portsw

[Huawei-Eth-Trunk2]trunkport g0/0/2

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

[Huawei-Eth-Trunk2]trunkport g3/0/0

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

[Huawei-Eth-Trunk2]ip add 192.168.3.1  24

[Huawei-Eth-Trunk2]un sh

Info: Interface Eth-Trunk2 is not shutdown.

[Huawei-Eth-Trunk2]q

[Huawei]ip route-static 192.168.4.0  24 192.168.3.2

[Huawei]ip route-static  192.168.1.0  24 192.168.2.1

ar3和ar4类似

 

Sw1

<Huawei>sy

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

[Huawei]un in en

Info: Information center is disabled.

[Huawei]vl b 10 20

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

[Huawei]int g0/0/1

[Huawei-GigabitEthernet0/0/1]port link-ty acc

[Huawei-GigabitEthernet0/0/1]port de vl 10

[Huawei-GigabitEthernet0/0/1]q

[Huawei]int e 1

[Huawei-Eth-Trunk1]trunkport g 0/0/2 to  0/0/4

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

[Huawei-Eth-Trunk1]port link-type trunk

[Huawei-Eth-Trunk1]port trunk all vl all

[Huawei-Eth-Trunk1]q

[Huawei]int e 2

[Huawei-Eth-Trunk2]trunkport g 0/0/5  to 0/0/6

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

[Huawei-Eth-Trunk2]port  link-type trunk

[Huawei-Eth-Trunk2]port  trunk all vl all

[Huawei-Eth-Trunk2]

Sw2与sw1类似

ar1

<Huawei>sy

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

[Huawei]un in en

Info: Information center is disabled.

[Huawei]int e 2

[Huawei-Eth-Trunk2]undo portsw

[Huawei-Eth-Trunk2]trunkport g 0/0/0 to 0/0/1

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

[Huawei-Eth-Trunk2]q

[Huawei]int e 2.1

[Huawei-Eth-Trunk2.1]dot1q termination vid 10

[Huawei-Eth-Trunk2.1]arp broadcast enable

[Huawei-Eth-Trunk2.1]ip add 192.168.10.1  24

[Huawei-Eth-Trunk2.1]un sh

Info: Interface Eth-Trunk2.1 is not shutdown.

[Huawei-Eth-Trunk2.1]q

[Huawei]int e 2.2

[Huawei-Eth-Trunk2.2]dot1q termination vid 20

[Huawei-Eth-Trunk2.2]arp broadcast enable

[Huawei-Eth-Trunk2.2]ip add 192.168.20.1 24

[Huawei-Eth-Trunk2.2]un sh

Info: Interface Eth-Trunk2.2 is not shutdown.

[Huawei-Eth-Trunk2.2]q

[Huawei]int e 3

[Huawei-Eth-Trunk3]undo portsw

[Huawei-Eth-Trunk3]trunkport g 0/0/2

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

[Huawei-Eth-Trunk3]trunkport g 3/0/0

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

[Huawei-Eth-Trunk3]ip add 192.168.5.1 24

[Huawei-Eth-Trunk3]un sh

Info: Interface Eth-Trunk3 is not shutdown.

[Huawei-Eth-Trunk3]q

[Huawei]ip route-static 192.168.6.0  24 192.168.5.2

ar2与ar1类似

实验最终解过实现ping即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

数据库从删库到跑路

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值