首页文章正文

如何将接口划入vlan,vlan加入端口

将端口加入到vlan 2023-06-04 17:10 789 墨鱼
将端口加入到vlan

如何将接口划入vlan,vlan加入端口

如何将接口划入vlan,vlan加入端口

Switch1(config-if)#switchportaccessvlan100从VLAN中删除端口Switch1(config)#interfacef0/6Switch1(config-if)#noswitcheportaccessvlan100AddagroupofconsecutiveportstoVLANSwitch1(firstDefinedvlanintheglobalmode:vlan10(avlan10isdefined)andthenentertheportmode:intf0/1(thisisthe0/1portoftheswitch)然后划分vlan:switchportaccessvlan10(put0/1

≥^≤ [LSW1-Ethernet0/0/2]portdefaultvlan10//把这个接口划分成tovlan10[LSW1-Ethernet0/0/2]q//退出意味着退出[LSW1]inte0/0/3[LSW1-Ethernet0/0/3]portlink-typeaccesssh3cdevicetoassigninterfacestovlanmethods:1.system -view命令,进入系统视图,有配置开关的权限。 2.interfaceGigabitEthernet1/0/22:接口,意思是"接口"GigabitEthernet1/0/

portaccessvlann//Addvlanntothisport以上就是创建avlan的全过程,按顺序依次进行。 下面是调试过程中的一些命令。displayarpvlann//查看vlanportdefaultvlan命令配置接口的默认VLAN,同时加入到对应的VLAN中。 配置完成后查看VLAN信息,端口是否成功加入VLAN10。

1.CreateaVLAN(1)CreateaVLANinglobalmode:switch>enableEntertheprivilegedmodesswitch#configureterminalEntertheglobalmodesswitch(config)#vlanvlan-IDCreateaVLANnumberswitch(confiStep1:CreateaVLANSecondStep3:AddinterfacestoVLANsStep3:ConfiguretrunkU/TtomarktheworkingprocessofdifferentlinksACCESSinterfacetrunkinterfaceInterfaceModificationauthorityStep4:在VLAN之间路由网络

1.创建VLAN并配置每个接口所属的VLAN,配置每个VLANIF接口的IP地址,实现相邻设备之间的网络互通。 2.配置IPoneachhost默认网关,在每台交换机上配置IPv4静态路由或者静态默认路由,这样就没有配置动态路由协议,这样就不分以下几个步骤了:首先,设置VLAN示例:添加你要设置的VLAN2,就在全局进入vlan2的模式下,第二次将交换机的端口添加到VLAN中示例:在端口模式下将交换机的第一个端口添加到VLAN2中

后台-插件-广告管理-内容页尾部广告(手机)

标签: vlan加入端口

发表评论

评论列表

黑豹加速器 Copyright @ 2011-2022 All Rights Reserved. 版权所有 备案号:京ICP1234567-2号