华为eNSP配置access、trunk、hybrid接口的配置实验

本文通过华为eNSP进行网络设备配置实验,涉及sw1, sw2, R1, R2的access、trunk、hybrid接口设置,并为各PC配置IP地址。实验结果显示,PC1能ping通PC3和PC4,抓包软件在相应接口捕获到数据包,验证了网络连通性。" 128768594,7242832,通用模型与专用模型:哪个在数据科学中表现更好?,"['数据科学', '机器学习', '模型训练', '算法', 'Python库']
摘要由CSDN通过智能技术生成

拓扑图如下:

(1)sw1的配置:

<Huawei>
<Huawei>system-view            //切换到系统视图
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname sw1             //配置主机名
Oct 25 2019 16:29:31-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.	
[sw1]vlan batch 10 20            //创建vlan10 、vlan20
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw1]display vlan               //查看vlan
Oct 25 2019 16:30:21-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.
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:Eth0/0/1(U)     Eth0/0/2(U)     Eth0/0/3(D)     Eth0/0/4(D)     
                Eth0/0/5(D)     Eth0/0/6(D)     Eth0/0/7(D)     Eth0/0/8(D)     
                Eth0/0/9(D)     Eth0/0/10(D)    Eth0/0/11(D)    Eth0/0/12(D)    
                Eth0/0/13(D)    Eth0/0/14(D)    Eth0/0/15(D)    Eth0/0/16(D)    
                Eth0/0/17(D)    Eth0/0/18(D)    Eth0/0/19(D)    Eth0/0/20(D)    
                Eth0/0/21(D)    Eth0/0/22(D)    GE0/0/1(U)      GE0/0/2(U)      

10   common                  //vlan10
20   common                  //vlan20

VID  Status  Property      MAC-LRN Statistics Description      
--------------------------------------------------------------------------------

1    enable  default       enable  disable    VLAN 0001                         
10   enable  default       enable  disable    VLAN 0010                         
20   enable  default       enable  disable    VLAN 0020                         
[sw1]
[sw1]int e0/0/1                    //切换接口
[sw1-Ethernet0/0/1]port hybrid pvid vlan 10            //hybrid口的pvid配置
[sw1-Ethernet0/0/1]
Oct 25 2019 16:30:51-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 6, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-Ethernet0/0/1]port hybrid untagged vlan 10    //hybrid口的untapped表配置
[sw1-Ethernet0/0/1]
Oct 25 2019 16:32:11-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 7, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-Ethernet0/0/1]
[sw1-Ethernet0/0/1]undo shutdown           //开启接口
Info: Interface Ethernet0/0/1 is not shutdown.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值