暂时我们先介绍Trunk模式和Access模式,Multi模式等以后我们介绍 VLAN设置的时候再一并介绍。 interface range可以对一组端口进行统一配置,如果已知端口是直接与PC机连接不会接路由交换机和集线器的情况下可以用spanning-tree portfast 命令设置快速端口,快速端口不再经历生成树的四个状态,直接进入转发状态,提高接入速度。 Pc...
The new commands are added to interface and are saved in the running configuration file. There are Cisco-default Smartports macros embedded in the switch software (see Table 16-1). You can display these macros and the commands they contain by using the show parser macro user EXEC comm...
switch(boot)(config)# interface mgmt 0 switch(boot)(config-if)# ip address 10.0.0.2 255.255.255.0 switch(boot)(config-if)# no shutdown switch(boot)(config-if)# exit switch(boot)(config)# ip default-gateway 10.0.0.1 switch(boot)(config)# exit switch(boot)# copy tftp...
Configure default switchport interface state (shut/noshut) [shut]: //配置默认的交换机接口状态 Configure default switchport trunk mode (on/off/auto) [on]: off //配置默认的交换机端口中继模式 Configure default switchport port mode F (yes/no) [n]: //配置默认的switchport端口模式F Configure defaul...
switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway 4.在基于IOS的交换机上启用和阅读CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable 为了查察Cisco毗邻设备的CDP通知信息: ...
(1)支持通过命令行(Command-Line Interface,简称CLI)或Web界面,来对交换机进行配置和管理。 (2)支持通过交换机的控制端口(Console)或Telnet会话来登录连接访问交换机。 (3)提供有用户模式(user level)和特权模式(privileged level)两种命令执行级别,并提供有全局配置、接口配置、子接口配置和vlan数据库配置等多种级别...
Switch(config)#default interface gigabitEthernet 1/0/1 3.6 配置VLAN 以太网端口有二种链路类型:Access和Trunk。 Access类型的端口只能属于1个VLAN,一般用于连接计算机的端口; Trunk类型的端口可以属于多个VLAN,可以接收和发送多个VLAN的报文,一般用于交换机之间连接的端口(trunk是允许vlan透传的一个概念)。 Switch(co...
switch(config)# interface vlan 1 switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;设置交换机 IP 地址 switch(config)#ip default-gateway 192.168.1.254 ;设置默认网关 (4、配置交换机特权密码及远程终端telnet 密码 switch>en switch#conf t ;进入全局配置模式 ...
switch# show interface fastethernet 0/1 ;查询端口 0/1的配置结果 (3)、配置二层交换机管理IP及网关 switch(config)# interface vlan 1 switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;设置交换机 IP 地址 switch(config)#ip default-gateway 192.168.1.254 ;设置默认网关 ...
switch# show interface fastethernet 0/1 ;查询端口 0/1的配置结果 (3)、配置二层交换机管理IP及网关 switch(config)# interface vlan 1 switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;设置交换机 IP 地址 switch(config)#ip default-gateway 192.168.1.254 ;设置默认网关 ...