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

    時(shí)間:2024-08-01 23:06:46 思科認(rèn)證 我要投稿
    • 相關(guān)推薦

    cisco思科交換機(jī)配置篇

      要進(jìn)行思科交換機(jī)的配置,首先就得進(jìn)入交換機(jī)的全局配置模式,在成功連接交換機(jī)并且登陸成功進(jìn)入特權(quán)模式下,下面跟yjbys小編一起來學(xué)習(xí)一下思科交換機(jī)的配置命令吧!

      1、輸入進(jìn)入全局配置模式:

      switch#configure terminal

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

      switch(config)#

      switch(config)#

      switch(config)#

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

      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

      修改描述的關(guān)鍵命令在于,在配置模式下,進(jìn)入到要修改的端口下,然后使用description + “內(nèi)容”!效果應(yīng)該很直觀了吧,接下來就是修改端口的所在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

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

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

      4、修改端口模式

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

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

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

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

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

      5、端口狀態(tài)

      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端口,這時(shí)候大家可能看到了交換機(jī)3號端口的狀態(tài)已變成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思科交換機(jī)配置篇】相關(guān)文章:

    思科交換機(jī)的基本配置03-29

    思科交換機(jī)STP配置03-05

    思科交換機(jī)配置vlan03-05

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

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

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

    思科三層交換機(jī)配置08-21

    cisco交換機(jī)安全配置設(shè)定命令大全03-05

    思科三層交換機(jī)配置實(shí)例及命令03-04

    主站蜘蛛池模板: 欧美精品hdvideosex4k| 国产精品嫩草视频永久网址| 999久久久免费精品国产| 九九久久精品国产| 国产乱码精品一区二区三区四川人| 亚洲AV日韩精品一区二区三区| 在线观看日韩精品| 国产成人无码久久久精品一| 亚洲精品成a人在线观看| 国产精品午夜福利在线无码| 国产精品天天影视久久综合网| 亚洲国产精品SSS在线观看AV | mm1313亚洲国产精品无码试看| 国产成人久久精品激情| 欧美亚洲色综久久精品国产| 亚洲日韩精品射精日| 无码人妻精品一区二| 久久精品国产黑森林| 精品无码三级在线观看视频| 久久精品免费一区二区三区| 999在线视频精品免费播放观看| 国产亚洲精品美女久久久| 久久久久久亚洲Av无码精品专口| 亚洲欧美激情精品一区二区| 亚洲精品无码日韩国产不卡?V| 久久久久这里只有精品| 精品人妻系列无码人妻免费视频| 国产精品99久久精品爆乳| 亚洲国产成人精品不卡青青草原| 久久久久99精品成人片直播| 欧美精品国产精品| 亚洲精品~无码抽插| 免费精品精品国产欧美在线欧美高清免费一级在线 | 亚洲国产精品第一区二区三区| 狠狠精品干练久久久无码中文字幕| 人精品影院| 亚洲精品欧美综合在线| 911亚洲精品不卡| 国产精品美女久久久免费| 日韩精品一区二区亚洲AV观看| 亚洲精品一二区|