从零自学网络工程师 ENSP操作 DAY8

交换机实验-3
实验目的;
1.配置交换机接口的Trunk。
实验步骤:
1.PC机的IP地址以及掩码的配置
2.交换机接口的配置
3.测试Trunk接口的功能
本次实验需要掌握的命令:
VIan 10 创建 //AN 10
Vlanbatch 10 20 //创建VLAN 10 20
port link-type access //access 接口
port default vlan 10 //属于_VLAN10
port 1ink-type trunk //接口类型为trunk
Port trunk pvid vlan 1//置trunk的pvid为vlan1
Port trunk allow-pass vlan 10 20//
配置trunk只允许 vlan10 和20通过
Display vlan //VLAN的相关信息
网络拓扑图如下:

配置LSW1:
进入系统视图,关闭回显信息,重命名为LSW1,创建VLAN 10 20,查看一下Vlan是否创建成功
 

<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center en
Info: Information center is disabled.
[Huawei]sysname LSW1
[LSW1]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[LSW1]display vlan
The total number of vlans is : 3
--------------------------------------------------------------------------------
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;
MP: Vlan-mapping;               ST: Vlan-stacking;
#: ProtocolTransparent-vlan;    *: Management-vlan;
--------------------------------------------------------------------------------

VID  Type    Ports                                                          
--------------------------------------------------------------------------------
1    common  UT:GE0/0/1(U)      GE0/0/2(U)      GE0/0/3(D)      GE0/0/4(D)      
                GE0/0/5(U)      GE0/0/6(D)      GE0/0/7(D)      GE0/0/8(D)      
                G
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值