S1900基本配置

>enable
#config terminal
(config)#hostname s1900 
s1900(config)#ip address 192.168.0.119 255.255.255.0  --为1900交换机配置IP地址  
s1900(config)#ip default-gateway 192.168.0.1          --为1900交换机配置网关          
s1900(config)#enable password ?
  level  Set exec level password
s1900(config)#enable password level ?
  <1-15>  Level number
s1900(config)#enable password level 15 cisco          --配置特权用户enable的密码
s1900(config)#exit 
S1900#show ip                                         --显示IP的配置信息
S1900#show mac-address-table                          --显示交换机的MAC地址表
S1900#config t
S1900(config)#int e 0/2
S1900(config-if)#duplex ?                             --设置交换机端口的双工模式
  auto               Enable auto duplex configuration
  full               Force full duplex operation
  full-flow-control  Force full duplex with flow control
  half               Force half duplex operation
S1900(config-if)#duplex half
S1900(config-if)#exit
S1900(config)#exit
S1900#show run
S1900#delete nvram       --删除交换机所有配置
S1900#reload             --重启交换机
===================================================================================
Spanning-Tree
--------------------------------------------------
S1900#show version
Cisco Catalyst 1900/2820 Enterprise Edition Software
。。。。。。
Base Ethernet Address: 00-04-DD-4E-9C-80    --交换机的MAC地址
S1900#show span
VLAN1 is executing the IEEE compatible Spanning Tree Protocol
   Bridge Identifier has priority 32768, address 0004.DD4E.9C80   --交换机的优先权
S1900#config t
S1900(config)#spantree 1        --启用生成树功能
S1900(config)#no spantree 1     --禁用生成树
============================================================================================

你可能感兴趣的:(职场,休闲,S1900)