亚洲国产日韩欧美在线a乱码,国产精品路线1路线2路线,亚洲视频一区,精品国产自,www狠狠,国产情侣激情在线视频免费看,亚洲成年网站在线观看

華為三層交換機(jī)配置案例

時(shí)間:2020-11-13 10:01:39 網(wǎng)絡(luò)技術(shù) 我要投稿

華為三層交換機(jī)配置案例

  下面以華三通信H3C S3600-28P-SI為例,給大家?guī)砣A為三層交換機(jī)配置案例,希望對(duì)你有幫助!

  配置命令

  system-view //進(jìn)入系統(tǒng)視圖

  [H3C]display current-configuration //顯示當(dāng)前配置

  //以下開始配置

  第一步:劃分VLAN,并描述

  vlan 1

  description local-S3600

  vlan 2

  description link-to-wenquan

  vlan 3

  description link-to-ruzhou

  vlan 4

  description link-to-xiaotun

  vlan 5

  description link-to-baofeng

  vlan 6

  description link-to-pingxi

  vlan 7

  description link-to-pingnan

  vlan 8

  description Uplink-to-Putian

  vlan 9

  description link-to-pingxicentre

  第二步:給VLAN 劃網(wǎng)關(guān)

  interface Vlan-interface2

  description link to wenquan

  ip address 10.41.77.41 255.255.255.192

  interface Vlan-interface3

  description link to ruzhou

  ip address 10.41.77.105 255.255.255.192

  interface Vlan-interface4

  description link to xiaotun

  ip address 10.41.77.169 255.255.255.192

  interface Vlan-interface5

  description link to baofeng

  ip address 10.41.77.233 255.255.255.192

  interface Vlan-interface6

  description link to pingxi

  ip address 10.41.78.41 255.255.255.192

  interface Vlan-interface7

  description link to pingnan

  ip address 10.41.78.105 255.255.255.192

  interface Vlan-interface8

  description uplink to putian

  ip address 10.41.244.102 255.255.255.252

  interface Vlan-interface9

  description link to pingxicentre

  ip address 10.41.80.233 255.255.255.192

  第三步:給VLAN 指定端口

  interface Ethernet1/0/2

  description link to wenquan

  port access vlan 2

  interface Ethernet1/0/3

  description link to ruzhou

  port access vlan 3

  interface Ethernet1/0/4

  description link to xiaotun

  port access vlan 4

  interface Ethernet1/0/5

  description link to baofeng

  port access vlan 5

  interface Ethernet1/0/6

  description link to pingxi

  port access vlan 6

  interface Ethernet1/0/7

  description link to pingnan

  port access vlan 7

  interface Ethernet1/0/8

  description uplink to putian

  port access vlan 8

  interface Ethernet1/0/9 to Ethernet1/0/24

  description link to pingxicentre

  port access vlan 9

  第四步:配置路由協(xié)議

  //(1)用RIP配動(dòng)態(tài)路由

  rip

  network 10.41.77.41

  network 10.41.77.105

  network 10.41.77.169

  network 10.41.77.233

  network 10.41.78.41

  network 10.41.78.105

  network 10.41.80.233

  network 10.41.244.102

  //(2)配靜態(tài)路由(只用對(duì)遠(yuǎn)端設(shè)備配一條路由即可,本地自通)---推薦用此協(xié)議

  ip route 0.0.0.0 0.0.0.0 10.41.244.101

  案例:華為S3600三層交換機(jī)配置方法

  sys

  [Quidway]vlan 2

  [Quidway-vlan2]port e1/0/2

  [Quidway-vlan2]int vlan 2

  [Quidway-Vlan-interface2]ip add 10.41.77.41 255.255.255.192 //溫泉網(wǎng)關(guān)

  [Quidway-Vlan-interface2]vlan 3

  [Quidway-vlan3]port e1/0/3

  [Quidway-vlan3]int vlan 3

  [Quidway-Vlan-interface3]ip add 10.41.77.105 255.255.255.192 //汝州網(wǎng)關(guān)

  [Quidway-Vlan-interface3]vlan 4

  [Quidway-vlan4]port e1/0/4

  [Quidway-vlan4]int vlan 4

  [Quidway-Vlan-interface4]ip add 10.41.77.169 255.255.255.192 //小屯網(wǎng)關(guān)

  [Quidway-Vlan-interface4]vlan 5

  [Quidway-vlan5]port e1/0/5

  [Quidway-vlan5]int vlan 5

  [Quidway-Vlan-interface5]ip add 10.41.77.233 255.255.255.192 //寶豐網(wǎng)關(guān)

  [Quidway-Vlan-interface5]vlan 6

  [Quidway-vlan6]port e1/0/6

  [Quidway-vlan6]int vlan 6

  [Quidway-Vlan-interface6]ip add 10.41.78.41 255.255.255.192 //平西網(wǎng)關(guān)

  [Quidway-Vlan-interface6]vlan 7

  [Quidway-vlan7]port e1/0/7

  [Quidway-vlan7]int vlan 7

  [Quidway-Vlan-interface7]ip add 10.41.78.105 255.255.255.192 //平南網(wǎng)關(guān)

  [Quidway-Vlan-interface7]vlan 8

  [Quidway-vlan8]port e1/0/8

  [Quidway-vlan8]int vlan 8

  [Quidway-Vlan-interface8]ip add 10.41.244.102 255.255.255.252 //省中心網(wǎng)關(guān)

  [Quidway-Vlan-interface8]vlan 9

  [Quidway-vlan9]port e1/0/9 to e1/0/24

  [Quidway-vlan9]int vlan 9

  [Quidway-Vlan-interface9]ip add 10.41.80.233 255.255.255.192 //分中心網(wǎng)關(guān)

  //配置路由

  ip route 0.0.0.0 0.0.0.0 10.41.244.101

  華為三層交換機(jī)上如何實(shí)現(xiàn)不同vlan間的通信

  命令如下:

  一、組網(wǎng)需求:

  交換機(jī)配置了4個(gè)VLAN,分別為VLAN1,VLAN2,VLAN3,VLAN4,要求VLAN1可以與VLAN2,3,4互訪,但是VLAN2,3,4之間不能互訪,用Hybrid端口屬性實(shí)現(xiàn)此功能。

  二、配置步驟:

  1. 創(chuàng)建VLAN2

  [Quidway]vlan 2

  2. 創(chuàng)建VLAN3

  [Quidway-vlan2]vlan 3

  3. 創(chuàng)建VLAN4

  [Quidway-vlan3]vlan 4

  4. 進(jìn)入端口Ethernet1/0/1

  [Quidway-vlan4] interface Ethernet1/0/1

  5. 將端口設(shè)置為hybrid模式

  [Quidway-Ethernet1/0/1]port link-type hybrid

  6. 設(shè)置端口pvid為1

  [Quidway-Ethernet1/0/1]port hybrid pvid vlan 1

  7. 允許VLAN1,2,3,4不打標(biāo)簽通過

  [Quidway-Ethernet1/0/1]port hybrid vlan 1 to 4 untagged

  8. 進(jìn)入端口Ethernet1/0/2

  [Quidway-Ethernet1/0/1]interface Ethernet1/0/2

  9. 將端口設(shè)置為hybrid模式

  [Quidway-Ethernet1/0/2]port link-type hybrid

  10. 設(shè)置端口pvid為2

  [Quidway-Ethernet1/0/2]port hybrid pvid vlan 2

  11. 允許VLAN1,2不打標(biāo)簽通過

  [Quidway-Ethernet1/0/2]port hybrid vlan 1 to 2 untagged

  12. 進(jìn)入端口Ethernet1/0/3

  [Quidway-Ethernet1/0/2]interface Ethernet1/0/3

  13. 將端口設(shè)置為hybrid模式

  [Quidway-Ethernet1/0/3]port link-type hybrid

  14. 設(shè)置端口pvid為3

  [Quidway-Ethernet1/0/3]port hybrid pvid vlan 3

  15. 允許VLAN1,3不打標(biāo)簽通過

  [Quidway-Ethernet1/0/3]port hybrid vlan 1 3 untagged

  16. 進(jìn)入端口Ethernet1/0/4

  [Quidway-Ethernet1/0/3]interface Ethernet1/0/4

  17. 將端口設(shè)置為hybrid模式

  [Quidway-Ethernet1/0/4]port link-type hybrid

  18. 設(shè)置端口pvid為4

  [Quidway-Ethernet1/0/4]port hybrid pvid vlan 4

  19. 允許VLAN1,4不打標(biāo)簽通過

  [Quidway-Ethernet1/0/4]port hybrid vlan 1 4 untagged

  三、配置關(guān)鍵點(diǎn):

  1. 利用交換機(jī)以太網(wǎng)端口的.Hybrid特性,可以實(shí)現(xiàn)PVLAN的功能。

  2. 采用Hybrid屬性實(shí)現(xiàn)的PVLAN功能和PVLAN的工作機(jī)制存在較大差異,上述情況只適用于網(wǎng)絡(luò)流量,網(wǎng)絡(luò)用戶較少的應(yīng)用。

【華為三層交換機(jī)配置案例】相關(guān)文章:

1.華為三層交換機(jī)配置教程

2.華為三層交換機(jī)配置命令

3.華為交換機(jī)配置命令

4.思科三層交換機(jī)配置

5.三層交換機(jī)配置步驟

6.華為交換機(jī)配置命令大全

7.華為交換機(jī)基本配置命令

8.華為思科交換機(jī)基本配置