预览加载中,请您耐心等待几秒...
1/4
2/4
3/4
4/4

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

一、实验拓扑图: 二、配置: LSW1: interfaceVlanif2 ipaddress10.1.1.1255.255.255.0 # interfaceVlanif3 ipaddress10.1.2.1255.255.255.0 # interfaceVlanif4 ipaddress10.1.4.1255.255.255.0 # interfaceMEth0/0/1 # interfaceEthernet0/0/1 portlink-typetrunk porttrunkallow-passvlan2to4094 # interfaceEthernet0/0/2 portlink-typeaccess portdefaultvlan2 # interfaceEthernet0/0/10 portlink-typeaccess portdefaultvlan3 LSW2: interfaceVlanif2 ipaddress10.1.3.1255.255.255.0 # interfaceVlanif4 ipaddress10.1.4.2255.255.255.0 # interfaceMEth0/0/1 # interfaceEthernet0/0/1 portlink-typetrunk porttrunkallow-passvlan2to4094 # interfaceEthernet0/0/2 portlink-typeaccess portdefaultvlan2 三、测试: 1.配置好上面的命令好以后: 10.1.1.2和10.1.2.2之间能互ping通,但是与10.1.3.1之间互ping不通: 2.在LSW1配置:iproute-static10.1.3.0255.255.255.010.1.4.2 在LSW2配置: iproute-static10.1.1.0255.255.255.010.1.4.1 iproute-static10.1.2.0255.255.255.010.1.4.1 就能测试正常: 3.把两台交换机的interfaceethernet0/0/1 portlink-typetrunk porttrunkallow-passvlan2to4094 改为:interfaceethernet0/0/1 portlink-typeaccess portdefaultvlan4 测试的结果也是正常ping通的。 四、收集信息: 在两台交换机创建相同的VLAN,分配不同的网段,之间用trunk链路,同台交换机的不同网段可以互相ping通,不同的交换机之间是ping不通,可以做安全,只需要通过路由协议就能互通。 五、查看路由表: 1.