实验1-5:配置三层交换

本文介绍了如何通过三层交换机配置VLANIF接口和Eth-Trunk链路,实现VLAN间通信。实验涉及批量创建VLAN、配置OSPF协议等,以确保不同网络的三层通信。
摘要由CSDN通过智能技术生成

目录

一,实验1-5:配置三层交换

【实验目的】

【实验环境】

【实验过程】

步骤一. 实验环境准备

步骤二. 在 S1 和 S2 批量创建 VLAN 3 到 VLAN 7 

步骤三. 配置 Eth-Trunk 链路 

步骤四. 配置 VLANIF 三层接口

步骤六. 检测 VLAN 3 和 VLAN 4 间的连通性 

步骤七. 在 S1 和 S2 上配置 OSPF 协议

【实验总结】

二,实验:配置三层交换

 【实验目的】

【实验环境】

【实验过程】

步骤一:创建vlan2 和3

步骤二:设置虚拟vlan接口

步骤三:配置access接口

【实验总结】


一,实验1-5:配置三层交换

【实验目的】

· 掌握通过三层交换机实现VLAN间通信的配置方法

· 掌握通过以太网Trunk链路实现VLAN间通信的配置方法

· 掌握在丌同VLAN间配置劢态路由协议OSPF的方法

【实验环境】

在企业网络中,通过使用三层交换机可以简便的实现VLAN间通信。作为企业的网络管理员,您需要在三层交换机配置VLANIF接口的三层功能,使得如上所示拓扑图中的网络能够实现VLAN间通信。此外,为了使S1和S2所连接不同网络能够迚行三层通信,还需要配置路由协议。

【实验过程】

拓扑图

操作步骤 

步骤一. 实验环境准备

将R1上的G0/0/1接口的IP地址配置为10.33.4.1/24,在S1和S2间配置Eth-Trunk,并关闭S3和S4上的无关端口。

<Huawei>system-view

[Huawei]sysname hyj R1

[R1]interface GigabitEthernet 0/0/1

[R1-GigabitEthernet0/0/1]ip address 10.33.4.1 24

<Huawei>system-view

[Huawei]sysname hyj R3

<Quidway>system-view

[Quidway]sysname hyj S1

[S1]interface Eth-Trunk 1

[S1-Eth-Trunk1]mode lacp-static

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

[S1-Eth-Trunk1]port trunk allow-pass vlan all

[S1-Eth-Trunk1]quit

[S1]interface GigabitEthernet 0/0/9

[S1-GigabitEthernet0/0/9]eth-trunk 1

[S1-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10

[S1-GigabitEthernet0/0/10]eth-trunk 1

<Quidway>system-view

[Quidway]sysname hyj S2

[S2]interface Eth-Trunk 1

[S2-Eth-Trunk1]mode lacp-static

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

[S2-Eth-Trunk1]port trunk allow-pass vlan all

[S2-Eth-Trunk1]quit

[S2]interface GigabitEthernet 0/0/9

[S2-GigabitEthernet0/0/9]eth-trunk 1

[S2-GigabitEthernet0/0/9]interface GigabitEthernet 0/0/10

[S2-GigabitEthernet0/0/10]eth-trunk 1

<Quidway>system-view

[Quidway]sysname hyj S3

[S3]interface Ethernet 0/0/23

[S3-Ethernet0/0/23]shutdown

<Quidway>system-view

[Quidway]sysname hyj S4

[S4]interface Ethernet 0/0/12

[S4-Ethernet0/0/14]shutdown

步骤. 在 S1 和 S2 批量创建 VLAN 3 到 VLAN 7 

[S1]vlan batch 3 to 7

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

[S2]vlan batch 3 to 7

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

确认VLAN已成功创建。

[S1]display vlan

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值