思科交换机路由器命令大全交换机命令:swi t ch> 用户模式1:进入特权模式 ena bles witch> e n ables w i t c h#2:进入全局配置模式 c o n figure t e rm i n a lswit c h> ena bleswitch#c onf igure t er m i n alswitch(conf)#3:交换机命名 hostn am e aptech 2 95 0 以 aptec h 295 0为例sw i tc h〉 enab l eswitch#conf i gure t erm i n a lsw i tc h(conf)#host n ame a pt ch-2 9 50aptech29 5 0(conf)#4:配置使能口令 e na bl e pas s word c isco 以 cis co 为例s w i tc h> e n ableswit ch#co n figur e t e rmin a lswitch(conf)#h ostn ame apt c h 2 95 0apte c h 2 950(co nf)# ena ble passwo r d cisc o5:配置使能密码 e na b le s e c ret ci s c o l a b 以cicsolab 为例——设置禁用I P 地址解析特性,设置启用消息同步特性 switch> e nab lesw i tch#config u re t e rminals w i tc h(co nf)#hos tn ame aptc h 29 5 0ap t ech29 50(con f)# en a b le s e c r et ci s colabaptec h 2 9 5 0(con f)#no i p domain-lo okup --——-设置禁用IP地址解析特性a p tec h2 950(c onf)#lo ggi ng synch r on o us —-—--设置启用消息同步特性aptec h 29 5 0(conf)#i nt e rf ac e r ang e f a steth er net0/1-20aptech 2 950(conf-i f-r a ng e)#spa n n i ng—t ree po rtfast -————设置快速端口ap tec h2 9 50(c o nf)#i n t e r f a c e range fa st e t hernet 0/23—24a ptec h 295 0(c onf-i f—ra n ge)#s wi chpo r t mode tru nk ————-设置主干道端口aptech29 5 0(c onf)#s pa n ni n g-tree uplingk f a st —--设置堵塞启用迅速(只可以在访问层启用)6:设置虚拟局域网v lan 1 interface v l a n 1swit c h〉 enableswit c h#con fi gure termin a ls...