switch#show vlan ;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息 switch#show cdp nei ;查看端口上行设备及连接的对应端口信息 switch#show ip int bir 查看端口VLAN IP 开启状态总览 switch#show int status 查看端口状态总览 switch#show inventory 查看光模块显...
SA(config-if)#switchport allowed vlan 2-3 //只允许VLAN2和vlan3经过此中继传输 SA(config-if)#switchport trunk purning vlan 4 //修剪vlan4的信息。因为这个端口只接有两个VLAN,所以可以修剪vlan4 ,以减少通告带宽。 switch C config)# hostmane SC //配置名字为SA Sc(config)# interface vlan 1 Sc(...
Switch (config)# interface vlan 10 !创建VLAN虚接口,并配置IP Switch (config-if)# ip address 172.16.1.2255.255.255.0 Switch (config-if)# no shutdown Switch (config-if)# exit Switch (config)# interface vlan 50 !创建VLAN虚接口,并配置IP Switch (config-if)# no shutdown Switch (config-if)...
7:进入交换机某一端口 interface fastehernet 0/17 以17端口为例 switch> enable switch#configure terminal switch(conf)#hostname aptch2950 2950(conf)# interface fastehernet 0/17 2950(conf-if)# 8:查看命令 show switch> enable switch# show version 察看系统中的所有版本信息 show interface vlan 1 ...
Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface range fastEthernet 0/3-6 Switch(config-if-range)#switchport mode access Switch(config-if-range)#switchport access vlan 20 Switch(config-if-range)#exit ...
Cisco VLAN配置命令集如下: 1. 基本配置步骤 在Cisco交换机上进行VLAN配置通常包括以下步骤: 进入全局配置模式。 创建VLAN。 将接口分配到VLAN。 配置接口模式(如访问模式或Trunk模式)。 验证配置。 2. 创建VLAN的命令 有两种主要方法创建VLAN: 方法一(适用于老型号交换机): plaintext switch#vlan database switc...
switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ip address ;设置IP地址 switch(config)#ip default-gateway ;设置默认网关 switch#dir flash: ;查看闪存 交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 ...
L2_Switch(config)#interface vlan 1L2_Switch(config-if)#ip address 10.10.0.2 255.255.255.0L2_Switch(config-if)#no ip directed-broadcast L2_Switch(config-if)#no ip route-cache L2_Switch(config-if)#exit L2_Switch(config-if)#ip default-gateway 10.10.0.1!-- (Optional) Set the VTP Mode. ...
L2_Switch(config)#interface vlan 1L2_Switch(config-if)#ip address 10.10.0.2 255.255.255.0L2_Switch(config-if)#no ip directed-broadcast L2_Switch(config-if)#no ip route-cache L2_Switch(config-if)#exit L2_Switch(config-if)#ip default-gateway 10.10.0.1!-- (Optional) Set the VTP Mode. ...
show ip interface briet 查看接口的滴要信息 banner motd#*信息*# 配置路由器或交换机的描素信息 description+信息 配置接口听描素信息 vlan database 进入VLAN数据库模式 wlan +vlan号+名称 创建VLAN sithport access wlan +vlan号 为VLAN为配接 interface vlan +vlan号进入VLAN接口模式 ...