1. <tt id="5hhch"><source id="5hhch"></source></tt>
    1. <xmp id="5hhch"></xmp>

  2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

    <rp id="5hhch"></rp>
        <dfn id="5hhch"></dfn>

      1. 思科三層交換機配置命令

        時間:2023-02-28 03:14:15 思科認(rèn)證 我要投稿
        • 相關(guān)推薦

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

          Cisco的名字取自San Francisco(舊金山),那里有座聞名于世界的金門大橋?梢哉f,依靠自身的技術(shù)和對網(wǎng)絡(luò)經(jīng)濟模式的深刻理解,思科成為了網(wǎng)絡(luò)應(yīng)用的成功實踐者之一。為幫助同學(xué)們更好去學(xué)習(xí)思科交換機配置,yjbys小編為大家?guī)碜钚屡渲妹钊缦拢?/p>

          配置一組二層端口

          configure terminal 進入配置狀態(tài)

          nterface range {port-range} 進入組配置狀態(tài)

          配置三層端口

          configure terminal 進入配置狀態(tài)

          interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-channel port-channel-number} 進入端口配置狀態(tài)

          no switchport 把物理端口變成三層口

          ip address ip_address subnet_mask 配置IP地址和掩碼

          no shutdown 激活端口

          例:

          Switch(config)# interface gigabitethernet0/2

          Switch(config-if)# no switchport

          Switch(config-if)# ip address 192.20.135.21 255.255.255.0

          Switch(config-if)# no shutdown

          配置VLAN

          configure terminal 進入配置狀態(tài)

          vlan vlan-id 輸入一個VLAN號, 然后進入vlan配態(tài),可以輸入一個新的VLAN號或舊的來進行修改。

          name vlan-name 可選)輸入一個VLAN名,如果沒有配置VLAN名,缺省的名字是VLAN號前面用0填滿的4位數(shù),如VLAN0004是VLAN4的缺省名字

          mtu mtu-size (可選) 改變MTU大小

          例

          Switch# configure terminal

          Switch(config)# vlan 20

          Switch(config-vlan)# name test20

          Switch(config-vlan)# end

          或

          Switch# vlan database

          Switch(vlan)# vlan 20 name test20

          Switch(vlan)# exit

          將端口分配給一個VLAN

          configure terminal 進入配置狀態(tài)

          interface interface-id 進入要分配的端口

          switchport mode access 定義二層口

          switchport access vlan vlan-id 把端口分配給某一VLAN

          例

          Switch# configure terminal

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

          Switch(config)# interface fastethernet0/1

          Switch(config-if)# switchport mode access

          Switch(config-if)# switchport access vlan 2

          Switch(config-if)# end

          Switch#

          配置VLAN trunk

          configure terminal 進入配置狀態(tài)

          interface interface-Id 進入端口配置狀態(tài)

          switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝ISL 或 802.1Q 或自動協(xié)商

          switchport mode {dynamic {auto | desirable} | trunk} 配置二層trunk模式。

          dynamic auto—自動協(xié)商是否成為trunk

          dynamic desirable—把端口設(shè)置為trunk如果對方端口是trunk, desirable, 配置Native VLAN(802.1q)

          或自動模式,trunk—設(shè)置端口為強制的trunk方式,而不理會對方端口是否為trunk

          switchport access vlan vlan-id 可選) 指定一個缺省VLAN, 如果此端口不再是trunk

          switchport trunk native vlan vlan-id 指定802.1Q native VLAN號

          例:

          Switch# configure terminal

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

          Switch(config)# interface fastethernet0/4

          Switch(config-if)# switchport mode trunk

          Switch(config-if)# switchport trunk encapsulation dot1q

          Switch(config-if)# end

          定義TRUNK允許的VLAN

          configure terminal子 進入配置狀態(tài)

          interface interface-id 進入端口配置

          switchport mode trunk 配置二層口為trunk

          switchport trunk allowed vlan {add | all | except | remove} vlan-list可選) 配置trunk允許的VLAN.使用add, all, except, remove關(guān)健字

          no switchport trunk allowed vlan 允許所有VLAN通過

          例

          Switch(config)# interface fastethernet0/1

          Switch(config-if)# switchport trunk allowed vlan remove 2

          Switch(config-if)# end

          配置Native VLAN(802.1q)

          configure terminal 進入配置狀態(tài)

          interface interface-id 進入配置成802.1qtrunk的端口

          switchport trunk native vlan vlan-Id 配置native VLAN號

          no switchport trunk native vlan 端口配置命令回到缺省的狀態(tài)

          配置基于端口權(quán)值的負(fù)載均衡

          configure terminal 進入Switch 1配置狀態(tài)

          vtp domain domain-name 配置VTP域

          vtp mode server 將Switch 1配置成VTP server.

          show vtp status 驗證VTP的配置

          show vlan 驗證VLAN

          configure terminal 進入配置狀態(tài)

          interface fastethernet 0/1 進入F0/1端口

          switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝

          switchport mode trunk 配置成trunk

          show interfaces fastethernet0/1 switchport 驗證VLAN配置

          按以上步驟對想要負(fù)載均衡的接口進行配置

          在另一個交換機上進行此配置

          show vlan 當(dāng)trunk已經(jīng)起來,在switch2上驗證已經(jīng)學(xué)到相的vlan配置

          configure terminal 在Switch 1上進入配置狀態(tài)

          interface fastethernet0/1 進入要配置的端口

          spanning-tree vlan 8 port-priority 10 將端口權(quán)值10賦與VLAN 8.

          spanning-tree vlan 9 port-priority 10 將端口權(quán)值10賦與VLAN 9.

          spanning-tree vlan 10 port-priority 10 將端口權(quán)值10賦與VLAN 10.

          interface fastethernet0/2 進入F0/2

          spanning-tree vlan 3 port-priority 10 將端口權(quán)值10賦與VLAN 3.

          spanning-tree vlan 4 port-priority 10 將端口權(quán)值10賦與VLAN 4

          spanning-tree vlan 5 port-priority 10 將端口權(quán)值10賦與VLAN 5

          spanning-tree vlan 6 port-priority 10 將端口權(quán)值10賦與VLAN 10

          end 退出

          show running-config 驗證配置

          copy running-config startup-config 保存配置

          配置STP路徑值的負(fù)載均衡

          Trunk1走VLAN8-10,Trunk2走VLAN2-4

          configure terminal 進入 Switch 1配置狀態(tài)

          interface fastethernet 0/1 進入F0/1

          switchport trunk encapsulation {isl | dot1q | negotiate}配置封裝

          switchport mode trunk 配置Trunk,缺省是ISL封裝

          exit 退回

          在F0/2口上重復(fù)2-4步驟

          exit 退回

          show running-config 驗證配置

          show vlan驗證switch1 已經(jīng)學(xué)到Vlan

          configure terminal 進入配置狀態(tài)

          interface fastethernet 0/1 進入F0/1

          spanning-tree vlan 2 cost 30 設(shè)置Vlan2生成樹路徑值為30

          spanning-tree vlan 3 cost 30 設(shè)置Vlan3生成樹路徑值為30

          spanning-tree vlan 4 cost 30 設(shè)置Vlan4生成樹路徑值為30

          end 退出

          在switch1的F0/2上重復(fù)9-11步驟設(shè)置VLAN8,9,10生成樹路徑值為30

          end 退出

          show running-config 驗證配置

          copy running-config startup-config 保存配置

          補充:CISCO命令集——路由選擇協(xié)議及排障

          *ip route命令

          Router(config)# ip route <目錄網(wǎng)絡(luò)或子網(wǎng)號> [子網(wǎng)掩碼] <下一路由器IP地址 | 從本地出口的地址> [管理距離0~255,默認(rèn)為1]

          (注:靜態(tài)地址配置)

          *ip default-network命令

          Router(config)# ip default-network <目標(biāo)網(wǎng)絡(luò)號>

          (注:配合路由協(xié)使用,用其中的一個動態(tài)路由號作默認(rèn)路由配置)

          Router(config)# ip route 0.0.0.0 0.0.0.0 <下一路由器IP地址 | 從本地出口的地址>

          (注:只有一個公網(wǎng)地址時,在出口路由器上的配置)

          *內(nèi)部路由選擇協(xié)議

          *使用router和network命令

          Router(config)# router <路由協(xié)議rip | igrp | eigrp | ospf | is-is等> [自主系統(tǒng)號]

          Router(config-router)# network <直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號>

          Router(config-router)# network <直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號>

          *路由信息協(xié)議RIP

          Router(config)# router rip

          Router(config-router)# network <直接相連的要用rip協(xié)議的有類別網(wǎng)絡(luò)號>

          Router# show ip protocols

          Router# show ip route

          Router# debug ip rip

          *內(nèi)部網(wǎng)關(guān)路由協(xié)議IGRP

          Router(config)# router igrp <自主系統(tǒng)號>

          Router(config-router)# network <直接相連的要用igrp協(xié)議的有類別網(wǎng)絡(luò)號>

          Router# show ip interface

          Router# show ip protocols

          Router# show ip route

          Router# debug ip rip

          *排除網(wǎng)絡(luò)故障

          排除網(wǎng)絡(luò)故障的一個總體模型

          Router# ping <有故障的主機 | 有故障的IP地址>

          Router# show ip route

          Router# show interface <有故障的接口>

          Router# show run

          *IP的故故障排除

          檢查可用的路由

          Router# show ip route <有故障的IP地址>

          27.4.4 跟蹤路由(Tracing the Route)

          SUN-A> traceroute <有故障的主機 | 有故障的IP地址>

          C:\windows\> winipcfg

          C:\windows\> ipconfig

          C:\windows\> ipconfig / all

          C:\windows\> tracert <有故障的主機 | 有故障的IP地址>

          使用擴展的ping來跟蹤連接性

          Router# ping

          *其它可能的故障

          一個地址解析(ARP)的故障

          Router# show arp

          Router# show interface <有故障的接口>

          C:\windows\> arp -a

          SUN-A> arp –a

          驗證終端系統(tǒng)的路由表

          C:\windows\> netstat –rn

          C:\windows\> route –f add 0.0.0.0 mask 0.0.0.0 <需要添加入的網(wǎng)關(guān)地址>

          C:\windows\> route [–f ] [[print | add | delete | change] [destination] [mask netmask] [gateway]]

          C:\windows\> route add mask <網(wǎng)絡(luò)掩碼> <網(wǎng)關(guān)ip地址>

          C:\windows\> route delete mask <網(wǎng)絡(luò)掩碼> <網(wǎng)關(guān)ip地址>

          C:\windows\> nbtstat <相應(yīng)的參數(shù)>

          SUN-A> netstat -rn路由器

        【思科三層交換機配置命令】相關(guān)文章:

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

        三層交換機配置及命令解釋06-21

        思科配置命令詳細介紹06-21

        H3C三層交換機配置命令06-16

        華為交換機配置命令08-12

        思科交換機QOS配置過程06-21

        思科交換機常用的100個命令08-31

        華為交換機基本配置命令06-18

        華為交換機配置命令大全08-10

        国产高潮无套免费视频_久久九九兔免费精品6_99精品热6080YY久久_国产91久久久久久无码

        1. <tt id="5hhch"><source id="5hhch"></source></tt>
          1. <xmp id="5hhch"></xmp>

        2. <xmp id="5hhch"><rt id="5hhch"></rt></xmp>

          <rp id="5hhch"></rp>
              <dfn id="5hhch"></dfn>