<dfn id="w48us"></dfn><ul id="w48us"></ul>
  • <ul id="w48us"></ul>
  • <del id="w48us"></del>
    <ul id="w48us"></ul>
  • cisco思科交換機配置篇

    時間:2024-08-01 23:06:46 思科認證 我要投稿
    • 相關推薦

    cisco思科交換機配置篇

      要進行思科交換機的配置,首先就得進入交換機的全局配置模式,在成功連接交換機并且登陸成功進入特權模式下,下面跟yjbys小編一起來學習一下思科交換機的配置命令吧!

      1、輸入進入全局配置模式:

      switch#configure terminal

      Enter configuration commands, one per line. End with CNTL/Z.

      switch(config)#

      switch(config)#

      switch(config)#

      這么簡單的一條命令,俺們就進入到全局配置模式了,還記得上一篇中查看端口所查詢到的信息中name字段下的值嗎?這字段其實代表的是交換機端口的描述信息

      2、修改端口描述

      switch#

      switch#

      switch#conf ter

      Enter configuration commands, one per line. End with CNTL/Z.

      switch(config)#

      switch(config)#int fa0/3

      switch(config-if)#

      switch(config-if)#desc

      switch(config-if)#description updateDesc

      switch(config-if)#

      switch(config-if)#exit

      switch(config)#exit

      switch#

      switch#show inter

      switch#show interfaces statu

      switch#show interfaces status

      Port Name Status Vlan Duplex Speed Type

      Fa0/1 connected 1 a-full a-100 10/100BaseTX

      Fa0/2 h3c2.250 connected trunk a-full a-100 10/100BaseTX

      Fa0/3 updateDesc notconnect 1 auto auto 10/100BaseTX

      Fa0/4 connected 1 a-full a-100 10/100BaseTX

      Fa0/5 h3c-2.200 connected 1 a-full a-100 10/100BaseTX

      Fa0/6 notconnect 1 auto auto 10/100BaseTX

      修改描述的關鍵命令在于,在配置模式下,進入到要修改的端口下,然后使用description + “內容”!效果應該很直觀了吧,接下來就是修改端口的所在Vlan了

      3、修改端口Vlan

      switch#

      switch#

      switch#conf t

      Enter configuration commands, one per line. End with CNTL/Z.

      switch(config)#

      switch(config)#int fa0/3

      switch(config-if)#

      switch(config-if)#sw acc vl 2

      switch(config-if)#

      switch(config-if)#exit

      switch(config)#

      switch(config)#exit

      switch#

      switch#show inter statu

      Port Name Status Vlan Duplex Speed Type

      Fa0/1 connected 1 a-full a-100 10/100BaseTX

      Fa0/2 h3c2.250 connected trunk a-full a-100 10/100BaseTX

      Fa0/3 updateDesc notconnect 2 auto auto 10/100BaseTX

      Fa0/4 connected 1 a-full a-100 10/100BaseTX

      Fa0/5 h3c-2.200 connected 1 a-full a-100 10/100BaseTX

      Fa0/6 notconnect 1 auto auto 10/100BaseTX

      邏輯和修改端口描述是一樣的,對于配置來說,肯定是到了能有配置權限的地方和要配置的對象,這里修改端口Vlan的關鍵命令為:sw acc vl + vlantag,命令很明顯被簡寫了,但是不影響執行,命令的全寫為:switchport access vlan + vlantag

      還有一些對端口的簡單操作,譬如修改端口的模式,

      4、修改端口模式

      switch(config-if)#switchport trunk encap dot1q ----------------設置vlan 中繼的封裝協議

      注:dot1q就是 IEEE 802.1Q協議,是vlan的一種封裝方式,是公有協議。還有一種trunk協議,是ISL,也是vlan的一種封裝方式,不過這是Cisco思科私有協議,其他廠商不能用。

      switch(config-if)#switchport mode trunk ------------------------設置端口類型為trunk

      switch(config-if)#switchport trunk allowed vlan 1,2 ---------設置允許的vlan,默認不用配置,為所有vlan

      switch(config-if)#switchport trun native vlan 999 ---------------設置trunk口的native vlan

      5、端口狀態

      switch(config)#

      switch(config)#int fa0/3

      switch(config-if)#

      switch(config-if)#

      switch(config-if)#sw acc vl 1

      switch(config-if)#

      switch(config-if)#

      switch(config-if)#shutd

      switch(config-if)#shutdown

      switch(config-if)#

      switch(config-if)#exit

      switch(config)#

      switch(config)#exit

      switch#

      switch#show inter statu

      Port Name Status Vlan Duplex Speed Type

      Fa0/1 connected 1 a-full a-100 10/100BaseTX

      Fa0/2 h3c2.250 connected trunk a-full a-100 10/100BaseTX

      Fa0/3 updateDesc disabled 1 auto auto 10/100BaseTX

      Fa0/4 connected 1 a-full a-100 10/100BaseTX

      上面的一系列為切換Vlan,并且shutdown端口,這時候大家可能看到了交換機3號端口的狀態已變成disable了,如果我們要啟用端口只需

      switch#conf t

      Enter configuration commands, one per line. End with CNTL/Z.

      switch(config)#

      switch(config)#int fa0/3

      switch(config-if)#

      switch(config-if)#no shut

      switch(config-if)#no shutdown

      switch(config-if)#

      switch(config-if)#exit

      switch(config)#

      switch(config)#exit

      switch#

      switch#show inter statu

      Port Name Status Vlan Duplex Speed Type

      Fa0/1 connected 1 a-full a-100 10/100BaseTX

      Fa0/2 h3c2.250 connected trunk a-full a-100 10/100BaseTX

      Fa0/3 updateDesc notconnect 1 auto auto 10/100BaseTX

      Fa0/4 connected 1 a-full a-100 10/100BaseTX

    【cisco思科交換機配置篇】相關文章:

    思科交換機的基本配置03-29

    思科交換機STP配置03-05

    思科交換機配置vlan03-05

    思科交換機配置TRUNK的主要步驟11-29

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

    思科交換機配置及電腦開機自檢03-29

    思科三層交換機配置08-21

    cisco交換機安全配置設定命令大全03-05

    思科三層交換機配置實例及命令03-04

    主站蜘蛛池模板: 国产精品v欧美精品v日韩| 国产精品亚洲欧美大片在线观看| 国产精品亚洲A∨天堂不卡| 国产乱人伦偷精品视频| 国产精品欧美日韩| 久久亚洲私人国产精品| 婷婷成人国产精品| 国产一区二区三精品久久久无广告| 韩国精品欧美一区二区三区| 亚洲AV成人精品网站在线播放| 精品一区二区三区在线观看| 最新国产の精品合集| 国产第一福利精品导航| 欧美亚洲色综久久精品国产| 久久亚洲中文字幕精品一区| 国产精品VIDEOSSEX久久发布| 精品午夜久久福利大片| 99国产精品一区二区| 国产精品视频二区不卡| 无码国内精品久久人妻| 在线精品亚洲一区二区三区| 日本一区二区三区精品国产| 久久久精品日本一区二区三区| 国产精品无码DVD在线观看| 91久久精品电影| 91精品国产人成网站| 亚洲精品无码不卡| 久久久91精品国产一区二区三区 | 亚洲午夜福利精品无码| 男女男精品视频网站在线观看| 久久成人国产精品一区二区| 国产在线精品观看免费观看| 国产亚洲精品激情都市| 国产精品婷婷午夜在线观看| 国产精品青青在线观看爽香蕉| 国产精品免费视频观看拍拍| 国产乱人伦偷精品视频免观看| 精品久久久久国产免费| 久久国产精品波多野结衣AV | 人妻精品久久无码区| 精品欧洲av无码一区二区三区|