1. 交换机的基本命令
交换机的启动及基本配置
1924交换机上配置
sw1924_b#delete nvram
全部清除交换机的所有配置
sw1924_b#reload
重新启动交换机(初始提示符为> )
sw1924_b#hostname sw1924
设置交换机的主机名
sw1924_b#enable secret cisco
设置加密密码
sw1924_b#enable password level 1 cisco1
设置等级密码(1最低)
sw1924_b#enable password level 15 cisco15
设置等级密码(15最高)
sw1924_b#ip address 192.168.14.1 255.255.255.0
设置交换机的管理IP地址
sw1924_b#ip default-gateway 192.168.198.2
设置交换机的网关地址
sw1924_b#ip domain-name pctc.com.cn
设置交换机所连域的域名
sw1924_b#ip name-server 218.87.18.230
设置交换机所连域的域名服务器IP
sw1924_b#show ip
查看上述设置环境
sw1924_b#show version
查看交换机的版本等信息
sw1924_b#show running-config
查看交换机的当前运行配置等全部信息
sw1924_b#show int e0/1
查看交换机的第1个端口信息
1924交换机配置端口属性
sw1924_b#conf t
sw1924_b#interface ethernet 0/1
进入第1个端口
sw1924_b#description sw1924_b-e0/1-pc1
给端口写入注释信息
sw1924_b#plex auto/full/full-flow-control/half
设置端口的工作模式
sw1924_b#port secure
启用端口安全性
sw1924_b#port secure max-mac-count 1
设置该端口允许对应的MAC地址数(默认132个)
sw1924_b#sh mac-address-table security
查看端口安全性
sw1912_a#conf t
进入全局配置模式
sw1912_a#interface fastethernet 0/1
进入第1个端口
sw1912_a#description sw2912_a-f0/1-pc1
给端口写入注释信息
sw1912_a#plex auto/full/half
设置端口的工作模式
sw1912_a#port security
启用端口安全性
sw1912_a#port security max-mac-count 1
设置该端口允许对应的MAC地址数(默认132个)
sw1912_a#end
返回特权模式
sw1912_a#sh port security
查看端口安全性
配置和查看MAC地址表
1924交换机配置MAC地址表
sw1924_b#mac-address-table aging-time 600
设置动态地址超时时间
sw1924_b#mac-address-table permanent 0000.0cdd.5a4d e0/3
定义永久MAC地址(绑定MAC地址)
sw1924_b#mac-address-table restricted static 0000.0cdd.aaed e0/6 e0/7
定义受限MAC地址
sw1924_b#address-violation disable/ignore/suspend
定义地址安全违规
sw1924_b#show mac-address-table
查看上述配置
sw1924_b#clear mac-addr restric static
清除受限MAC地址表项
2912交换机配置MAC地址表
sw2912_a#mac-address-table aging-time 700
设置动态地址超时时间
sw2912_a#mac-address-table static 0000.0cdd.5a4d e0/3
定义永久MAC地址(绑定MAC地址)
sw2912_a#mac-address-table secure 00d0.f80d.3333 f0/3 vlan 1
定义受限MAC地址
sw2912_a#port security action shutdown/trap
定义地址安全违规
sw2912_a#show port security
查看上述配置
配置VTP、VLAN、VLAN Trunk和STP
配置VTP
sw1924_a#conf t
sw1924_a#vtp server
定义VTP的工作模式
sw1924_a#vtp domain cisco
定义VTP的域名
sw1924_a#trunk on
启用干道
sw1924_b#vtp domain cisco
加入VTP域
sw1924_b#vtp client
定义VTP的工作模式
sw1924_b#trunk on
启用干道
sw1924_a#show trunk b
sw1924_a#show trunk b allowed-vlans
查看干道信息
配置VLAN
sw1924_a#vlan 10 dept1
sw1924_a#vlan 20 dept2
sw1924_a#vlan 30 dept3
sw1924_a#vlan 40 dept4
定义所需VLAN
sw1924_a#show vlan
查看VLAN信息
sw1924_b#show vlan
sw1924_b#show vtp
查看VTP的信息
sw1924_b#int e0/1
sw1924_b#vlan-membership static 10
sw1924_b#int e0/2
sw1924_b#vlan-membership static 20
sw1924_b#int e0/3
sw1924_b#vlan-membership static 30
sw1924_b#int e0/4
sw1924_b#vlan-membership static 40
把接口划入各自VLAN
配置spanning tree
sw1924_b#spantree 1
启用生成树协议
sw1924_b#sh spantree 1
查看生成树信息
sw1924_b#no spantree 1
关闭生成树协议
sw1924_b#sh spantree 1
查看生成树信息
2. 交换机配置命令
1、交换机配置命令,英文名Switchboard Command,是一种计算机语言,用来控制交换机的语言。
3. 交换机的命令行操作模式有拿几种啊
交换机的模式可以用提示符区分,
用户模式:提示符 >
特权模式:提示符 #
全局配置模式:提示符 (config)#
接口配置模式:提示符 (config-if)#
VLAN配置模式:提示符 (vlan)#
线路配置模式:提示符 (config-line)#
4. 西门子交换机x208设置
西门子交换机设置:
西门子电话交换机的设置的时候是连接好本地连接,连接好相应的端口,PC端通过特殊的程序来设置并且对交换机进行管理,先配置登陆的IP地址,进行用户设置界面,再配置本地用户和远程用户名等等,再配置相应的方案等等。设置的时候要注意端口的连接,看好说明书,避免连接出错,引起设备不能用的情况。
随着科技的发展,我们信息交流方式已经越来越多,正是因为这些科技的积累与改变,让我们现在用上了这些方便的科技技术,方便了现在如今的科技交流,所以我们要在这些技术的基础上不断学习创新,才能创造出更多好的技术。
5. 西门子Xc216交换机设置
西门子XC216交换机的设置的时候是连接好本地连接,连接好相应的端口,PC端通过特殊的程序来设置并且对交换机进行管理,先配置登陆的IP地址,进行用户设置界面,再配置本地用户和远程用户名等等,再配置相应的方案等等。设置的时候要注意端口的连接,看好说明书,避免连接出错,引起设备不能用的情况。
西门子交换机:交换机作为局域网的重要连接方式,成为普及最快的网络设备之一。随着现如今交换技术的提升,交换机的价格也不再像以前那么昂贵,交换机的性能和稳定性也越来越高。当前世界上有很多种交换机,而最出名的就为西门子交换机。西门子交换机具有自动化集成化的思想理念,在使用上够灵活、高效应、更安全,统一用户体验,迅速大幅度的改造了工作流程方便人们的使用,一般分级等级为5级,分机容量也比较大。
根据网络类型划分我们有:广域网交换机和局域网交换机。根据传输的介质和传输的速度分为:以太网交换机、千兆交换机、ATM交换机等等。根据交换机应用于哪些层级可以分为:校园网交换机、部门级别的交换机、工作式交换机等等。
6. 求交换机命令大全
每个厂家的 产品命令也是不一样的
1.在基于IOS的交换机上设置主机名/系统名:
switch(config)# hostname hostname
在基于CLI的交换机上设置主机名/系统名:
switch(enable) set system name name-string
2.在基于IOS的交换机上设置登录口令:
switch(config)# enable password level 1 password
在基于CLI的交换机上设置登录口令:
switch(enable) set password
switch(enable) set enalbepass
3.在基于IOS的交换机上设置远程访问:
switch(config)# interface vlan 1
switch(config-if)# ip address ip-address netmask
switch(config-if)# ip default-gateway ip-address
在基于CLI的交换机上设置远程访问:
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通告信息:
switch# show cdp interface [type modle/port]
switch# show cdp neighbors [type mole/port] [detail]
在基于CLI的交换机上启用和浏览CDP信息:
switch(enable) set cdp {enable|disable} mole/port
为了查看Cisco邻接设备的CDP通告信息:
switch(enable) show cdp neighbors[mole/port] [vlan|plex|capabilities|detail]
5.基于IOS的交换机的端口描述:
switch(config-if)# description description-string
基于CLI的交换机的端口描述:
switch(enable)set port name mole/number description-string
6.在基于IOS的交换机上设置端口速度:
switch(config-if)# speed{10|100|auto}
在基于CLI的交换机上设置端口速度:
switch(enable) set port speed moudle/number {10|100|auto}
switch(enable) set port speed moudle/number {4|16|auto}
7.在基于IOS的交换机上设置以太网的链路模式:
switch(config-if)# plex {auto|full|half}
在基于CLI的交换机上设置以太网的链路模式:
switch(enable) set port plex mole/number {full|half}
8.在基于IOS的交换机上配置静态VLAN:
switch# vlan database
switch(vlan)# vlan vlan-num name vla
switch(vlan)# exit
switch# configure teriminal
switch(config)# interface interface mole/number
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan vlan-num
switch(config-if)# end
在基于CLI的交换机上配置静态VLAN:
switch(enable) set vlan vlan-num [name name]
switch(enable) set vlan vlan-num mod-num/port-list
9. 在基于IOS的交换机上配置VLAN中继线:
switch(config)# interface interface mod/port
switch(config-if)# switchport mode trunk
switch(config-if)# switchport trunk encapsulation {isl|dotlq}
switch(config-if)# switchport trunk allowed vlan remove vlan-list
switch(config-if)# switchport trunk allowed vlan add vlan-list
在基于CLI的交换机上配置VLAN中继线:
switch(enable) set trunk mole/port [on|off|desirable|auto|nonegotiate]
Vlan-range [isl|dotlq|dotl0|lane|negotiate]
10.在基于IOS的交换机上配置VTP管理域:
switch# vlan database
switch(vlan)# vtp domain domain-name
在基于CLI的交换机上配置VTP管理域:
switch(enable) set vtp [domain domain-name]
11.在基于IOS的交换机上配置VTP 模式:
switch# vlan database
switch(vlan)# vtp domain domain-name
switch(vlan)# vtp {sever|cilent|transparent}
switch(vlan)# vtp password password
在基于CLI的交换机上配置VTP 模式:
switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]
7. 交换机全部命令和汉语翻译,高分送上!
交换机配置命令详解 1. 交换机支持的命令: 交换机基本状态: switch: ;ROM状态, 路由器是rommon hostname ;用户模式 hostname# ;特权模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口状态 交换机口令设置: switchenable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname ;设置交换机的主机名 switch(config)#enable secret xxx ;设置特权加密口令 switch(config)#enable password xxa ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;允许登录 switch(config-line)#password xx ;设置登录口令xx switch#exit ;返回命令 交换机VLAN设置: switch#vlan database ;进入VLAN设置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2 switch(config)#int f0/1 ;进入端口1 switch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2 switch(config-if)#switchport mode trunk ;设置为干线 switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan switch(config-if)#switchport trunk encap dot1q ;设置vlan 中继 switch(config)#vtp domain ;设置发vtp域名 switch(config)#vtp password ;设置发vtp密码 switch(config)#vtp mode server ;设置发vtp模式 switch(config)#vtp mode client ;设置发vtp模式 交换机设置IP地址: switch(config)#interface vlan 1 ;进入vlan 1 switch(config-if)#ip address ;设置IP地址 switch(config)#ip default-gateway ;设置默认网关 switch#dir flash: ;查看闪存 交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#show vlan ;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息
8. 西门子程控交换机 设置问题
是机器右上角的那块板,两个RJ45的水晶头,蓝橙绿棕那么压就可以了
9. 交换机的命令具体怎么使用
交换机的命令非常多,主要是用来配置交换机的,只有可网管的交换机(有console口的交换机)才能进行配置。
不同厂家、不同型号的交换机的配置命令也不大一样。
举个CISCO的命令例子吧:
hostname是给交换机命名的命令,如交换机本来的名字是Switch,使用(config)#hostname
JIAOHUANJI,就可以把交换机的名字改成JIAOHUANJI了。
交换机配置时还分很多种模式,每种模式下的配置命令也都有很大区别,具体的真不是三两句说得清的,你只有买些教材看看了。
10. 为什么config进了程控交换机无法输入命令
我们下面以Cisco公司的Catalyst2900交换机为例,介绍交换机的一般配置过程。
一、交换机配置方式
1. 通过Console(控制台)端口连接终端或运行终端仿真软件的微机;第一次对交换机和路由器设置必须使用该方式。
波特率:9600;数据位8;奇偶校验无;停止位1。
2. 通过AUX端口连接MODEM,通过电话线与远方的终端或运行终端仿真软件的微机相连。
3. 通过TFTP服务器。
4. 通过TELNET程序。
5. 通过SNMP网管工作站(如Cisco Works 2000)
6. 此外,在交换机中启用HTTP服务,还可通过浏览器来配置。
二、交换机、路由器的存储器和配置文件
1、存储器分类
1)RAM:随机存储器,相当于计算机的内存,掉电时所有信息都清空。用于保存交换机和路由器的运行数据,如路由表、ARP表、各端口运行状态等。
2)ROM:只读存储器,用来存储系统引导软件和监控程序,其内容由厂商在出厂前固化,不能更改。
3)NVRAM:非易失性可读写存储器,其特点是断电后内容不丢失。用来保存配置文件,启动时用这个配置文件作为初始化配置文件。
4)Flash:闪存,它也是断电内容不丢失的存储器,用来存储交换机和路由器操作系统IOS,一般不修改,当升级IOS版本时可以修改。
2、配置文件及其备份
配置文件有两份:
1)当前运行的配置(running-config):存储在RAM中的,可以修改,当关闭时,配置将全部丢失。
2)备份配置(startup-config):存储在NVRAM中,每次启动时会自动装入。
有以下几种备份方式:
1)保存配置到NVRAM
Switch# running-config startup-config
2)保存配置到TFTP服务器中
Switch# running-config tftp
3)覆盖当前配置文件
Switch# startup-config running-config
Switch#config memory
Switch# tftp running-config
Switch#setup
三、命令模式
1、交换机的命令行(CLI)操作
交换机和路由器的命令是按模式分组的,每种模式中都定义了一组命令集,所以想要使用某个命令,就必须先进入相应的模式。各种模式可通过命令提示符进行区分,命令提示符的格式为:
提示符名 模式
提示符名一般是设备的名字,交换机的默认名字为“Switch”,路由器的默认名字是“Router”,提示符模式表明了当前所处的模式