435243 发表于 2016-7-4 09:41:52

OSPF P2MP基本实验

帧中继默认是NBMA,P2MP是通过NBMA强制修改的,帧中继二层不支持组播,而ospf是使用组播来交互报文,由此可以说明P2MP是广播(组播)来交互的,所以不需要手工指定peer,但要在fr map ip x.x.x.x broadcast???
p2mp也有两种方式,

一种是通过修改帧中继map表,使其支持广播方式
另一种是通过单播手工指定peer(实验没做成功),为什么不能成功,因为p2mp采用组播交互报文??

第一种:通过通过修改帧中继map表,使其支持广播方式:

R1:
dis cur conf ospf   

#
ospf 1
area 0.0.0.0
network 10.1.123.0 0.0.0.255
network 11.1.1.1 0.0.0.0
#
return

dis cur inter

#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.2 102 broadcast
fr map ip 10.1.123.3 103 broadcast
ip address 10.1.123.1 255.255.255.0
ospf network-type p2mp
#

dis ospf inter s 1/0/0

OSPF Process 1 with Router ID 11.1.1.1
Interfaces


Interface: 10.1.123.1 (Serial1/0/0)
Cost: 48    State: P-2-P   Type: P2MP      MTU: 1500
Timers: Hello 30 , Dead 120 , Poll120 , Retransmit 5 , Transmit Delay 1

dis ospf peer bri

OSPF Process 1 with Router ID 11.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id          Interface                        Neighbor id      State   
0.0.0.0          Serial1/0/0                      22.1.1.1         Full      
0.0.0.0          Serial1/0/0                      33.1.1.1       Full      
----------------------------------------------------------------------------
dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12      

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.0/24Direct0    0         D   10.1.123.1      Serial1/0/0
   10.1.123.1/32Direct0    0         D   127.0.0.1       Serial1/0/0
P2MP会自动产生一条32位主机路由,用户R3访问R2使用?
   10.1.123.2/32Direct0    0         D   10.1.123.2      Serial1/0/0
   10.1.123.3/32Direct0    0         D   10.1.123.3      Serial1/0/0
   10.1.123.255/32Direct0    0         D   127.0.0.1       Serial1/0/0
       11.1.1.1/32Direct0    0         D   127.0.0.1       LoopBack0
       22.1.1.1/32OSPF    10   48          D   10.1.123.2      Serial1/0/0
       33.1.1.1/32OSPF    10   48          D   10.1.123.3      Serial1/0/0
      127.0.0.0/8   Direct0    0         D   127.0.0.1       InLoopBack0
      127.0.0.1/32Direct0    0         D   127.0.0.1       InLoopBack0
127.255.255.255/32Direct0    0         D   127.0.0.1       InLoopBack0
255.255.255.255/32Direct0    0         D   127.0.0.1       InLoopBack0

dis ospf peer

OSPF Process 1 with Router ID 11.1.1.1
Neighbors

Area 0.0.0.0 interface 10.1.123.1(Serial1/0/0)'s neighbors
Router ID: 22.1.1.1         Address: 10.1.123.2      
   State: FullMode:Nbr isMasterPriority: 1
DR: None   BDR: None MTU: 0   
   Dead timer due in 94sec
   Retrans timer interval: 5
   Neighbor is up for 00:09:54   
   Authentication Sequence: [ 0 ]

Router ID: 33.1.1.1         Address: 10.1.123.3      
   State: FullMode:Nbr isMasterPriority: 1
   DR: None   BDR: None   MTU: 0   
   Dead timer due in 89sec
   Retrans timer interval: 5
   Neighbor is up for 00:09:57   
   Authentication Sequence: [ 0 ]

dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 4      Routes : 4      

OSPF routing table status : <Active>
         Destinations : 2      Routes : 2

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

       22.1.1.1/32OSPF    10   48          D   10.1.123.2      Serial1/0/0
       33.1.1.1/32OSPF    10   48          D   10.1.123.3      Serial1/0/0

OSPF routing table status : <Inactive>
         Destinations : 2      Routes : 2

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.2/32OSPF    10   48            10.1.123.2      Serial1/0/0
   10.1.123.3/32OSPF    10   48            10.1.123.3      Serial1/0/0

---------------------------------------
R2:
dis cur conf ospf   

#
ospf 1
area 0.0.0.0
network 10.1.123.0 0.0.0.255
network 22.1.1.1 0.0.0.0
#
return

dis cur inter

#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.1 201 broadcast
ip address 10.1.123.2 255.255.255.0
ospf network-type p2mp
#

dis ospf inter s 1/0/0

OSPF Process 1 with Router ID 22.1.1.1
Interfaces


Interface: 10.1.123.2 (Serial1/0/0)
Cost: 48      State: P-2-P   Type: P2MP      MTU: 1500
Timers: Hello 30 , Dead 120 , Poll120 , Retransmit 5 , Transmit Delay 1

dis ospf peer bri

OSPF Process 1 with Router ID 22.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id          Interface                        Neighbor id      State   
0.0.0.0          Serial1/0/0                      11.1.1.1         Full      
----------------------------------------------------------------------------


dis ospf pe

OSPF Process 1 with Router ID 22.1.1.1
Neighbors

Area 0.0.0.0 interface 10.1.123.2(Serial1/0/0)'s neighbors
Router ID: 11.1.1.1         Address: 10.1.123.1      
   State: FullMode:Nbr isSlavePriority: 1
   DR: None   BDR: None   MTU: 0   
   Dead timer due in 114 sec
   Retrans timer interval: 5
   Neighbor is up for 00:12:24   
   Authentication Sequence: [ 0 ]

dis ip rou
dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12      

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.0/24Direct0    0         D   10.1.123.2      Serial1/0/0
   10.1.123.1/32Direct0    0         D   10.1.123.1      Serial1/0/0
   10.1.123.2/32Direct0    0         D   127.0.0.1       Serial1/0/0
   10.1.123.3/32OSPF    10   96          D   10.1.123.1      Serial1/0/0
   10.1.123.255/32Direct0    0         D   127.0.0.1       Serial1/0/0
       11.1.1.1/32OSPF    10   48          D   10.1.123.1      Serial1/0/0
       22.1.1.1/32Direct0    0         D   127.0.0.1       LoopBack0
       33.1.1.1/32OSPF    10   96          D   10.1.123.1      Serial1/0/0
R2到达R3的33.1.1.1下一条是R1 10.1.1.23.1
      127.0.0.0/8   Direct0    0         D   127.0.0.1       InLoopBack0
      127.0.0.1/32Direct0    0         D   127.0.0.1       InLoopBack0
127.255.255.255/32Direct0    0         D   127.0.0.1       InLoopBack0
255.255.255.255/32Direct0    0         D   127.0.0.1       InLoopBack0

dis ip rou
dis ip routing-table pr
dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 4      Routes : 4      

OSPF routing table status : <Active>
         Destinations : 3      Routes : 3

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.3/32OSPF    10   96          D   10.1.123.1      Serial1/0/0
       11.1.1.1/32OSPF    10   48          D   10.1.123.1      Serial1/0/0
       33.1.1.1/32OSPF    10   96          D   10.1.123.1      Serial1/0/0

OSPF routing table status : <Inactive>
         Destinations : 1      Routes : 1

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.1/32OSPF    10   48            10.1.123.1      Serial1/0/0


------------------------------------------------------
R3:
dis cur conf ospf   

#
ospf 1
area 0.0.0.0
network 10.1.123.0 0.0.0.255
network 33.1.1.1 0.0.0.0
#
return

dis cur inter

#
interface Serial1/0/0
link-protocol fr
fr map ip 10.1.123.1 301 broadcast
ip address 10.1.123.3 255.255.255.0
ospf network-type p2mp
#

dis ospf inter s 1/0/0

OSPF Process 1 with Router ID 33.1.1.1
Interfaces


Interface: 10.1.123.3 (Serial1/0/0)
Cost: 48      State: P-2-P   Type: P2MP      MTU: 1500
Timers: Hello 30 , Dead 120 , Poll120 , Retransmit 5 , Transmit Delay 1

dis ospf peer bri

OSPF Process 1 with Router ID 33.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id          Interface                        Neighbor id      State   
0.0.0.0          Serial1/0/0                      11.1.1.1         Full      
----------------------------------------------------------------------------
dis iprou
dis ospf pe

OSPF Process 1 with Router ID 33.1.1.1
Neighbors

Area 0.0.0.0 interface 10.1.123.3(Serial1/0/0)'s neighbors
Router ID: 11.1.1.1         Address: 10.1.123.1      
   State: FullMode:Nbr isSlavePriority: 1
   DR: None   BDR: None   MTU: 0   
   Dead timer due in 116 sec
   Retrans timer interval: 5
   Neighbor is up for 00:13:25   
   Authentication Sequence: [ 0 ]

dis ip rou pr ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 4      Routes : 4      

OSPF routing table status : <Active>
         Destinations : 3      Routes : 3

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.2/32OSPF    10   96          D   10.1.123.1      Serial1/0/0
       11.1.1.1/32OSPF    10   48          D   10.1.123.1      Serial1/0/0
       22.1.1.1/32OSPF    10   96          D   10.1.123.1      Serial1/0/0

OSPF routing table status : <Inactive>
         Destinations : 1      Routes : 1

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.1/32OSPF    10   48            10.1.123.1      Serial1/0/0

dis ip rou
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 12       Routes : 12      

Destination/Mask    Proto   PreCost      Flags NextHop         Interface

   10.1.123.0/24Direct0    0         D   10.1.123.3      Serial1/0/0
   10.1.123.1/32Direct0    0         D   10.1.123.1      Serial1/0/0
   10.1.123.2/32OSPF    10   96          D   10.1.123.1      Serial1/0/0
   10.1.123.3/32Direct0    0         D   127.0.0.1       Serial1/0/0
   10.1.123.255/32Direct0    0         D   127.0.0.1       Serial1/0/0
       11.1.1.1/32OSPF    10   48          D   10.1.123.1      Serial1/0/0
       22.1.1.1/32OSPF    10   96          D   10.1.123.1      Serial1/0/0
       33.1.1.1/32Direct0    0         D   127.0.0.1       LoopBack0
      127.0.0.0/8   Direct0    0         D   127.0.0.1       InLoopBack0
      127.0.0.1/32Direct0    0         D   127.0.0.1       InLoopBack0
127.255.255.255/32Direct0    0         D   127.0.0.1       InLoopBack0
255.255.255.255/32Direct0    0         D   127.0.0.1       InLoopBack0


页: [1]
查看完整版本: OSPF P2MP基本实验