




版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、S5600系列交換機(jī)典型配置舉例2.1.1 靜態(tài)路由典型配置1. 組網(wǎng)需求(1) 需求分析某小型公司辦公網(wǎng)絡(luò)需要任意兩個(gè)節(jié)點(diǎn)之間能夠互通,網(wǎng)絡(luò)結(jié)構(gòu)簡(jiǎn)單、穩(wěn)定,用戶(hù)希望最大限度利用現(xiàn)有設(shè)備。用戶(hù)現(xiàn)在擁有的設(shè)備不支持動(dòng)態(tài)路由協(xié)議。根據(jù)用戶(hù)需求及用戶(hù)網(wǎng)絡(luò)環(huán)境,選擇靜態(tài)路由實(shí)現(xiàn)用戶(hù)網(wǎng)絡(luò)之間互通。(2) 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-1所示網(wǎng)絡(luò)拓?fù)鋱D。圖2-1 靜態(tài)路由配置舉例組網(wǎng)圖2. 配置步驟交換機(jī)上的配置步驟:# 設(shè)
2、置以太網(wǎng)交換機(jī)Switch A的靜態(tài)路由。<SwitchA> system-viewSwitchA ip route-static 1.1.3.0 255.255.255.0 1.1.2.2SwitchA ip route-static 1.1.4.0 255.255.255.0 1.1.2.2SwitchA ip route-static 1.1.5.0 255.255.255.0 1.1.2.2# 設(shè)置以太網(wǎng)交換機(jī)Switch B的靜態(tài)路由。<SwitchB> system-viewSwitchB ip route-static 1.1.2.0 255.255.25
3、5.0 1.1.3.1SwitchB ip route-static 1.1.5.0 255.255.255.0 1.1.3.1SwitchB ip route-static 1.1.1.0 255.255.255.0 1.1.3.1# 設(shè)置以太網(wǎng)交換機(jī)Switch C的靜態(tài)路由。<SwitchC> system-viewSwitchC ip route-static 1.1.1.0 255.255.255.0 1.1.2.1SwitchC ip route-static 1.1.4.0 255.255.255.0 1.1.3.2主機(jī)上的配置步驟:# 在主機(jī)A上配缺省網(wǎng)關(guān)為1.1.
4、5.1,具體配置略。# 在主機(jī)B上配缺省網(wǎng)關(guān)為1.1.4.1,具體配置略。# 在主機(jī)C上配缺省網(wǎng)關(guān)為1.1.1.1,具體配置略。至此圖中所有主機(jī)或以太網(wǎng)交換機(jī)之間均能兩兩互通。2.1.2 RIP典型配置1. 組網(wǎng)需求(1) 需求分析某小型公司辦公網(wǎng)絡(luò)需要任意兩個(gè)節(jié)點(diǎn)之間能夠互通,網(wǎng)絡(luò)規(guī)模比較小。需要設(shè)備自動(dòng)適應(yīng)網(wǎng)絡(luò)拓?fù)渥兓档腿斯ぞS護(hù)工作量。根據(jù)用戶(hù)需求及用戶(hù)網(wǎng)絡(luò)環(huán)境,選擇RIP路由協(xié)議實(shí)現(xiàn)用戶(hù)網(wǎng)絡(luò)之間互通。(2)
5、 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-2所示網(wǎng)絡(luò)拓?fù)鋱D。設(shè)備接口IP地址設(shè)備接口IP地址Switch AVlan-int1110.11.2.1/24Switch BVlan-int1110.11.2.2/24 Vlan-int2155.10.1.1/24 Vlan-int3196.38.165.1/24Switch CVlan-int1110.11.2.3/24 Vlan-int4117.102.0.1/16 圖2-2 RIP典型配置組網(wǎng)圖2. 配置步驟& 說(shuō)明:以下的配置,只
6、列出了與RIP相關(guān)的操作。在進(jìn)行下列配置之前,請(qǐng)先確保以太網(wǎng)鏈路層能夠正常工作,且各VLAN接口IP地址已經(jīng)配置完成。 (1) 配置Switch A# 配置RIP。<SwitchA> system-viewSwitchA ripSwitchA-rip network 110.11.2.0SwitchA-rip network 155.10.1.0(2) 配置Switch B# 配置RIP。<Switc
7、hB> system-viewSwitchB ripSwitchB-rip network 196.38.165.0SwitchB-rip network 110.11.2.0 (3) 配置Switch C# 配置RIP。<SwitchC> system-viewSwitchC rip SwitchC-rip network 117.102.0.0SwitchC-rip network 110.11.2.02.1.3 OSPF的DR典型配置1. 組網(wǎng)需求(1)
8、; 需求分析某用戶(hù)網(wǎng)絡(luò)鏈路類(lèi)型為廣播型網(wǎng)絡(luò),通過(guò)OSPF實(shí)現(xiàn)網(wǎng)絡(luò)之間互通。由于網(wǎng)絡(luò)中設(shè)備性能有差異,希望DR/BDR由性能較高的設(shè)備承擔(dān),優(yōu)化網(wǎng)絡(luò)處理速度。對(duì)于網(wǎng)絡(luò)中性能較低的設(shè)備,禁止其參加DR/BDR選舉。根據(jù)用戶(hù)需求及其網(wǎng)絡(luò)環(huán)境,通過(guò)修改接口優(yōu)先級(jí)實(shí)現(xiàn)用戶(hù)需求。(2) 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-3所示網(wǎng)絡(luò)拓?fù)鋱D。設(shè)備接口IP地址Router ID接口優(yōu)先級(jí)Switch AVlan-int1196.1.1.1/241.1.1.1100Swi
9、tch BVlan-int1196.1.1.2/242.2.2.20Switch CVlan-int1196.1.1.3/243.3.3.32Switch DVlan-int1196.1.1.4/244.4.4.41圖2-3 配置OSPF的DR選擇組網(wǎng)圖2. 配置步驟# 配置Switch A<SwitchA> system-viewSwitchA interface Vlan-interface 1SwitchA-Vlan-interface1 ip address 196.1.1.1 255.255.255.0SwitchA-Vlan-interface1 ospf dr-pri
10、ority 100SwitchA-Vlan-interface1 quitSwitchA router id 1.1.1.1SwitchA ospfSwitchA-ospf-1 area 0SwitchA-ospf-1-area-0.0.0.0 network 196.1.1.0 0.0.0.255# 配置Switch B<SwitchB> system-viewSwitchB interface Vlan-interface 1SwitchB-Vlan-interface1 ip address 196.1.1.2 255.255.255.0SwitchB-Vlan-interf
11、ace1 ospf dr-priority 0SwitchB-Vlan-interface1 quitSwitchB router id 2.2.2.2SwitchB ospfSwitchB-ospf-1 area 0SwitchB-ospf-1-area-0.0.0.0 network 196.1.1.0 0.0.0.255# 配置Switch C<SwitchC> system-viewSwitchC interface Vlan-interface 1SwitchC-Vlan-interface1 ip address 196.1.1.3 255.255.255.0Switc
12、hC-Vlan-interface1 ospf dr-priority 2SwitchC-Vlan-interface1 quitSwitchC router id 3.3.3.3SwitchC ospfSwitchC-ospf-1 area 0SwitchC-ospf-1-area-0.0.0.0 network 196.1.1.0 0.0.0.255# 配置Switch D<SwitchD> system-viewSwitchD interface Vlan-interface 1SwitchD-Vlan-interface1 ip address 196.1.1.4 255.
13、255.255.0SwitchD-Vlan-interface1 quitSwitchD router id 4.4.4.4SwitchD ospfSwitchD-ospf-1 area 0SwitchD-ospf-1-area-0.0.0.0 network 196.1.1.0 0.0.0.255在Switch A上運(yùn)行display ospf peer來(lái)顯示OSPF鄰居,注意Switch A有三個(gè)鄰居。每個(gè)鄰居的狀態(tài)都是full,這意味著Switch A與它的每個(gè)鄰居都形成了鄰接(Switch A和Switch C必須與網(wǎng)絡(luò)中的所有交換機(jī)形成鄰接,才能分別充當(dāng)網(wǎng)絡(luò)的DR和BDR)。Swit
14、ch A是網(wǎng)絡(luò)中的DR,而Switch C是BDR。其它所有的鄰居都是DRother(這意味著它們既不是DR,也不是BDR)。# 將Switch B的優(yōu)先級(jí)改為200<SwitchB> system-viewSwitchB interface Vlan-interface 1SwitchB-Vlan-interface1 ospf dr-priority 200在Switch A上運(yùn)行display ospf peer來(lái)顯示OSPF鄰居,注意Switch B的優(yōu)先級(jí)變?yōu)?00;但它并不是DR。只有當(dāng)現(xiàn)在的DR不在網(wǎng)絡(luò)上了后,DR才會(huì)改變。關(guān)掉Switch A,在Switch D上運(yùn)
15、行display ospf peer命令可顯示鄰居,注意本來(lái)是BDR的Switch C成為了DR,并且Switch B現(xiàn)在成為了BDR。若網(wǎng)絡(luò)中所有的交換機(jī)被移走后又重新加入,Switch B就被選為DR(優(yōu)先級(jí)為200),Switch A成為了BDR(優(yōu)先級(jí)為100)。關(guān)掉所有的交換機(jī)再重新啟動(dòng),這個(gè)操作會(huì)帶來(lái)一個(gè)新的DR/BDR選擇。2.1.4 OSPF虛連接配置1. 組網(wǎng)需求(1) 需求分析用戶(hù)網(wǎng)絡(luò)運(yùn)行OSPF實(shí)現(xiàn)網(wǎng)絡(luò)互通。網(wǎng)絡(luò)分為三個(gè)區(qū)域,一個(gè)骨干區(qū)域,兩個(gè)普通區(qū)域(Area 1、Area
16、2)。其中某普通區(qū)域(Area 2)無(wú)法與骨干區(qū)域直接相連,只能通過(guò)另外一個(gè)普通區(qū)域(Area 1)接入。用戶(hù)希望無(wú)法與骨干區(qū)域直接連接的普通區(qū)域(Area 2)能夠與另外兩個(gè)區(qū)域互通。根據(jù)用戶(hù)需求及用戶(hù)網(wǎng)絡(luò)環(huán)境,選擇虛連接來(lái)實(shí)現(xiàn)普通區(qū)域(Area 2)與骨干區(qū)域之間的連接。(2) 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-4所示網(wǎng)絡(luò)拓?fù)鋱D。設(shè)備接口IP地址Router IDSwitch AVlan-int1196.1.1.2/241.1.1.1 Vlan-int2197.1.1.2/24-Switch BV
17、lan-int1152.1.1.1/242.2.2.2 Vlan-int2197.1.1.1/24-圖2-4 配置OSPF虛鏈路組網(wǎng)圖2. 配置步驟(1) 配置OSPF基本功能# 配置Switch A。<SwitchA> system-viewSwitchA interface vlan-interface 1SwitchA-Vlan-interface1 ip address 196.1.1.2 255.255.255.0SwitchA-Vlan-interface1 quitSwitc
18、hA interface vlan-interface 2SwitchA-Vlan-interface2 ip address 197.1.1.2 255.255.255.0SwitchA-Vlan-interface2 quitSwitchA router id 1.1.1.1SwitchA ospfSwitchA-ospf-1 area 0SwitchA-ospf-1-area-0.0.0.0 network 196.1.1.0 0.0.0.255SwitchA-ospf-1-area-0.0.0.0 quitSwitchA-ospf-1 area 1SwitchA-ospf-1-area
19、-0.0.0.1 network 197.1.1.0 0.0.0.255SwitchA-ospf-1-area-0.0.0.1 quitSwitchA-ospf-1 quit# 配置Switch B。<SwitchB> system-viewSwitchB interface Vlan-interface 1SwitchB-Vlan-interface1 ip address 152.1.1.1 255.255.255.0SwitchB-Vlan-interface1 quitSwitchB interface Vlan-interface 2SwitchB-Vlan-interf
20、ace2 ip address 197.1.1.1 255.255.255.0SwitchB-Vlan-interface2 quitSwitchB router id 2.2.2.2SwitchB ospfSwitchB-ospf-1 area 1SwitchB-ospf-1-area-0.0.0.1 network 197.1.1.0 0.0.0.255SwitchB-ospf-1-area-0.0.0.1 quitSwitchB-ospf-1 area 2SwitchB-ospf-1-area-0.0.0.2 network 152.1.1.0 0.0.0.255SwitchB-ospf
21、-1-area-0.0.0.2 quit# 顯示Switch A的OSPF路由表。SwitchA display ospf routing OSPF Process 1 with Router ID 1.1.1.1 &
22、#160; Routing Tables Routing for NetworkDestination Cost Type NextHop AdvRouter
23、 Area196.1.1.0/24 10 Stub 196.1.1.2 1.1.1.1 0.0.0.0197.1.1.0/24
24、60; 10 Net 197.1.1.1 2.2.2.2 0.0.0.1 Total Nets: 2 Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0& 說(shuō)明:由于Area2沒(méi)有與Area0直接相連,所以Switch A的路由表中沒(méi)有
25、Area2中的路由。 (2) 配置虛連接。# 配置Switch A。SwitchA ospfSwitchA-ospf-1 area 1SwitchA-ospf-1-area-0.0.0.1 vlink-peer 2.2.2.2SwitchA-ospf-1-area-0.0.0.1 quitSwitchA-ospf-1 quit# 配置Switch B。SwitchB-ospf-1 area 1SwitchB-ospf-1-area-0.0.0.1 vlink-peer 1.1.1.1SwitchB-o
26、spf-1-area-0.0.0.1 quit# 顯示Switch A的OSPF路由表。SwitchAdisplay ospf routing OSPF Process 1 with Router ID 1.1.1.1
27、; Routing Tables Routing for NetworkDestination Cost Type NextHop AdvRouter
28、0; Area196.1.1.0/24 10 Stub 196.1.1.2 1.1.1.1 0.0.0.0197.1.1.0/24 &
29、#160; 10 Net 197.1.1.1 2.2.2.2 0.0.0.1152.1.1.0/24 20 SNet 197.1.1.1
30、60; 2.2.2.2 0.0.0.0 Total Nets: 3 Intra Area: 2 Inter Area: 1 ASE: 0 NSSA: 0可以看到,Switch A已經(jīng)學(xué)到了Area2的路由152.1.1.0/24。2.1.5 配置BGP聯(lián)盟屬性1. 組網(wǎng)需求(1) 需求分析某用戶(hù)擁有一個(gè)大型AS,AS中運(yùn)行BG
31、P協(xié)議。隨著AS規(guī)模的增長(zhǎng),IBGP對(duì)等體數(shù)量激增,用于BGP通信的網(wǎng)絡(luò)資源亦隨之增加。用戶(hù)希望不影響設(shè)備工作性能條件下,削減IBGP對(duì)等體數(shù)量,降低BGP對(duì)設(shè)備CPU和網(wǎng)絡(luò)資源的消耗。根據(jù)用戶(hù)需求,選擇應(yīng)用BGP自治系統(tǒng)聯(lián)盟屬性實(shí)現(xiàn)用戶(hù)需求。(2) 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-5所示網(wǎng)絡(luò)拓?fù)鋱D。設(shè)備接口IP地址ASSwitch AVlan-int 10172.68.10.1/24100 Vlan-int 5010.1.1.1/24Switch BVlan-int 10172.68.10.2/2
32、4Switch CVlan-int 10172.68.10.3/24 Vlan-int 20172.68.1.1/24 Vlan-int 30156.10.1.1/24Switch DVlan-int 20172.68.1.2/24Switch EVlan-int 30156.10.1.2/24200 Vlan-int 408.1.1.1/24 圖2-5 配置自治系統(tǒng)聯(lián)盟的組網(wǎng)圖(3) 配置策略l
33、160; 將AS 100劃分為三個(gè)子自治系統(tǒng),分別為AS 1001,AS 1002,AS 1003;l AS 1001,AS 1002,AS 1003之間運(yùn)行EBGP;l AS 1001,AS 1002,AS 100
34、3內(nèi)部建立全連接,運(yùn)行IBGP;l AS 100,AS 200之間運(yùn)行EBGP。2. 配置步驟# 配置Switch A。<SwitchA> system-view SwitchA bgp 1001SwitchA-bgp network 10.1.1.0 255.255.255.0SwitchA-bgp confederation id 100SwitchA-bgp confederation peer-as 1002 1003S
35、witchA-bgp group confed1002 externalSwitchA-bgp peer 172.68.10.2 group confed1002 as-number 1002SwitchA-bgp group confed1003 externalSwitchA-bgp peer 172.68.10.3 group confed1003 as-number 1003SwitchA-bgp quit# 配置Switch B。<SwitchB> system-view SwitchB bgp 1002SwitchB-bgp confederation id 100Sw
36、itchB-bgp confederation peer-as 1001 1003SwitchB-bgp group confed1001 externalSwitchB-bgp peer 172.68.10.1 group confed1001 as-number 1001SwitchB-bgp group confed1003 externalSwitchB-bgp peer 172.68.10.3 group confed1003 as-number 1003# 配置Switch C。<SwitchC> system-view SwitchC bgp 1003SwitchC-
37、bgp confederation id 100SwitchC-bgp confederation peer-as 1001 1002SwitchC-bgp group confed1001 externalSwitchC-bgp peer 172.68.10.1 group confed1001 as-number 1001SwitchC-bgp group confed1002 externalSwitchC-bgp peer 172.68.10.2 group confed1002 as-number 1002SwitchC-bgp group ebgp200 externalSwitc
38、hC-bgp peer 156.10.1.2 group ebgp200 as-number 200SwitchC-bgp group ibgp1003 internalSwitchC-bgp peer 172.68.1.2 group ibgp1003# 配置Switch D。<SwitchD> system-view SwitchD bgp 1003SwitchD-bgp confederation id 100SwitchD-bgp group ibgp1003 internalSwitchD-bgp peer 172.68.1.1 group ibgp1003# 配置Swi
39、tch E。<SwitchE> system-view SwitchE bgp 200SwitchE-bgp network 8.1.1.0 255.255.255.0SwitchE-bgp group ebgp100 externalSwitchE-bgp peer 156.10.1.1 group ebgp100 as-number 100SwitchE-bgp quit# 顯示Switch E的BGP路由表。SwitchE display bgp routing Flags: # - valid
40、 - active I - internal D - damped H - history S - aggregate suppressed Dest/Mask Next-Hop&
41、#160; Med Local-pref Origin Path-# 8.1.1.0/24 0.0.0.0 0 100 &
42、#160; IGP# 10.1.1.0/24 156.10.1.1 0 100 IGP 100 Routes total
43、: 2# 顯示Switch A的BGP路由表。SwitchA display bgp routing Flags: # - valid - active I - internal D - damped H - history S - aggregate
44、suppressed Dest/Mask Next-Hop Med Local-pref Origin Path- I 8.1.1.0/24 156.10.1.2 0 &
45、#160; 100 IGP (1003) 200# 10.1.1.0/24 0.0.0.0 0 100 IGP
46、; Routes total: 2根據(jù)顯示信息可以看出,子自治系統(tǒng)信息僅在聯(lián)盟內(nèi)部通告。處于聯(lián)盟外部的自治系統(tǒng)的設(shè)備(例如Switch E)將聯(lián)盟作為一個(gè)自治系統(tǒng),不能學(xué)習(xí)聯(lián)盟內(nèi)部的子自治系統(tǒng)信息。2.1.6 配置BGP路由反射器1. 組網(wǎng)需求(1) 需求分析某用戶(hù)擁有一個(gè)大型AS,AS中運(yùn)行BGP協(xié)議。隨著AS規(guī)模的增長(zhǎng),IBGP對(duì)等體數(shù)量激增,用于BGP通信的網(wǎng)絡(luò)資源亦隨之增加。用戶(hù)希望不影響設(shè)備工作性能條件下,削減IBGP對(duì)等體數(shù)量,降低BGP對(duì)設(shè)備CPU和網(wǎng)絡(luò)資源的消耗。另外,該AS中,IB
47、GP對(duì)等體之間連接采用部分互聯(lián)。根據(jù)用戶(hù)需求和用戶(hù)網(wǎng)絡(luò)環(huán)境,選擇BGP路由反射器方案滿足用戶(hù)需求。(2) 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-6所示網(wǎng)絡(luò)拓?fù)鋱D。設(shè)備接口IP地址ASSwitch AVlan-int 1001.1.1.1/8100 Vlan-int 2192.1.1.1/24Switch BVlan-int 2192.1.1.2/24200 Vlan-int 3193.1.1.2/24Switch CVlan-int 3193.1.1.1/24 Vlan-int 419
48、4.1.1.1/24Switch DVlan-int 4194.1.1.2/24 圖2-6 配置BGP路由反射器的組網(wǎng)圖(3) 配置策略l AS 100與AS 200對(duì)等體之間運(yùn)行EBGP,通告1.0.0.0/8網(wǎng)段;l
49、; AS 200中對(duì)等體之間運(yùn)行IBGP,AS網(wǎng)絡(luò)拓?fù)洳捎眯切屯負(fù)浣Y(jié)構(gòu);中央設(shè)備作為路由反射器,其他設(shè)備作為客戶(hù)機(jī)。2. 配置步驟(1) 配置Switch A<SwitchA> system-view SwitchA interface Vlan-interface 2SwitchA-Vlan-interface2 ip address 192.1.1.1 255.255.255.0SwitchA-Vlan-interface2 interface Vlan-interfac
50、e 100 SwitchA-Vlan-interface100 ip address 1.1.1.1 255.0.0.0SwitchA-Vlan-interface100 quitSwitchA bgp 100SwitchA-bgp group ex externalSwitchA-bgp peer 192.1.1.2 group ex as-number 200SwitchA-bgp network 1.0.0.0 255.0.0.0(2) 配置Switch B# 配置VLAN接口的IP地址。<Swit
51、chB> system-view SwitchB interface Vlan-interface 2SwitchB-Vlan-interface2 ip address 192.1.1.2 255.255.255.0SwitchB-Vlan-interface2 quitSwitchB interface Vlan-interface 3SwitchB-Vlan-interface3 ip address 193.1.1.2 255.255.255.0SwitchB-Vlan-interface3 quit# 配置BGP對(duì)等體。SwitchB bgp 200SwitchB-bgp gr
52、oup ex externalSwitchB-bgp peer 192.1.1.1 group ex as-number 100SwitchB-bgp group in internalSwitchB-bgp peer 193.1.1.1 group in(3) 配置Switch C# 配置VLAN接口的IP地址。<SwitchC> system-view SwitchC interface Vlan-interface 3SwitchC-Vlan-interface3 ip address 193
53、.1.1.1 255.255.255.0SwitchC-Vlan-interface3 quitSwitchC interface vlan-Interface 4SwitchC-Vlan-interface4 ip address 194.1.1.1 255.255.255.0SwitchC-Vlan-interface4 quit# 配置BGP對(duì)等體及路由反射器。SwitchC bgp 200SwitchC-bgp group rr internalSwitchC-bgp peer rr reflect-clientSwitchC-bgp peer 193.1.1.2 group rrSw
54、itchC-bgp peer 194.1.1.2 group rr(4) 配置Switch D# 配置VLAN接口的IP地址。<SwitchD> system-view SwitchD interface Vlan-interface 4SwitchD-Vlan-interface4 ip address 194.1.1.2 255.255.255.0SwitchD-Vlan-interface4 quit# 配置BGP對(duì)等體。SwitchD bgp 200SwitchD-bgp group in
55、internalSwitchD-bgp peer 194.1.1.1 group in在Switch B上用display bgp routing命令查看BGP路由表。注意:Switch B已知道了網(wǎng)絡(luò)1.0.0.0的存在。在Switch D上用display bgp routing命令查看BGP路由表。注意:Switch D也知道網(wǎng)絡(luò)1.0.0.0的存在。2.1.7 配置BGP路徑選擇1. 組網(wǎng)需求(1) 需求分析某用戶(hù)網(wǎng)絡(luò)由兩個(gè)AS組成,兩個(gè)AS通過(guò)BGP實(shí)現(xiàn)網(wǎng)絡(luò)互通,其中一個(gè)AS運(yùn)行OSPF。
56、用戶(hù)需求:控制從AS 200到AS 100的數(shù)據(jù)轉(zhuǎn)發(fā)路徑。根據(jù)用戶(hù)需求,可在如下方案中任選其一:l 選擇BGP的MED屬性控制數(shù)據(jù)從AS 200到AS 100時(shí)的轉(zhuǎn)發(fā)路徑;l 選擇BGP的LOCAL_PREF屬性控制數(shù)據(jù)從AS 200到AS 100時(shí)的轉(zhuǎn)發(fā)路徑。(2)
57、0; 網(wǎng)絡(luò)規(guī)劃根據(jù)用戶(hù)需求,設(shè)計(jì)如圖2-7所示網(wǎng)絡(luò)拓?fù)鋱D。設(shè)備接口IP地址ASSwitch AVlan-int 1011.1.1.1/8100 Vlan-int 2192.1.1.1/24 Vlan-int 3193.1.1.1/24Switch BVlan-int 2192.1.1.2/24200 Vlan-int 4194.1.1.2/24Switch CVlan-int 3193.1.1.2/24 Vlan-int 5195.1.1.2/24Switch DVlan-int 4194.1.
58、1.1/24 Vlan-int 5195.1.1.1/24 圖2-7 配置BGP路徑選擇的組網(wǎng)圖(3) 配置策略l AS 100與AS 200對(duì)等體之間運(yùn)行EBGP,通告1.0.0.0/8網(wǎng)段;l
59、 AS 200運(yùn)行OSPF實(shí)現(xiàn)網(wǎng)絡(luò)互通;l Switch D與Switch B,Switch D與 Switch C對(duì)等體之間運(yùn)行IBGP;l 在Switch A上應(yīng)用路由策略,修改發(fā)布的路由信息MED屬性,控制Switch D發(fā)出的數(shù)據(jù)進(jìn)入AS 100時(shí)轉(zhuǎn)發(fā)路徑為:Swit
60、ch DSwitch CSwitch A。l 在Switch C上應(yīng)用路由策略,修改發(fā)布路由信息的LOCAL_PREF屬性,控制Switch D發(fā)出的數(shù)據(jù)進(jìn)入AS 100時(shí)轉(zhuǎn)發(fā)路徑為:Switch DSwitch CSwitch A。2. 配置步驟(1) 配置Switch A# 配置VLAN接口的IP地址<SwitchA> system-view
61、 SwitchA interface Vlan-interface 2SwitchA-Vlan-interface2 ip address 192.1.1.1 255.255.255.0SwitchA-Vlan-interface2 quitSwitchA interface Vlan-interface 3SwitchA-Vlan-interface3 ip address 193.1.1.1 255.255.255.0SwitchA-Vlan-interface3 quitSwitchA interface Vlan-interface 101SwitchA-Vlan-interface1
62、01 ip address 1.1.1.1 255.0.0.0SwitchA-Vlan-interface101 quit# 啟動(dòng)BGP。SwitchA bgp 100# 通告1.0.0.0/8網(wǎng)段路由信息。SwitchA-bgp network 1.0.0.0# 配置對(duì)等體。SwitchA-bgp group ex192 externalSwitchA-bgp peer 192.1.1.2 group ex192 as-number 200SwitchA-bgp group ex193 externalSwitchA-bgp peer 193.1.1.2 group ex193 as-num
63、ber 200SwitchA-bgp quit# 創(chuàng)建ACL 2000,允許目的地址為1.0.0.0/8的路由信息通過(guò)。SwitchA acl number 2000SwitchA-acl-basic-2000 rule permit source 1.0.0.0 0.255.255.255SwitchA-acl-basic-2000 rule deny source anySwitchA-acl-basic-2000 quit# 創(chuàng)建路由策略apply_med_50,匹配模式為允許,如果路由信息通過(guò)ACL 2000的過(guò)濾,則設(shè)置其MED值為50。SwitchA route-policy ap
64、ply_med_50 permit node 10SwitchA-route-policy if-match acl 2000SwitchA-route-policy apply cost 50SwitchA-route-policy quit# 創(chuàng)建路由策略apply_med_100,匹配模式為允許,如果路由信息通過(guò)ACL 2000的過(guò)濾,則設(shè)置其MED值為100。SwitchA route-policy apply_med_100 permit node 10SwitchA-route-policy if-match acl 2000SwitchA-route-policy apply c
65、ost 100SwitchA-route-policy quit# 對(duì)發(fā)布給對(duì)等體組ex193(對(duì)等體193.1.1.2)的路由信息應(yīng)用路由策略apply_med_50;對(duì)發(fā)布給對(duì)等體組ex192(對(duì)等體192.1.1.2)的路由信息應(yīng)用路由策略apply_med_100。SwitchA bgp 100SwitchA-bgp peer ex193 route-policy apply_med_50 exportSwitchA-bgp peer ex192 route-policy apply_med_100 export(2)
66、0; 配置Switch B# 配置VLAN接口IP地址。<SwitchB> system-view SwitchB interface vlan 2SwitchB-Vlan-interface2 ip address 192.1.1.2 255.255.255.0SwitchB-Vlan-interface2 quitSwitchB interface Vlan-interface 4SwitchB-Vlan-interface4 ip address 194.1.1.2 255.255.255.0SwitchB-Vlan-interface4 quit# 配置OSPF
67、。SwitchB ospfSwitchB-ospf-1 area 0SwitchB-ospf-1-area-0.0.0.0 network 194.1.1.0 0.0.0.255 SwitchB-ospf-1-area-0.0.0.0 network 192.1.1.0 0.0.0.255SwitchB-ospf-1-area-0.0.0.0 quitSwitchB-ospf-1 quit# 啟動(dòng)BGP,創(chuàng)建對(duì)等體組,并向?qū)Φ润w組添加對(duì)等體。SwitchB bgp 200SwitchB-bgp undo synchronizationSwitchB-bgp group ex externalS
68、witchB-bgp peer 192.1.1.1 group ex as-number 100SwitchB-bgp group in internalSwitchB-bgp peer 194.1.1.1 group inSwitchB-bgp peer 195.1.1.2 group in(3) 配置Switch C# 配置VLAN接口IP地址。<SwitchC> system-view SwitchC interface Vlan-interface 3SwitchC-Vlan-interfa
69、ce3 ip address 193.1.1.2 255.255.255.0SwitchC-Vlan-interface3 quitSwitchC interface Vlan-interface 5SwitchC-Vlan-interface5 ip address 195.1.1.2 255.255.255.0SwitchC-Vlan-interface5 quit# 啟動(dòng)OSPF。SwitchC ospfSwitchC-ospf-1 area 0SwitchC-ospf-1-area-0.0.0.0 network 193.1.1.0 0.0.0.255SwitchC-ospf-1-area-0.0.0.0 network 195.1.1.0 0.0.0.255 SwitchC-os
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 借貸擔(dān)保條件合同范本
- 買(mǎi)賣(mài)旅游車(chē)車(chē)合同范本
- 制作類(lèi)開(kāi)口合同范本
- 包工包料安裝鍋爐合同范本
- 養(yǎng)豬場(chǎng)租賃合同范本
- 鄉(xiāng)鎮(zhèn)土地開(kāi)發(fā)整改合同范本
- 佛山土地出租合同范本
- 付款協(xié)議合同范本
- 農(nóng)村養(yǎng)牛蛙銷(xiāo)售合同范本
- ktv裝修乙方合同范本
- 2024年湖南汽車(chē)工程職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫(kù)標(biāo)準(zhǔn)卷
- 完整word版,“呂氏八字命理學(xué)”高級(jí)理論
- 中外合作辦學(xué)的可行性報(bào)告
- 飛達(dá)及其輔助機(jī)構(gòu)
- 母嬰保健課程標(biāo)準(zhǔn)
- 深圳地鐵三號(hào)線正線信號(hào)系統(tǒng)
- 高中化學(xué)競(jìng)賽培訓(xùn)計(jì)劃
- 研發(fā)向善課程----綻放生命異彩
- 電廠機(jī)組深度調(diào)峰摸底試驗(yàn)方案
- 地球上的大氣知識(shí)結(jié)構(gòu)圖
- 加油站數(shù)質(zhì)量管理考核辦法版.doc
評(píng)論
0/150
提交評(píng)論