爱采购

发产品

  • 发布供应
  • 管理供应

enspvlan配置

   2022-11-28 来源于网络3090
导读

一、ensp中路由器如何配置vlan创建vlan:[sw1]vlan 10 //创建VLAN10[sw1-vlan10]vlan 20 //创建VLAN20配置access:[sw1]interface Ethernet 0/0/1 //进入以太网接口0/0/1[sw1-Ethernet0/0/1]port link-type access //配置接口类型为Access[sw1-Ethernet0/0/1]port de

一、ensp中路由器如何配置vlan

创建vlan:

[sw1]vlan 10 //创建VLAN10

[sw1-vlan10]vlan 20 //创建VLAN20

配置access:

[sw1]interface Ethernet 0/0/1 //进入以太网接口0/0/1

[sw1-Ethernet0/0/1]port link-type access //配置接口类型为Access

[sw1-Ethernet0/0/1]port default vlan 10 //分配接口给VLAN10

配置trunk:

[sw1]interface Ethernet 0/0/4

[sw1-Ethernet0/0/4]port link-type trunk //配置接口类型为trunk

[sw1-Ethernet0/0/4]port trunk allow-pass vlan 10 20//trunk口允许通过的VLAN


二、关于cisco路由器vlan配置问题~

需要通过单臂路由才能是不同的vlan之间通信,具体配置就是进入子接口中封装802.1Q协议配置vlan的IP地址并且no shutdown

Router(config)#interface f0/0.1

%link-5-CHANGED: Interface FastEthernet0/0.1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to upRouter(config-subif)#en

Router(config-subif)#encapsulation do

Router(config-subif)#encapsulation dot1Q ?

<1-1005> IEEE 802.1Q VLAN ID

Router(config-subif)#encapsulation dot1Q 1

Router(config-subif)#ip ad

Router(config-subif)#ip address 192.168.1.1 255.255.255.0

Router(config-subif)#no sh

Router(config-subif)#no shutdown

Router(config-subif)#

 
反对 0举报 0 收藏 0 打赏 0评论 0
更多问题及资料,可以加入星球讨论
每日获取更多最新行业干货与资料


免责声明
• 
本文为小编原创作品,作者: 小编。欢迎转载,转载请注明原文出处:https://www.rdhyw.com/news/show-10638.html 。本文仅代表作者个人观点,本站未对其内容进行核实,请读者仅做参考,如若文中涉及有违公德、触犯法律的内容,一经发现,立即删除,作者需自行承担相应责任。涉及到版权或其他问题,请及时联系我们rdhyw@qq.com。
 
更多>行业下载

入驻

企业入驻成功 可尊享多重特权

入驻热线:158-7146-9462

请手机扫码访问

小程序

小程序更便捷的查找产品

为您提供专业帮买咨询服务

请用微信扫码

公众号

微信公众号,收获商机

微信扫码关注

顶部