欢迎来到天天文库
浏览记录
ID:9801194
大小:446.00 KB
页数:13页
时间:2018-05-10
《三层交换机路由功能的设置》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、三层交换机路由功能的设置1.单台三层交换机路由功能配置1.在DES-3828上划分VLAN10与VLAN20,VLAN10包含1-12口,VLAN20包含13-24口2.VLAN10和VLAN20中的计算机可以互相访问DES-3828配置如下:#VLANconfigvlandefaultdelete1-28configvlandefaultadduntagged25-28createvlanv10tag10configvlanv10adduntagged1-12createvlanv20tag20configvlanv20ad
2、duntagged13-24createipifif10192.168.10.254/24v10stateenablecreateipifif20192.168.20.254/24v20stateenable其中createipif是命令名;if10是所创建的虚接口的名字,可以自己设定,不一定是if10;192.168.10.254/24是虚接口的IP地址,也是自己设定,但一定要用/24这种形式表明子网掩码长度;V10是虚接口对应的vlan的名字。需要注意的是虚接口和vlan是一一对应的,而且每个虚接口的IP应在不同的逻辑子网
3、。DES-3800:admin#showvlanCommand:showvlanVID:1VLANName:defaultVLANTYPE:staticAdvertisement:EnabledMemberports:25-28Staticports:25-28CurrentTaggedports:CurrentUntaggedports:25-28StaticTaggedports:StaticUntaggedports:25-28Forbiddenports:VID:10VLANName:v10VLANTYPE:stati
4、cAdvertisement:DisabledMemberports:1-12Staticports:1-12CurrentTaggedports:CurrentUntaggedports:1-12StaticTaggedports:StaticUntaggedports:1-12Forbiddenports:VID:20VLANName:v20VLANTYPE:staticAdvertisement:DisabledMemberports:13-24Staticports:13-24CurrentTaggedports:Cu
5、rrentUntaggedports:13-24StaticTaggedports:StaticUntaggedports:13-24Forbiddenports:TotalEntries:3用showvlan命令查看配置情况,此时V10应包含1-12端口,V20应包含13-24端口,而default包含25-28端口DES-3800:admin#showipifCommand:showipifIPInterfaceSettingsInterfaceName:SystemIPAddress:192.168.0.2(MANUAL
6、)Secondary:FALSESubnetMask:255.255.255.0VLANName:defaultAdmin.State:EnabledProxyARP:DisabledLinkStatus:LinkUPMemberPorts:25-28InterfaceName:if10IPAddress:192.168.10.254(MANUAL)Secondary:FALSESubnetMask:255.255.255.0VLANName:v10Admin.State:EnabledProxyARP:DisabledLin
7、kStatus:LinkDOWNMemberPorts:1-12InterfaceName:if20IPAddress:192.168.20.254(MANUAL)Secondary:FALSESubnetMask:255.255.255.0VLANName:v20Admin.State:EnabledProxyARP:DisabledLinkStatus:LinkDOWNMemberPorts:13-24TotalEntries:3用showipif命令查看虚接口状态,会发现一个现象:没有接PC的vlan所对应的虚接口的状态
8、是Linkdown,也就是说,vlan里接了终端,虚接口才会启用。DES-3800:admin#showiprouteCommand:showiprouteOSPFECMP:DisabledRoutingTableIPAddress/NetmaskProtocolGatewa
此文档下载收益归作者所有