三层交换机开启路由功能的命令是:Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#no ip domain-loo Switch(config)#ip routing Switch(config)#int vlan Switch(config)#int vlan 10(这个是你的第一个VLAN)Switch(config-if)#ip add A...
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 access vlan 10 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/2 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#exit Switch(config)#interface range fastEthernet 0/3-6 Switch(config-if-range)#sw...
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 Switch(config)#interface range fastEthernet 0/7-9 Switch(config-if-range)#switchport mode access Switch(config-if-range...
Switch#show vlan name VLAN0002 Switch(config)#no vlan 2 Switch(config)#do show vlan VLAN 中继协议 (VTP) 可简化交换网络中的管理。在一台 VTP 服务器上配置新的 VLAN 时,该 VLAN 将通过域中的所有交换机进行分发。这样可以减少在各处配置相同 VLAN 的需求。VTP 是一种 Cisco 专有协议,适用于大多数...
Switch# Switch(config)#no vlan 2 // 删除vlan 2 将端口1-5划到VLAN 100中 Switch#configure terminal 进入全局配置模式 Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int range fast0/1 - 5 选中端口, Switch(config-if-range)#switchport access vlan 100 划到vlan100...
en conf t vlan 10 创建vlan 10 ip address 192.168.1.1 255.255.25.0 给vlan10 创建虚接口IP地址 如不需要省略此步骤。。exit inte fa 0/1 进入接口fa0/1 switchport access vlan 10 把这个0/1划到vlan10 内 no shut exit 以此类推 ...
!-- (Optional) Set the IP address and default gateway for VLAN1 for management purposes. L2_Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z. L2_Switch(config)#interface vlan 1L2_Switch(config-if)#ip address 10.10.0.2 255.255.255.0L2_Switch(config-if)#no...
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. ...
VLAN 20 added: Name: Chinese Switch(vlan)#vlan 30 name Other VLAN 30 added: Name: Other Switch(vlan)#exit APPLY completed. Exiting... Switch#configure terminal Enter configuration commands, one per line.End with CNTL/Z. Switch(config)#interface fastEthernet 0/1 Switch...