Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface vlan 1 Switch(config-if)#ip address 192.168.1.200 255.255.255.0 Switch(config-if)#no shutdown Switch(config-if)# %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol...
上面的一系列为切换Vlan,并且shutdown端口,这时候大家可能看到了交换机3号端口的状态已变成disable了,如果我们要启用端口只需 switch#conf t Enter configuration commands, one per line. End with CNTL/Z. switch(config)# switch(config)#int fa0/3 switch(config-if)# switch(config-if)#no shut switch(co...
switchxxxxxx#show vlanCreated by: S-Static, G-GVRP, R-Radius Assigned VLAN, V-Voice VLAN interface vlan Use theinterface vlanGlobal Configuration mode command to enter the Interface Configuration (VLAN) mode for a specific VLAN. After this command is entered, all ...
switch(config-if)#switchport trunk allowed vlan 1。2 ---设置同意的vlan。默认不用配置。为全部vlan switch(config-if)#switchport trun native vlan 999 ---设置trunk口的native vlan 5、port状态 switch(config)# switch(config)#int fa0/3 switch(config-if)# switch(config-if)# switch(config-if)#s...
Learn Cisco, configure trunk ports on switches including native VLAN and configure access port for Voice and Data VLANs.
Switch(vlan)# exit 将端口分配给一个VLAN configure terminal 进入配置状态 interface interface-id 进入要分配的端口 switchport mode access 定义二层口 switchport access vlan vlan-id 把端口分配给某一VLAN 例 Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. ...
The interface ID can be one of the following types: Ethernet port, port-channel, VLAN, range, Bluetooth, IP interface or tunnel. Command Mode Global Configuration mode Examples Example 1—For Ethernet ports: switchxxxxxx(config)# interface gi1/0...
switchport access vlan vlan-id 可选) 指定一个缺省 VLAN, 如果此端口不再是trunk switchport trunk native vlan vlan-id #指定 802.1Q native VLAN 号 例: Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. ...
interface vlan +vlan 号 进入 VLAN 接口模式 ip add +ip 地址 为 VLAN 配置管理 IP 地址 VTP 中继 vtp+service/tracsparent/client 配置 SW 的 VTP 工作模式 vtp +domain+域名 配置 SW 的 VTP 域名 vtp +password +密码 配置 SW 的密码 switchport mode trunk 启用中继 ...
Switch(vlan)# exit 将端口分配给一个VLAN configure terminal 进入配置状态 interface interface-id 进入要分配的端口 switchport mode access 定义二层口 switchport access vlan vlan-id 把端口分配给某一VLAN 例 Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. ...