• <nav id="cwumo"><code id="cwumo"></code></nav>
  • <menu id="cwumo"><strong id="cwumo"></strong></menu>

    思科交換機的基本配置命令

    時間:2024-07-06 08:03:37 網絡技術 我要投稿
    • 相關推薦

    思科交換機的基本配置命令

      網絡技術知識其實也是弱電里面的一個難點,這個一般是在大學課程里面才能詳細的學習,今天小編帶來的是交換機的基本配置命令。

      一、基本配置命令

      switch> 用戶模式

      1:進入特權模式 enable

      switch> enable

      switch#

      2:進入全局配置模式 configure terminal

      switch> enable

      switch#c onfigure terminal

      switch(conf)#

      3:交換機命名 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:設置虛擬局域網 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 配置交換機端口 ip 和子網掩碼

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

      aptech2950(conf-if)#exit

      aptech2950(conf)#ip default-gateway 192.168.254 設置網關地址

      7:進入交換機某一端口 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 察看系統中的所有版本信息

      show interface vlan 1 查看交換機有關 ip 協議的配置信息

      show running-configure 查看交換機當前起作用的配置信息

      show interface fastethernet 0/1 察看交換機 1 接口具體配置和統計信息

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

      show mac-address-table aging-time 查看 mac 地址表自動老化時間

      9:交換機恢復出廠默認恢復命令

      switch> enable

      switch# erase startup-configure

      switch# reload

      10:雙工模式設置

      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 三個可選

      項

      11:cdp 相關命令

      switch> enable

      switch# show cdp 查看設備的 cdp 全局配置信息

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

      show cdp traffic 查看有關 cdp 包的統計信息

      show cdp nerghbors 列出與設備相連的 cisco 設備

      12:csico2950 的密碼恢復

      拔下交換機電源線。

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

      在 switch:后執行 flash_ini 命令:switch: flash_ini

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

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

      執行 boot: switch: boot

      交換機進入是否進入配置的對話,執行 no :

      進入特權模式察看 flash 里的文件: show flash :

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

      把 “ config.text ” 拷 入 系 統 的 “ running-configure ”: copy flash: config.text system :

      running-configure

      把配置模式重新設置密碼存盤,密碼恢復成功。

      13:交換機 telnet 遠程登錄設置:

      switch>en

      switch#c onfigure terminal

      switch(conf)#hostname aptech-2950

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

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

      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 設置 0-4 個用戶可以 telnet 遠程登陸

      aptech2950(conf-line)#login

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

      主機設置:

      ip 192.168.1.2 主機的 ip 必須和交換機端口的地址在同一網絡

      段

      netmask 255.255.255.0

      gate-way 192.168.1.1 網關地址是交換機端口地址

      運行:

      telnet 192.168.1.1

      進入 telnet 遠程登錄界面

      password : edge

      aptech2950>en

      password: cisco

      aptech#

      14:交換機配置的重新載入和保存

      設置完成交換機的配置后:

      aptech2950(conf)#reload

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

    【思科交換機的基本配置命令】相關文章:

    思科交換機基本配置命令大全06-10

    思科交換機的基本配置09-10

    交換機基本配置命令大全02-26

    華為交換機基本配置命令01-21

    思科三層交換機配置命令大全09-25

    思科三層交換機配置實例及命令10-24

    華為交換機基本配置命令大全01-21

    華為交換機基本配置命令匯總02-25

    思科配置命令詳細介紹01-23

    華為交換機基本配置命令明細盤點09-20

    日韩激情