欢迎来到天天文库
浏览记录
ID:38428976
大小:17.76 KB
页数:3页
时间:2019-06-12
《配置VLAN间通过VLANIF接口通信博客》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、配置VLAN间通过VLANIF接口通信任务:配置vlan间通过vlanif接口进行通信,要求LSW2上vlan10里的pc1与vlan20里的pc2之间能相互通信在eNSP模拟器上交换机没有Eth接口,为完成此配置实验,需准备如下的数据:1.在LSW1上配置接口GE0/0/1加入VLAN10和VLAN20。2.在LSW1上配置VLANIF10的IP地址为192.168.2.1/24。3.在LSW1上配置VLANIF20的IP地址为192.168.3.1/24。4.在LSW2上配置接口GE0/0/1加入VLAN10和VLAN20。6.在LSW2上
2、配置接口GE0/0/2加入VLAN10。7.在LSW2上配置接口GE0/0/3加入VLAN20。设备之间连接如下图所示:操作如下:一、配置交换机LSW1system-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]undoinfo-centerenableInfo:Informationcenterisdisabled.[Huawei]vlanbatch1020Info:Thisoperationmaytakeafewseconds.Pleasewaitforamomen
3、t...done.[Huawei]interfacegiga0/0/1[Huawei-GigabitEthernet0/0/1]portlink-typetrunk[Huawei-GigabitEthernet0/0/1]porttrunkallow-passvlan1020[Huawei-GigabitEthernet0/0/1]quit[Huawei]interfacevlanif10[Huawei-Vlanif10]ipaddress192.168.2.124[Huawei-Vlanif10]quit[Huawei]interfacevl
4、anif20[Huawei-Vlanif20]ipaddress192.168.3.124[Huawei-Vlanif20]quit[Huawei]二、配置交换机LSW2system-viewEntersystemview,returnuserviewwithCtrl+Z.[Huawei]undoinfo-centerenableInfo:Informationcenterisdisabled.[Huawei]vlanbatch1020Info:Thisoperationmaytakeafewseconds.Pleasewait
5、foramoment...done.[Huawei]interfacegiga0/0/1[Huawei-GigabitEthernet0/0/1]portlink-typetrunk[Huawei-GigabitEthernet0/0/1]porttrunkallow-passvlan1020[Huawei-GigabitEthernet0/0/1]quit[Huawei]interfaceeth0/0/1^Error:Wrongparameterfoundat'^'position.[Huawei]interfaceethernet0/0/1
6、^Error:Wrongparameterfoundat'^'position.上面的命令出错了,在模拟器上没有ethernet接口[Huawei]interfacegiga0/0/2[Huawei-GigabitEthernet0/0/2]portlink-typeaccess[Huawei-GigabitEthernet0/0/2]portdefaultvlan10[Huawei-GigabitEthernet0/0/2]quit[Huawei]interfacegiga0/0/3[Huawei-GigabitEthernet0/0/3]p
7、ortlink-typeaccess[Huawei-GigabitEthernet0/0/3]portdefaultvlan20[Huawei-GigabitEthernet0/0/3]quit[Huawei]Userinterfacecon0isavailable三、配置两台PC电脑设置PC1的IP为192.168.2.224192.168.2.1设置PC2的IP为192.168.3.224192.168.3.1四、检查结果在PC1上能ping通PC2在PC2上能ping通PC1配置前与配置后的对比WelcometousePCSimulato
8、r!PC>ping192.168.2.2Ping192.168.2.2:32databytes,PressCtrl_CtobreakFrom192.1
此文档下载收益归作者所有