亚洲欧美精品沙发,日韩在线精品视频,亚洲Av每日更新在线观看,亚洲国产另类一区在线5

<pre id="hdphd"></pre>

  • <div id="hdphd"><small id="hdphd"></small></div>
      學習啦>學習電腦>電腦入門>

      CISCO交換機配置操作學習教程

      時間: 志藝942 分享

        你還在為CISCO交換機配置操作學習教程而煩惱么?不用擔心,接下來是學習啦小編為大家收集的CISCO交換機配置操作學習教程,歡迎大家閱讀:

        CISCO交換機配置操作學習教程的方法

        1.注意事項

        1.交換機啟動需要大約4-5分鐘;

        2.網(wǎng)線插入交換機接口從黃變?yōu)榫G需要大約1-2分鐘,即進入正常工作模式;

        3.建議使用XP系統(tǒng)進行操作,2003默認沒有安裝超級終端,需要使用安裝光盤添加該工具才有;

        4.請嚴格按照以下步驟進行,背景灰色字體為交換機顯示信息,藍色字體為配置命令。

        2.準備工作

        先保持交換機斷電狀態(tài);

        使用調(diào)試串口線連接筆記本電腦的串口與交換機背面的CONSOLE接口;

        打開超級終端:

        開始-所有程序-附件-超級終端;

        配置超級終端:

        名稱-cisco

        選擇com1或com2(請依照實際情況進行選擇)

        修改每秒位數(shù)為9600

        應用-確定-回車;

        3.初始配置

        給交換機通電;

        片刻后會看到交換機的啟動信息,直到出現(xiàn)以下配置選項:

        Would you like to terminate autoinstall? [yes]: no

        Would you like to enter the initial configuration dialog? [yes/no]:no

        Would you like to terminate autoinstall? [yes]: no

        4.出現(xiàn)命令窗口

        Switch>

        5.備份出廠配置

        Switch>en 進入特權(quán)模式

        Switch#copy running-config sfbak-config

        Destination filename [sfbak-config]?回車

        片刻后會出現(xiàn):

        1204 bytes copied in 0.529 secs (2276 bytes/sec)

        表示文件備份成功。

        6.配置賬號密碼

        Switch#configure terminal 進入配置子模式

        Switch(config)#enable password cisco 設置PASSWORD密碼為cisco

        Switch(config)#enable secret cisco 設置SECRET密碼為cisco

        Switch(config)#exit

        片刻后會出現(xiàn):

        00:11:26: %SYS-5-CONFIG_I: Configured from console by console

        表示將配置保存到了內(nèi)存中,在后面的配置過程中會出現(xiàn)類似的信息,屬于正?,F(xiàn)象。

        7.創(chuàng)建VLAN

        Switch#show vlan 查看VLAN信息,默認有一個VLAN 1,并且所有端口都屬于它

        Switch#vlan database 進入VLAN子模式

        片刻后會出現(xiàn):

        % Warning: It is recommended to configure VLAN from config mode,

        as VLAN database mode is being deprecated. Please consult user

        documentation for configuring VTP/VLAN in config mode.

        屬于正常的警告信息。

        Switch(vlan)#vlan 2 創(chuàng)建VLAN2

        片刻后會出現(xiàn):

        VLAN 2 added:

        Name: VLAN0002

        表示VLAN創(chuàng)建成功。

        Switch(vlan)#vlan 3 創(chuàng)建VLAN3

        Switch(vlan)#exit

        8.為VLAN設置IP地址

        為VLAN2設置IP地址

        Switch#configure terminal 進入配置子模式

        Switch(config)#interface vlan 2 配置IP,VLAN2

        Switch(config-if)#ip address 133.37.125.5 255.255.255.0 設置交換機IP(具體IP請依照實際情況設置)

        Switch(config-if)#exit

        為VLAN3設置IP地址

        Switch(config)#interface vlan 3 配置IP,VLAN3

        Switch(config-if)#ip address 192.168.1.5 255.255.255.0 設置交換機IP(具體IP請依照實際情況設置)

        Switch(config-if)#exit

        9.為VLAN劃分交換機接口

        配置1-12號電口為VLAN2

        Switch(config)#interface range fastEthernet 0/1 - 12 進入F0/1 到 F0/12

        Switch(config-if)#Switchport mode access 設成靜態(tài)VLAN訪問模式

        Switch(config-if)#Switchport access vlan 2 將此口分給VLAN2

        Switch(config-if)#exit

        ===================

        配置13-24號電口為VLAN3

        Switch(config)#interface range fastEthernet 0/13 - 24 進入F0/13 到 F0/24

        Switch(config-if)#Switchport mode access 設成靜態(tài)VLAN訪問模式

        Switch(config-if)#Switchport access vlan 3 將此口分給VLAN3

        Switch(config-if)#exit

        ===================

        配置1號光口為VLAN-2

        Switch(config)#interface GigabitEthernet 0/1 進入G0/1

        Switch(config-if)#Switchport mode access 設成靜態(tài)VLAN訪問模式

        Switch(config-if)#Switchport access vlan 2 將此口分給VLAN2

        Switch(config-if)#exit

        ===================

        配置2號光口為VLAN-3

        Switch(config)#interface GigabitEthernet 0/2 進入G0/2

        Switch(config-if)#Switchport mode access 設成靜態(tài)VLAN訪問模式

        Switch(config-if)#Switchport access vlan 3 將此口分給VLAN3

        Switch(config-if)#exit

        Switch(config)#exit

        10.關(guān)閉VLAN1

        Switch#configure terminal 進入配置子模式

        Switch(config)#interface vlan 1 配置VLAN1

        Switch(config-if)#shutdown 關(guān)閉VLAN1

        Switch(config-if)#exit

        Switch(config)#exit

        Switch#show interface fastethernet0/1 status 查看F0/1網(wǎng)口狀態(tài)

        Switch#show interface fastethernet0/1 查看F0/1網(wǎng)口詳細配置

        Switch#show running-config 查看全局配置

        11.配置默認網(wǎng)關(guān)

        Switch#configure terminal 進入配置子模式

        Switch(config)#ip default-gateway 133.37.125.4

        Switch(config)#exit

        12.設置使可以遠程telnet登陸

        Switch#configure terminal 進入配置子模式

        Switch(config)#line vty 0 4

        Switch(config-line)#password cisco

        Switch(config-line)#login

        Switch(config-line)#exit

        Switch(config)#exit

        13.保存當前配置

        Switch#copy running-config startup-config

        Destination filename [startup-config]?回車

        片刻后出現(xiàn):

        Building configuration...

        [OK]

        表示當前配置保存成功。

        14.交換機配置情況圖示

        配置完成,目前整個交換機配置情況如下:

        15.其它相關(guān)知識

        交換機與交換機/路由器間級聯(lián)通信:

        當級聯(lián)的設備端口設置了trunk或劃分了VLAN等情況,可能需要修改級聯(lián)端口的工作模式為trunk模式才能實現(xiàn)相互之間的通信。

        如果是與電口級聯(lián),可以修改1號網(wǎng)口為trunk工作模式,使用該接口進行級聯(lián):

        Switch#configure terminal 進入配置子模式

        Switch(config)#interface fastethernet0/1 進入F0/1口

        Switch(config-if)#switchport trunk encapsulation dot1q

        Switch(config-if)#switchport mode trunk 設成TRUNK口

        Switch(config-if)#switchport trunk allowed vlan all 允許所有VLAN從此口通過

        Switch(config-if)#exit

        Switch(config)#exit

        如果是與光纖接口級聯(lián),可以修改1號光纖接口為trunk工作模式,使用該接口進行級聯(lián):

        Switch#configure terminal 進入配置子模式

        Switch(config)#interface GigabitEthernet 0/1 進入G0/1

        Switch(config-if)#switchport trunk encapsulation dot1q

        Switch(config-if)#switchport mode trunk 設成TRUNK口

        Switch(config-if)#switchport trunk allowed vlan all 允許所有VLAN從此口通過

        Switch(config-if)#exit

        Switch(config)#exit

        執(zhí)行后請按照第13步中的描述保存當前配置。

        WEB方式檢查交換機狀態(tài):

        如果需要對交換機的狀態(tài)進行實施查看,可以通過

        URL:http://192.168.1.5 或 http://133.37.125.5

        賬號:admin

        密碼:cisco

        登陸后進行查看。

        恢復交換機出廠設置:

        Switch>en 進入特權(quán)模式

        Switch#write erase

        Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]回車

        [OK]

        Erase of nvram: complete

        00:36:19: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

        Switch# reload

        Proceed with reload? [confirm]回車

        00:36:59: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.

        片刻之后,交換機會進行重啟,并在重啟后恢復為出廠設置。

        遠程通過telnet登陸交換機終端:

        將本機IP設置為與交換機VLAN2或VLAN3同一個網(wǎng)段;

        開始-運行-cmd;

        執(zhí)行telnet 133.37.125.5 或 telnet 192.168.1.5 即可。

      看了“CISCO交換機配置操作學習教程”還想看:

      1.西門子交換機怎么配置

      2.思科交換機配置教程詳解

      3.思科交換機基本配置實例講解

      4.思科交換機配置命令教程

      5.Cisco 2960交換機的基礎安裝配置教程

      6.cisco2960交換機安裝配置基礎詳解

      7.思科交換機配置命令介紹

      2743393