好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



MSR绯诲垪璺敱鍣

RPF妫娴嬪け璐ュ鑷寸粍鎾笉鍙揪鐨勭粡楠屾渚

 

涓銆佺粍缃

瀹為檯缁缃戝涓鍥撅紝涓夊彴MSR璺敱鍣ㄥ惎鐢OSPF锛屼繚璇佸叏缃戣繛閫氥Router ARouter鍒嗗埆杩炴帴缁勬挱婧愬拰缁勬挱鎺ユ敹PC锛屽笇鏈PC鑳藉姝e父鎺ユ敹缁勬挱鏁版嵁銆

浜屻侀棶棰樻弿杩帮細

濡備笂鍥剧粍缃戝悗锛屼繚璇佽矾鐢辩姸鎬佹甯革紝鍙戠幇骞舵病鏈夊嚭鐜版兂瑕佺殑缁撴灉锛氭帴鏀剁粍鎾殑PC骞朵笉鑳芥敹鍒扮粍鎾簮鐨勭粍鎾姤鏂囥

涓夈佽繃绋嬪垎鏋愶細

涓夊彴璺敱鍣ㄤ笂鐨勭畝鐣ラ厤缃拰鍗曟挱璺敱琛ㄥ涓嬶細

Router A 閰嶇疆

sysname H3C

#

interface Serial3/0

 link-protocol ppp

 ip address 10.0.0.1 255.0.0.0

 ospf cost 1

#

interface GigabitEthernet0/0

 port link-mode route

 ip address 20.0.0.1 255.0.0.0

 pim dm

#

interface GigabitEthernet0/1

 port link-mode route

 ip address 1.0.0.1 255.0.0.0

 pim dm

#

ospf 1

 area 0.0.0.0

  network 1.0.0.0 0.0.0.255

  network 20.0.0.0 0.0.0.255

  network 10.0.0.0 0.0.0.255

#

 

<H3C>dis ip rou

Routing Tables: Public

        Destinations : 11       Routes : 12

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

1.0.0.0/8           Direct 0    0            1.0.0.1         GE0/1

1.0.0.1/32          Direct 0    0            127.0.0.1       InLoop0

2.0.0.0/8           OSPF   10   2            10.0.0.2        S3/0

10.0.0.0/8          Direct 0    0            10.0.0.1        S3/0

10.0.0.1/32         Direct 0    0            127.0.0.1       InLoop0

10.0.0.2/32         Direct 0    0            10.0.0.2        S3/0

20.0.0.0/8          Direct 0    0            20.0.0.1        GE0/0

20.0.0.1/32         Direct 0    0            127.0.0.1       InLoop0

30.0.0.0/8          OSPF   10   2            20.0.0.3        GE0/0

                      OSPF   10   2            10.0.0.2        S3/0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

Router B 閰嶇疆

sysname H3C

#

interface Ethernet0/0

 port link-mode route

 ip address 30.0.0.2 255.0.0.0

 pim dm

#

interface Ethernet0/1

 port link-mode route

 ip address 2.0.0.2 255.0.0.0

 igmp enable

#

interface Serial3/0

 fe1 clock master

 link-protocol ppp

 ip address 10.0.0.2 255.0.0.0

 ospf cost 1

#

ospf 1         

 import-route direct

 area 0.0.0.0

  network 2.0.0.0 0.0.0.255

  network 10.0.0.0 0.0.0.255

  network 30.0.0.0 0.0.0.255

#

 

<H3C>dis ip rou

Routing Tables: Public

        Destinations : 11       Routes : 12

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

1.0.0.0/8           OSPF   10   2            10.0.0.1        S3/0

2.0.0.0/8           Direct 0    0            2.0.0.2         Eth0/1

2.0.0.2/32          Direct 0    0            127.0.0.1       InLoop0

10.0.0.0/8          Direct 0    0            10.0.0.2        S3/0

10.0.0.1/32         Direct 0    0            10.0.0.1        S3/0

10.0.0.2/32         Direct 0    0            127.0.0.1       InLoop0

20.0.0.0/8          OSPF   10   2            30.0.0.3        Eth0/0

                      OSPF   10   2            10.0.0.1        S3/0

30.0.0.0/8          Direct 0    0            30.0.0.2        Eth0/0

30.0.0.2/32         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

Router C 閰嶇疆

sysname H3C

#

interface Ethernet0/0

 port link-mode route

 ip address 30.0.0.3 255.0.0.0

 pim dm

#

interface Ethernet0/1

 port link-mode route

 ip address 20.0.0.3 255.0.0.0

 pim dm

#

interface NULL0

#

ospf 1

 area 0.0.0.0

  network 30.0.0.0 0.0.0.255

  network 20.0.0.0 0.0.0.255

#

 

<H3C>dis ip rou

Routing Tables: Public

        Destinations : 8        Routes : 8

 

Destination/Mask    Proto  Pre  Cost         NextHop         Interface

 

1.0.0.0/8           OSPF   10   2            20.0.0.1        Eth0/1

2.0.0.0/8           OSPF   10   2            30.0.0.2        Eth0/0

20.0.0.0/8          Direct 0    0            20.0.0.3        Eth0/1

20.0.0.3/32         Direct 0    0            127.0.0.1       InLoop0

30.0.0.0/8          Direct 0    0            30.0.0.3        Eth0/0

30.0.0.3/32         Direct 0    0            127.0.0.1       InLoop0

127.0.0.0/8         Direct 0    0            127.0.0.1       InLoop0

127.0.0.1/32        Direct 0    0            127.0.0.1       InLoop0

涓轰簡瑙e喅涓婅堪鐨勯棶棰橈紝棣栧厛瑕佺‘瀹氬崟鎾矾鐢卞櫒鏄纭殑銆傞鍏堜粠缁勬挱鎺ユ敹PCPing缁勬挱婧愮殑鍗曟挱鍦板潃锛屾祴璇曠粨鏋滃涓:

璇佹槑璁惧闂寸殑杩為氭ф病鏈夐棶棰橈紝瑙傚療璁惧涓婄殑璺敱琛ㄤ篃浼氬彂鐜拌矾鐢卞涔犳甯搞傛鏌ョ粍鎾簮鍜岀粍鎾帴鏀PC鐨勯厤缃紝鍙戠幇閰嶇疆娌℃湁閿欒锛岀粍鎾暟鎹凡缁忎粠缁勬挱婧愭甯鍙戝嚭銆傛渶鍚庢鏌ュ悇涓澶囦笂鐨勭粍鎾矾鐢辫〃锛

Router A涓婄殑缁勬挱璺敱琛ㄥ涓嬶細

<H3C>dis multicast routing-table

Multicast routing table

   Total 1 entry

 

 00001. (1.0.0.10, 230.0.0.1)

       Uptime: 03:37:14

       Upstream Interface: GigabitEthernet0/1

       List of 1 downstream interface

           1:  GigabitEthernet0/0

Router C涓婄殑缁勬挱璺敱琛ㄥ涓嬶細

<H3C>dis multicast routing-table

Multicast routing table

 Total 1 entry

 

 00001. (1.0.0.10, 230.0.0.1)

       Uptime: 00:10:57

       Upstream Interface: Ethernet0/1

       List of 1 downstream interface

           1:  Ethernet0/0

Router B涓婄粍鎾矾鐢辫〃涓虹┖锛屽鏋Router B涓婃病鏈夌粍鎾矾鐢辫〃锛屽垯缁勬挱鎺ユ敹PC鏄笉鍙兘鎺ユ敹鍒扮粍鎾姤鏂囩殑銆備负浜嗙湅涓┒绔燂紝鎴戜滑鎵撳紑璁惧鐨debug ip packet寮鍏筹紝寰楀埌濡備笅淇℃伅锛

*Aug  7 14:54:34:917 2007 H3C IPFWD/7/debug_case:

Receiving, interface = Ethernet0/0, version = 4, headlen = 20, tos = 0,

pktlen = 284, pktid = 35482, offset = 0, ttl = 6, protocol = 17,

checksum = 16940, s = 1.0.0.10, d = 230.0.0.1

prompt: Receiving IP packet from Ethernet0/0

 

*Aug  7 14:54:35:167 2007 H3C IPFWD/7/debug_case:

Receiving, interface = Ethernet0/0, version = 4, headlen = 20, tos = 0,

pktlen = 284, pktid = 35483, offset = 0, ttl = 6, protocol = 17,

checksum = 16939, s = 1.0.0.10, d = 230.0.0.1

prompt: Receiving IP packet from Ethernet0/0

 

*Aug  7 14:54:35:417 2007 H3C IPFWD/7/debug_case:

Receiving, interface = Ethernet0/0, version = 4, headlen = 20, tos = 0,

pktlen = 284, pktid = 35484, offset = 0, ttl = 6, protocol = 17,

checksum = 16938, s = 1.0.0.10, d = 230.0.0.1

prompt: Receiving IP packet from Ethernet0/0

璇佹槑鍦Router B涓婄‘瀹炴帴鏀跺埌浜嗙粍鎾暟鎹紝浣嗘槸璺敱鍣ㄥ苟娌℃湁杞彂锛岃屾槸灏嗘暟鎹寘涓㈠純浜嗐備粈涔堟儏鍐典細瀵艰嚧杩欑鐜拌薄鍛紵涓嶉毦鑱旀兂鍒板鏋滅粍鎾紙PIM DM锛夌殑RPF妫鏌ュけ璐ヤ細瀵艰嚧缁勬挱鎶ユ枃涓㈠純銆備竴涓粍鎾矾鐢卞櫒灏辨湁鍙兘浠庝袱涓垨澶氫釜涓嶅悓鐨勬帴鍙d笂鏀跺埌鐩稿悓鐨勫鎾姤鏂囷紝濡備綍涓㈡帀澶氫綑鐨勭粍鎾姤鏂囧憿锛熺粍鎾矾鐢卞櫒閫氳繃杩涜RPF妫鏌ユ潵瑙e喅杩欎釜闂銆傚亣璁剧粍鎾矾鐢卞櫒浠庢帴鍙i鏀跺埌浜嗕竴涓簮鍦板潃涓S锛岀洰鐨勫湴鍧涓G鐨勭粍鎾姤鏂囥傜粍鎾矾鐢卞櫒棣栧厛鍒╃敤婧愬湴鍧S鏉ユ煡璇㈠崟鎾矾鐢辫浆鍙戣〃锛岀湅鐪嬪鏋滆嚜宸辨敹鍒颁簡涓涓洰鐨勫湴鍧涓S鐨勫崟鎾姤鏂囷紝閭d箞璇ユ姤鏂囧簲璇ヤ粠鍝釜绔彛閫佸嚭銆傚鏋滄煡璇㈠緱鍒扮殑缁撴灉涓虹鍙i锛岄偅涔堝氨璁や负缁勬挱鎶ユ枃锛SG锛夐氳繃浜RPF妫鏌ワ紱鍚﹀垯灏辫涓烘病鏈夐氳繃RPF妫鏌ワ紝涓鑸儏鍐典笅娌℃湁閫氳繃RPF妫鏌ョ殑鎶ユ枃搴旇鍔犱互涓㈠純銆

涓轰簡璇佸疄杩欐牱鐨勭寽娴嬶紝浠旂粏瑙傚療涓婅堪鐨勫崟鎾拰缁勬挱璺敱琛ㄦ垜浠笉闅惧彂鐜帮紝鍗曟挱鍜岀粍鎾殑鏁版嵁瀹為檯杞彂璺緞濡備笅鍥炬墍绀猴細

鍥犱负瑕佹眰鍗曟挱鍜岀粍鎾浆鍙戜娇鐢ㄧ浉鍚岀殑杞彂璺緞锛屼絾鐢变簬鍦Router AS3/0鍙e拰Router BS3/0鍙e苟娌℃湁浣胯兘PIM DM锛岃繖鏃跺欑粍鎾姤鏂囧苟涓嶈兘閫氳繃RPF妫娴嬶紝琚Router B涓㈠純銆

鍥涖佽В鍐虫柟娉曪細

涓轰簡瑙e喅闂锛屽繀椤讳娇缁勬挱鎶ユ枃閫氳繃RPF妫鏌ャ傚彲浠ュ湪Router ARouter BS3/0鎺ュ彛涓婂惎鐢PIM DM锛涘綋鐒朵篃鍙互淇敼鍗曟挱璺敱锛屼娇寰楀崟鎾矾寰勫拰缁勬挱璺緞涓鑷达紝鍏蜂綋浣滄硶涓哄垹闄Router ARouter BS3/0鎺ュ彛涓OSPF cost 1閰嶇疆锛岃繖鏍烽噸鏂拌绠楀緱鍒扮殑璺敱鍣ㄨ〃浼氫娇寰楀崟鎾姤鏂囨寜鐓Source-Router A-Router C-Router B-Receiver鐨勮矾寰勮浆鍙戙

瑙e喅PIM DM鐨勭粍鎾棶棰樺彲浠ヤ粠妫鏌ョ粍鎾伐鍏凤紝妫鏌ュ崟鎾矾鐢卞拰妫鏌RPF涓変釜鏂归潰鑰冭檻锛屾渶鍚庝竴鐐归氬父鏄殣钘忔瘮杈冩繁涓旇緝闅惧彂鐜扮殑锛屼絾寰寰涔熸槸闂鐨勬牴鏈師鍥犮

X Close
X Close