華為三層交換機如何開啟路由功能

2021-03-08 22:01:23 字數 5046 閱讀 4173

1樓:匿名使用者

配置前首先要確定型號字尾是si還是ei,ei的支援所有協議,si的不支援osps動態協議,因此si配置路由時可以使用靜態協議和rip協議,具體配置如下:

system-view //進入系統檢視

[h3c]display current-configuration //顯示當前配置 //以下開始配置

//第一步:劃分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 劃閘道器

inte***ce vlan-inte***ce2

description link to wenquan ip address 10.41.77.

41 255.255.255.

192 inte***ce vlan-inte***ce3

description link to ruzhou ip address 10.41.77.

105 255.255.255.

192 inte***ce vlan-inte***ce4

description link to xiaotun ip address 10.41.77.

169 255.255.255.

192 inte***ce vlan-inte***ce5

description link to baofeng ip address 10.41.77.

233 255.255.255.

192 inte***ce vlan-inte***ce6

description link to pingxi ip address 10.41.78.

41 255.255.255.

192 inte***ce vlan-inte***ce7

description link to pingnan ip address 10.41.78.

105 255.255.255.

192 inte***ce vlan-inte***ce8

description uplink to putian ip address 10.41.244.

102 255.255.255.

252 inte***ce vlan-inte***ce9

description link to pingxicentre ip address 10.41.80.233 255.255.255.192

//第三步:給vlan 指定埠

inte***ce ether***1/0/2

description link to wenquan port access vlan 2

inte***ce ether***1/0/3

description link to ruzhou port access vlan 3

inte***ce ether***1/0/4

description link to xiaotun port access vlan 4

inte***ce ether***1/0/5

description link to baofeng port access vlan 5

inte***ce ether***1/0/6

description link to pingxi port access vlan 6 inte***ce ether***1/0/7

description link to pingnan port access vlan 7

inte***ce ether***1/0/8

description uplink to putian port access vlan 8

inte***ce ether***1/0/9 to ether***1/0/24

description link to pingxicentre port access vlan 9

//第四步:配置路由協議 //

(1)用rip配動態路由 rip

***work 10.41.77.41

***work 10.41.77.105

***work 10.41.77.169

***work 10.41.77.233

***work 10.41.78.41

***work 10.41.78.105

***work 10.41.80.233

***work 10.41.244.102

2樓:大聖

華為的三層交換機預設是開啟路由功能的,需要做的是把vlan和地址規劃了

劃分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 劃閘道器 inte***ce vlan-inte***ce2

description link to wenquan ip address 10.41.77.

41 255.255.255.

192 inte***ce vlan-inte***ce3

description link to ruzhou ip address 10.41.77.

105 255.255.255.

192 inte***ce vlan-inte***ce4

description link to xiaotun ip address 10.41.77.

169 255.255.255.

192 inte***ce vlan-inte***ce5

description link to baofeng ip address 10.41.77.

233 255.255.255.

192 inte***ce vlan-inte***ce6

description link to pingxi ip address 10.41.78.

41 255.255.255.

192 inte***ce vlan-inte***ce7

description link to pingnan ip address 10.41.78.

105 255.255.255.

192 inte***ce vlan-inte***ce8

description uplink to putian ip address 10.41.244.

102 255.255.255.

252 inte***ce vlan-inte***ce9

description link to pingxicentre ip address 10.41.80.233 255.255.255.192

給vlan 指定埠

inte***ce ether***1/0/2

description link to wenquan port access vlan 2

inte***ce ether***1/0/3

description link to ruzhou port access vlan 3

inte***ce ether***1/0/4

description link to xiaotun port access vlan 4

inte***ce ether***1/0/5

description link to baofeng port access vlan 5

inte***ce ether***1/0/6

description link to pingxi port access vlan 6 inte***ce ether***1/0/7

description link to pingnan port access vlan 7

inte***ce ether***1/0/8

description uplink to putian port access vlan 8

inte***ce ether***1/0/9 to ether***1/0/24

description link to pingxicentre port access vlan 9

配置路由協議 //

(1)用rip配動態路由 rip

***work 10.41.77.41

***work 10.41.77.105

***work 10.41.77.169

***work 10.41.77.233

***work 10.41.78.41

***work 10.41.78.105

***work 10.41.80.233

***work 10.41.244.102

華為三層交換機與兩層交換機相連,三層交換機的埠access

我記得應該在三層交換機和二層交換交換機之間的埠設定成trunk,二層交換機上和電腦對接埠就用acces模式,還有些要設定,具體不是一時能說清楚,可以先學學網路基礎 相關裝置配置的資料 二層交換機做成trunk,三層交換機也是trunk。如果用access了,那出去的包都是不帶vlan的。華為三層交換...

三層交換機為什麼不開啟起三層功能功能時VLAN間也可以通訊

1,我想你之所以 copy半邊能通的原因是bai 有2個前提,所有的 duvlan在交換機上都設定了對應zhi的svi地址,相應daovlan裡的pc的預設閘道器設定的都是著惡搞svi地址 2,三層交換機可以理解為就是1個路由器,svi就相當於路由器的一個介面,這種介面在路由表裡體現的是直連路由,直...

怎麼區分二層交換機和三層交換機,三層交換機和二層交換機怎樣理解?

二層交換機工作於osi模型的第2層 資料鏈路層 故而稱為二層交換機。二層交換技術是發展比較成熟,二層交換機屬資料鏈路層裝置,可以識別資料包中的mac地址資訊,根據mac地址進行 並將這些mac地址與對應的埠記錄在自己內部的一個地址表中。三層交換機就是具有部分路由器功能的交換機,三層交換機的最重要目的...