交换机简单配置。

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

xuan#configure terminal 进入特权模式
xuan(config)#hostname xuan123 更改交换机名称
------------------------------------------------------------------------------------
配置每个端口速度。
xuan123(config-if)#speed ?
10 Force 10 Mbps operation
100 Force 100 Mbps operation
auto Enable AUTO speed configuration
xuan123(config-if)#no shutdown
------------------------------------------------------------------------------------
xuan(config)#vlan 101
xuan(config-vlan)#nam
xuan(config-vlan)#name xuan101
新建一个vlan 命名为101
-------------------------------------------------------------------------------------
将某端口加入 vlan101
xuan(config)#interface fastEthernet 0/1
xuan(config-if)#sw
xuan(config-if)#switchport acc
xuan(config-if)#switchport access VLAN
xuan(config-if)#switchport access VLAN 101
-------------------------------------------------------------------------------------
进入交换机某端口 然后通过转化为trunk模式进行连接
xuan(config)#interface fastEthernet 0/1
xuan(config-if)#switchport mode trunk
---------------------------------------------------------------------------------------
快速生成树模式 需要在两台交换机同时配置
xuan(config)#spanning-tree mode ?
pvst Per-Vlan spanning tree mode
rapid-pvst Per-Vlan rapid spanning tree mode
----------------------------------------------------------------------------------------
show能显示的东西
xuan#show ?
access-lists List access lists
arp Arp table
boot show boot attributes
cdp CDP information
clock Display the system clock
dtp DTP information
etherchannel EtherChannel information
flash: display information about flash: file system
history Display the session command history
hosts IP domain-name, lookup style, nameservers, and host table
interfaces Interface status and configuration
ip IP information
logging Show the contents of logging buffers
mac-address-table MAC forwarding table
mls Show MultiLayer Switching information
port-security Show secure port information
privilege Show current privilege level
processes Active process statistics
running-config Current operating configuration
sessions Information about Telnet connections
snmp snmp statistics
spanning-tree Spanning tree topology
startup-config Contents of startup configuration
storm-control Show storm control configuration
tcp Status of TCP connections
tech-support Show system information for Tech-Support
terminal Display terminal configuration parameters
users Display information about terminal lines
version System hardware and softw

are status
vlan VTP VLAN status
vtp VTP information


相关文档
最新文档