小白网-奉贤部落-奉贤免费信息发布平台

查看: 15|回复: 0
打印 上一主题 下一主题

enspvlan配置

[复制链接]

2万

主题

2万

帖子

7万

积分

论坛元老

Rank: 8Rank: 8

积分
78176
跳转到指定楼层
楼主
发表于 2025-7-26 13:46 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
一、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 ?
  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)#
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|小白网-奉贤部落-奉贤免费信息发布平台  

GMT+8, 2025-8-18 03:19 , Processed in 0.055665 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表