[執行個體]H&M SH office 2 IP位址區段擴容

來源:互聯網
上載者:User

標籤:target   blank   border   

[執行個體]H&M SH office 2 IP位址區段擴容

環境:

650) this.width=650;" title="clip_image002" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px;" border="0" alt="clip_image002" src="http://s3.51cto.com/wyfs02/M02/74/6A/wKiom1YcnwGDKCmaAADvNq4Dpt4104.jpg" height="301" />

SH office 2以前使用10.200.4.0網段,現需求擴大IP 位址段.

方法1:更改mask,但這個會影響到目前所有裝置的更改及地址規劃等問題

方法2: 添加一個新的IP位址區段給sh office 2使用

現在我們就來實現方法2

1-構建MPLS網路

SH office 2與 SH office1 通過 MPLS 串連,R6有環回口6.6.6.6

R1-R4跑的是靜態路由 <類比現狀>

R6-R5 跑得是OSPF

1-1察看VRF資訊

R4#sh ip vrf detail

VRF mpls14 (VRF Id = 1); default RD 1:1; default VPNID <not set>

Interfaces:

Fa0/1

VRF Table ID = 1

Export VPN route-target communities

RT:16:16

Import VPN route-target communities

RT:16:16

No import route-map

No export route-map

VRF label distribution protocol: not configured

VRF label allocation mode: per-prefix

R4#sh ip vrf interfaces

Interface IP-Address VRF Protocol

Fa0/1 14.1.1.4 mpls14 up

1-2察看VRF路由

R4#sh ip route vrf mpls14

Gateway of last resort is 14.1.1.1 to network 0.0.0.0


S* 0.0.0.0/0 [1/0] via 14.1.1.1, FastEthernet0/1

6.0.0.0/32 is subnetted, 1 subnets

B 6.6.6.6 [200/2] via 5.5.5.5, 00:11:54

14.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 14.1.1.0/24 is directly connected, FastEthernet0/1

L 14.1.1.4/32 is directly connected, FastEthernet0/1

56.0.0.0/24 is subnetted, 1 subnets

B 56.1.1.0 [200/0] via 5.5.5.5, 00:11:54


R5#sh ip route vrf mpls56

Gateway of last resort is 4.4.4.4 to network 0.0.0.0


B* 0.0.0.0/0 [200/0] via 4.4.4.4, 00:12:32

6.0.0.0/32 is subnetted, 1 subnets

O 6.6.6.6 [110/2] via 56.1.1.6, 00:12:48, FastEthernet0/0

56.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 56.1.1.0/24 is directly connected, FastEthernet0/0

L 56.1.1.5/32 is directly connected, FastEthernet0/0


R4#sh ip protocols vrf mpls14

*** IP Routing is NSF aware ***


Routing Protocol is "bgp 1"

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

IGP synchronization is disabled

Automatic route summarization is disabled

Redistributing: static

Maximum path: 1

Routing Information Sources:

Gateway Distance Last Update

Distance: external 20 internal 200 local 200


R5#sh ip protocols vrf mpls56

*** IP Routing is NSF aware ***


Routing Protocol is "ospf 56"

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

Router ID 56.1.1.5

It is an area border and autonomous system boundary router

Redistributing External Routes from,

bgp 1, includes subnets in redistribution

Number of areas in this router is 1. 1 normal 0 stub 0 nssa

Maximum path: 4

Routing for Networks:

56.1.1.0 0.0.0.255 area 0

Routing Information Sources:

Gateway Distance Last Update

6.6.6.6 110 00:14:15

Distance: (default is 110)


Routing Protocol is "bgp 1"

Outgoing update filter list for all interfaces is not set

Incoming update filter list for all interfaces is not set

IGP synchronization is disabled

Automatic route summarization is disabled

Redistributing: ospf 56

Maximum path: 1

Routing Information Sources:

Gateway Distance Last Update

Distance: external 20 internal 200 local 200


1-3察看LFIB

R5#sh mpls forwarding-table

Local Outgoing Prefix Bytes Label Outgoing Next Hop

Label Label or Tunnel Id Switched interface

500 Pop Label 4.4.4.4/32 0 Se1/1 point2point

501 No Label 6.6.6.6/32[V] 570 Fa0/0 56.1.1.6

502 No Label 56.1.1.0/24[V] 0 aggregate/mpls56


R4#sh mpls forwarding-table

Local Outgoing Prefix Bytes Label Outgoing Next Hop

Label Label or Tunnel Id Switched interface

400 Pop Label 5.5.5.5/32 0 Se1/1 point2point

401 No Label 0.0.0.0/0[V] 570 Fa0/1 14.1.1.1


1-4察看MP-BGP

R5#sh ip bgp vpnv4 all labels \\察看VPNV4關聯的標籤

Network Next Hop In label/Out label

Route Distinguisher: 1:1 (mpls56)

0.0.0.0 4.4.4.4 nolabel/401

6.6.6.6/32 56.1.1.6 501/nolabel

56.1.1.0/24 0.0.0.0 502/nolabel(mpls56)


R4#sh ip bgp vpnv4 rd 1:1 //查看MP-BGP RD為1:1的路由資訊

BGP table version is 6, local router ID is 4.4.4.4

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf mpls14)

*> 0.0.0.0 14.1.1.1 0 32768 ?

*>i6.6.6.6/32 5.5.5.5 2 100 0 ?

*>i56.1.1.0/24 5.5.5.5 0 100 0 ?


R5#sh ip bgp vpnv4 rd 1:1 //查看MP-BGP RD為1:1的路由資訊

BGP table version is 5, local router ID is 5.5.5.5

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

r RIB-failure, S Stale

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path

Route Distinguisher: 1:1 (default for vrf mpls56)

*>i0.0.0.0 4.4.4.4 0 100 0 ?

*> 6.6.6.6/32 56.1.1.6 2 32768 ?

*> 56.1.1.0/24 0.0.0.0 0 32768 ?


R4#sh ip bgp vpnv4 all 6.6.6.6

BGP routing table entry for 1:1:6.6.6.6/32, version 5

Paths: (1 available, best #1, table mpls14)

Not advertised to any peer

Local

5.5.5.5 (metric 2297856) from 5.5.5.5 (5.5.5.5)

Origin incomplete, metric 2, localpref 100, valid, internal, best

Extended Community: RT:16:16 OSPF DOMAIN ID:0x0005:0x000000380200

OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:56.1.1.5:0 //MP-BGP所攜帶的擴充社團屬性

mpls labels in/out nolabel/501


2-構建單臂路由

主要是在R1的F0/0 介面下配置

interface FastEthernet0/0

no ip address

duplex auto

speed auto

!

!

interface FastEthernet0/0.1

encapsulation dot1Q 1 native

ip address 10.200.4.254 255.255.255.0

!

interface FastEthernet0/0.2

encapsulation dot1Q 2

ip address 10.200.43.254 255.255.255.0

!

interface FastEthernet0/1

ip address 14.1.1.1 255.255.255.0

duplex auto

speed auto

SW1---R1 之間為trunk鏈路 SW3-SW2之間為trunk鏈路

測試結果就是:

PC9-PC8-PC7 可以相互ping通,且都可以ping通6.6.6.6


實驗拓撲圖可以在我的網盤下載到

本文出自 “Erick WAY” 部落格,謝絕轉載!

[執行個體]H&M SH office 2 IP位址區段擴容

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.