自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

基礎配置:cisco交換機配置vlan(2)

網(wǎng)絡 路由交換
VLAN網(wǎng)絡可以是有混合的網(wǎng)絡類型設備組成,比如:10M以太網(wǎng)、100M以太網(wǎng)、令牌網(wǎng)、FDDI、CDDI等等,可以是工作站、服務器、集線器、網(wǎng)絡上行主干等等。

三層交換機上VLAN的設置

(1)方法一:一般常規(guī)配置

  1. Switch# configure terminal  
  2.  
  3. Switch(config)# vlan 20  
  4.  
  5. Switch(config-vlan)# name test20  
  6.  
  7. Switch(config-vlan)#ip address 1.1.1.1 255.255.255.0  
  8.  
  9. Switch(config-vlan)# end 

 

方法二:也可以在enable狀態(tài)下,進行VLAN配置:

  1. Switch# vlan database // 進入VLAN配置狀態(tài)  
  2.  
  3. Switch(vlan)# vlan 20 name test20 // 加入VLAN號及VLAN名  
  4.  
  5. Switch(vlan)# exit 更新VLAN數(shù)據(jù)庫并退出 

 

(2)將端口分配給某個VLAN

  1. Switch# configure terminal  
  2.  
  3. Switch(config)# interface fastethernet0/1  
  4.  
  5. Switch(config-if)# switchport mode access // 定義二層口的工作模式為接入模式  
  6.  
  7. Switch(config-if)# switchport access vlan 2 // 把端口分配給某一VLAN  
  8.  
  9. Switch(config-if)# end  
  10.  
  11. Switch# 

 

(3)配置VLAN Trunks

  1. Switch# configure terminal  
  2.  
  3. Switch(config)# interface fastethernet0/4  
  4.  
  5. Switch(config-if)# switchport mode trunk  
  6.  
  7. Switch(config-if)# switchport trunk encapsulation dot1q  
  8.  
  9. Switch(config-if)# end  
  10.  
  11. 附:switchport trunk encapsulation {isl | dot1q | negotiate} // 配置trunk封裝ISL 或 802.1Q 或自動協(xié)商 

 

switchport mode {dynamic {auto | desirable} | trunk} (一般不用它),配置二層trunk模式。(dynamic auto—自動協(xié)商是否成為trunk;dynamic desirable—把端口設置為trunk如果對方端口是trunk, desirable, 或自動模式;trunk—設置端口為強制的trunk方式,而不理會對方端口是否為trunk)

(4)定義trunk允許的VLAN

  1. Switch(config)# interface fastethernet0/1  
  2.  
  3. Switch(config-if)# switchport trunk allowed vlan remove 2 // 配置trunk允許的VLAN  
  4.  
  5. Switch(config-if)# end  
  6.  
  7. 附:switchport trunk allowed vlan {add | all | except | remove} vlan-list 

 

(5)配置Native VLAN(802.1q)

  1. switch(config-if)# switchport trunk native vlan-num   
  2.  
  3. // 封裝802.1q的trunk端口可以接受帶有標簽和不帶標簽的數(shù)據(jù)流,交換機向native vlan傳送不帶標簽的數(shù)據(jù)流,缺省情況下native VLAN是VLAN 1使用no switchport trunk native vlan 端口配置命令回到缺省的狀態(tài) 

 

(6)配置一組端口

  1. 4006# configure terminal  
  2.  
  3. 4006(config)# interface range fastethernet2/1 – 5  
  4.  
  5. 4006(config-if-range)# no shutdown  
  6.  
  7. // 注意:端口號之間需要加入空格,如:interface range fastethernet 2/1 – 5 是有效的,而interface range fastethernet 2/1-5 是無效的.  
  8.  
  9. 以下的例子顯示使用逗號來配置不同類型端口的組:  
  10.  
  11. 4006# configure terminal  
  12.  
  13. 4006(config)# interface range fastethernet2/1 – 3, gigabitethernet3/1 - 2  
  14.  
  15. 4006(config-if-range)# no shutdown 

 

(7)其它常用命令

  1. duplex {auto | full | half}   
  2.  
  3. // 設置全雙工或半雙工.  
  4.  
  5. speed {10 | 100 | 1000 | auto | nonegotiate} 設置端口速率   
  6.  
  7. // 注:1000 只工作在千兆口. GBIC模塊只工作在1000 Mbps下. nonegotiate 只能在這些GBIC上用 1000BASE-SX, -LX, and -ZX GBIC.  
  8.  
  9. copy running-config startup-config   
  10.  
  11. // 保存設置 

 

(8)配置EtherChannel

以太通道捆綁幾個以太端口為一個獨立的邏輯鏈路。如4006交換機,你可以捆綁在4006任何模塊上最多8個兼容的具有相同速率的端口。每個以太通道具有一個port-channel端口號。要捆綁一個以太通道時,會產(chǎn)生一個邏輯port-channel端口,邏輯端口下的配置可影響與之捆綁的物理端口,但物理端口下的配置不能影響邏輯端口的配置。

1) 三層以太通道(邏輯port-channe)的配置

  1. Switch# configure terminal  
  2.  
  3. Switch(config)# interface port-channel 1 // 創(chuàng)建一個邏輯端口  
  4.  
  5. Switch(config-if)# ip address 172.32.52.10 255.255.255.0  
  6.  
  7. Switch(config-if)# end 

 

2) 三層物理端口配置

  1. Switch# configure terminal  
  2.  
  3. Switch(config)# interface range fastethernet 5/4 – 5 (注意: 空格是必需的)  
  4.  
  5. Switch(config-if)# no switchport // 改變該端口為三層接口  
  6.  
  7. Switch(config-if)# no ip address // 確認接口沒有配置IP地址  
  8.  
  9. Switch(config-if)# channel-group 1 mode desirable  
  10.  
  11. Switch(config-if)# end  
  12.  
  13. 附: Switch(config-if)# channel-group port_channel_number mode {auto | desirable | on} // 將該物理端口加入一個以太通道中,并確定PagP模式。 

 

3) 二層以太通道配置

  1. Switch# configure terminal  
  2.  
  3. Switch(config)# interface range fastethernet 5/6 - 7 (注意: 空格是必需的)  
  4.  
  5. Switch(config-if-range)# channel-group 2 mode desirable  
  6.  
  7. Switch(config-if-range)# end  
  8.  
  9. Switch# show running-config interface port-channel 2  
  10.  
  11. Building configuration...  
  12.  
  13. Current configuration:  
  14.  
  15. !  
  16.  
  17. interface Port-channel2  
  18.  
  19. switchport access vlan 10  
  20.  
  21. switchport mode access  
  22.  
  23. end  
  24.  
  25. Switch# 

三層交換機上VLAN的設置就為大家介紹完了,希望大家已經(jīng)掌握。

【編輯推薦】

    1. VLAN-VPN典型配置
    2. 組播VLAN的典型配置
    3. 基于端口的VLAN典型配置指導
    4. 基礎配置:cisco交換機配置vlan(1)
    5. 基礎配置:cisco交換機配置vlan(2)
責任編輯:佚名 來源: Cisco技術網(wǎng)
相關推薦

2011-04-02 17:13:39

VTPTrunk

2011-04-02 17:20:44

vlan

2011-03-08 10:58:38

VLANIP

2010-01-27 10:30:26

Cisco交換機配置

2010-01-05 13:37:04

配置交換機VLAN

2011-03-08 10:44:31

VLANIP

2011-12-06 10:00:20

VlanCISCO交換機

2010-01-14 10:00:08

交換機VLAN應用

2011-05-12 10:08:22

VLAN

2010-03-22 15:28:19

Cisco交換機配置

2013-05-23 14:11:32

交換機虛擬串口配置網(wǎng)絡虛擬化技術

2011-09-13 11:02:14

cisco交換機網(wǎng)絡配置

2010-03-18 17:01:52

Cisco交換機

2011-03-08 10:17:14

VLAN

2009-12-17 13:21:30

Cisco交換機和集線

2010-01-06 16:40:30

cisco交換機vla

2012-11-15 10:38:11

局域網(wǎng)交換機VLAN

2010-01-11 14:59:03

TP-Link交換機配

2011-03-09 15:13:38

DHCP Relay

2011-09-13 12:22:57

端口監(jiān)聽配置Cisco端口鏡像配置
點贊
收藏

51CTO技術棧公眾號