亚洲国产日韩欧美在线a乱码,国产精品路线1路线2路线,亚洲视频一区,精品国产自,www狠狠,国产情侣激情在线视频免费看,亚洲成年网站在线观看

思科交換機(jī)的基本配置命令

時(shí)間:2020-11-12 14:57:37 網(wǎng)絡(luò)技術(shù) 我要投稿

思科交換機(jī)的基本配置命令

  網(wǎng)絡(luò)技術(shù)知識(shí)其實(shí)也是弱電里面的一個(gè)難點(diǎn),這個(gè)一般是在大學(xué)課程里面才能詳細(xì)的學(xué)習(xí),今天小編帶來(lái)的是交換機(jī)的基本配置命令。

  一、基本配置命令

  switch> 用戶模式

  1:進(jìn)入特權(quán)模式 enable

  switch> enable

  switch#

  2:進(jìn)入全局配置模式 configure terminal

  switch> enable

  switch#c onfigure terminal

  switch(conf)#

  3:交換機(jī)命名 hostname aptech2950 以 aptech2950 為例

  switch> enable

  switch#c onfigure terminal

  switch(conf)#hostname aptch-2950

  aptech2950(conf)#

  4:配置使能口令 enable password cisco 以 cisco 為例

  switch> enable

  switch#c onfigure terminal

  switch(conf)#hostname aptch2950

  aptech2950(conf)# enable password cisco

  5:配置使能密碼 enable secret ciscolab 以 cicsolab 為例

  switch> enable

  switch#c onfigure terminal

  switch(conf)#hostname aptch2950

  aptech2950(conf)# enable secret ciscolab

  6:設(shè)置虛擬局域網(wǎng) vlan 1 interface vlan 1

  switch> enable

  switch#c onfigure terminal

  switch(conf)#hostname aptch2950

  aptech2950(conf)# interface vlan 1

  aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交換機(jī)端口 ip 和子網(wǎng)掩碼

  aptech2950(conf-if)#no shut 是配置處于運(yùn)行中

  aptech2950(conf-if)#exit

  aptech2950(conf)#ip default-gateway 192.168.254 設(shè)置網(wǎng)關(guān)地址

  7:進(jìn)入交換機(jī)某一端口 interface fastehernet 0/17 以 17 端口為例

  switch> enable

  switch#c onfigure terminal

  switch(conf)#hostname aptch2950

  aptech2950(conf)# interface fastehernet 0/17

  aptech2950(conf-if)#

  8:查看命令 show

  switch> enable

  switch# show version 察看系統(tǒng)中的所有版本信息

  show interface vlan 1 查看交換機(jī)有關(guān) ip 協(xié)議的配置信息

  show running-configure 查看交換機(jī)當(dāng)前起作用的配置信息

  show interface fastethernet 0/1 察看交換機(jī) 1 接口具體配置和統(tǒng)計(jì)信息

  show mac-address-table 查看 mac 地址表

  show mac-address-table aging-time 查看 mac 地址表自動(dòng)老化時(shí)間

  9:交換機(jī)恢復(fù)出廠默認(rèn)恢復(fù)命令

  switch> enable

  switch# erase startup-configure

  switch# reload

  10:雙工模式設(shè)置

  switch> enable

  switch#c onfigure terminal

  switch2950(conf)#hostname aptch-2950

  aptech2950(conf)# interface fastehernet 0/17 以 17 端口為例

  aptech2950(conf-if)#duplex full/half/auto 有 full , half, auto 三個(gè)可選

  項(xiàng)

  11:cdp 相關(guān)命令

  switch> enable

  switch# show cdp 查看設(shè)備的 cdp 全局配置信息

  show cdp interface fastethernet 0/17 查看 17 端口的 cdp 配置信息

  show cdp traffic 查看有關(guān) cdp 包的統(tǒng)計(jì)信息

  show cdp nerghbors 列出與設(shè)備相連的 cisco 設(shè)備

  12:csico2950 的密碼恢復(fù)

  拔下交換機(jī)電源線。

  用手按著交換機(jī)的 MODE 鍵,插上電源線

  在 switch:后執(zhí)行 flash_ini 命令:switch: flash_ini

  查看 flash 中的文件: switch: dir flash:

  把“config.text”文件改名為“config.old”: switch: rename flash: config.text flash: config.old

  執(zhí)行 boot: switch: boot

  交換機(jī)進(jìn)入是否進(jìn)入配置的對(duì)話,執(zhí)行 no :

  進(jìn)入特權(quán)模式察看 flash 里的`文件: show flash :

  把“config.old”文件改名為“config.text”: switch: rename flash: config.old flash: config.text

  把 “ config.text ” 拷 入 系 統(tǒng) 的 “ running-configure ”: copy flash: config.text system :

  running-configure

  把配置模式重新設(shè)置密碼存盤,密碼恢復(fù)成功。

  13:交換機(jī) telnet 遠(yuǎn)程登錄設(shè)置:

  switch>en

  switch#c onfigure terminal

  switch(conf)#hostname aptech-2950

  aptech2950(conf)#enable password cisco 以 cisco 為特權(quán)模式密碼

  aptech2950(conf)#interface fastethernet 0/1 以 17 端口為 telnet 遠(yuǎn)程登錄端口

  aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0

  aptech2950(conf-if)#no shut

  aptech2950(conf-if)#exit

  aptech2950(conf)line vty 0 4 設(shè)置 0-4 個(gè)用戶可以 telnet 遠(yuǎn)程登陸

  aptech2950(conf-line)#login

  aptech2950(conf-line)#password edge 以 edge 為遠(yuǎn)程登錄的用戶密碼

  主機(jī)設(shè)置:

  ip 192.168.1.2 主機(jī)的 ip 必須和交換機(jī)端口的地址在同一網(wǎng)絡(luò)

  段

  netmask 255.255.255.0

  gate-way 192.168.1.1 網(wǎng)關(guān)地址是交換機(jī)端口地址

  運(yùn)行:

  telnet 192.168.1.1

  進(jìn)入 telnet 遠(yuǎn)程登錄界面

  password : edge

  aptech2950>en

  password: cisco

  aptech#

  14:交換機(jī)配置的重新載入和保存

  設(shè)置完成交換機(jī)的配置后:

  aptech2950(conf)#reload

  是否保存(y/n) y: 保存設(shè)置信息 n:不保存設(shè)置信息

【思科交換機(jī)的基本配置命令】相關(guān)文章:

1.思科交換機(jī)基本配置命令大全

2.思科交換機(jī)的高級(jí)配置命令

3.思科交換機(jī)基本配置

4.思科交換機(jī)的基本配置

5.華為思科交換機(jī)基本配置

6.交換機(jī)基本配置命令大全

7.華為交換機(jī)基本配置命令

8.思科三層交換機(jī)配置命令大全