国产宅男网站在线|亚洲A级性爱免费视频|亚洲中精品级在线|午夜福利AA毛

  • <dd id="gf5jf"><th id="gf5jf"></th></dd>

    <cite id="gf5jf"><label id="gf5jf"></label></cite>
  • <div id="gf5jf"><listing id="gf5jf"></listing></div>
    學(xué)習(xí)啦>學(xué)習(xí)電腦>電腦入門>

    CISCO交換機(jī)配置操作學(xué)習(xí)教程

    時(shí)間: 志藝942 分享

      你還在為CISCO交換機(jī)配置操作學(xué)習(xí)教程而煩惱么?不用擔(dān)心,接下來是學(xué)習(xí)啦小編為大家收集的CISCO交換機(jī)配置操作學(xué)習(xí)教程,歡迎大家閱讀:

      CISCO交換機(jī)配置操作學(xué)習(xí)教程的方法

      1.注意事項(xiàng)

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

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

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

      4.請嚴(yán)格按照以下步驟進(jìn)行,背景灰色字體為交換機(jī)顯示信息,藍(lán)色字體為配置命令。

      2.準(zhǔn)備工作

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

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

      打開超級終端:

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

      配置超級終端:

      名稱-cisco

      選擇com1或com2(請依照實(shí)際情況進(jìn)行選擇)

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

      應(yīng)用-確定-回車;

      3.初始配置

      給交換機(jī)通電;

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

      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 進(jìn)入特權(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 進(jìn)入配置子模式

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

      Switch(config)#enable secret cisco 設(shè)置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信息,默認(rèn)有一個(gè)VLAN 1,并且所有端口都屬于它

      Switch#vlan database 進(jìn)入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設(shè)置IP地址

      為VLAN2設(shè)置IP地址

      Switch#configure terminal 進(jìn)入配置子模式

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

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

      Switch(config-if)#exit

      為VLAN3設(shè)置IP地址

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

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

      Switch(config-if)#exit

      9.為VLAN劃分交換機(jī)接口

      配置1-12號電口為VLAN2

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

      Switch(config-if)#Switchport mode access 設(shè)成靜態(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 進(jìn)入F0/13 到 F0/24

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

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

      Switch(config-if)#exit

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

      配置1號光口為VLAN-2

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

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

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

      Switch(config-if)#exit

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

      配置2號光口為VLAN-3

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

      Switch(config-if)#Switchport mode access 設(shè)成靜態(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 進(jìn)入配置子模式

      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)口詳細(xì)配置

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

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

      Switch#configure terminal 進(jìn)入配置子模式

      Switch(config)#ip default-gateway 133.37.125.4

      Switch(config)#exit

      12.設(shè)置使可以遠(yuǎn)程telnet登陸

      Switch#configure terminal 進(jìn)入配置子模式

      Switch(config)#line vty 0 4

      Switch(config-line)#password cisco

      Switch(config-line)#login

      Switch(config-line)#exit

      Switch(config)#exit

      13.保存當(dāng)前配置

      Switch#copy running-config startup-config

      Destination filename [startup-config]?回車

      片刻后出現(xiàn):

      Building configuration...

      [OK]

      表示當(dāng)前配置保存成功。

      14.交換機(jī)配置情況圖示

      配置完成,目前整個(gè)交換機(jī)配置情況如下:

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

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

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

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

      Switch#configure terminal 進(jìn)入配置子模式

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

      Switch(config-if)#switchport trunk encapsulation dot1q

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

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

      Switch(config-if)#exit

      Switch(config)#exit

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

      Switch#configure terminal 進(jìn)入配置子模式

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

      Switch(config-if)#switchport trunk encapsulation dot1q

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

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

      Switch(config-if)#exit

      Switch(config)#exit

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

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

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

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

      賬號:admin

      密碼:cisco

      登陸后進(jìn)行查看。

      恢復(fù)交換機(jī)出廠設(shè)置:

      Switch>en 進(jìn)入特權(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.

      片刻之后,交換機(jī)會進(jìn)行重啟,并在重啟后恢復(fù)為出廠設(shè)置。

      遠(yuǎn)程通過telnet登陸交換機(jī)終端:

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

      開始-運(yùn)行-cmd;

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

    看了“CISCO交換機(jī)配置操作學(xué)習(xí)教程”還想看:

    1.西門子交換機(jī)怎么配置

    2.思科交換機(jī)配置教程詳解

    3.思科交換機(jī)基本配置實(shí)例講解

    4.思科交換機(jī)配置命令教程

    5.Cisco 2960交換機(jī)的基礎(chǔ)安裝配置教程

    6.cisco2960交換機(jī)安裝配置基礎(chǔ)詳解

    7.思科交換機(jī)配置命令介紹

    2743393