帧中继中Ospf的网络类型_网络

 

 

1.NMBA

R1#show ip ospf int s0/0

Serial0/0 is up, line protocol is up 

  Internet Address 10.0.0.1/24, Area 1 

  Process ID 1, Router ID 1.1.1.1, Network Type NON_BROADCAST, Cost: 64

  Transmit Delay is 1 sec, State DR, Priority 100 

  Designated Router (ID) 1.1.1.1, Interface address 10.0.0.1

  No backup designated router on this network

  Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5


frame11111#show run


rame-relay switching

interface Serial0/0

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

 frame-relay intf-type dce

 frame-relay route 101 interface Serial0/1 103

 frame-relay route 105 interface Serial0/2 102

interface Serial0/1

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

 frame-relay intf-type dce

 frame-relay route 103 interface Serial0/0 101

 frame-relay route 107 interface Serial0/2 106

interface Serial0/2

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

 frame-relay intf-type dce

 frame-relay route 102 interface Serial0/0 105

 frame-relay route 106 interface Serial0/1 107


frame22222#show run


frame-relay switching

interface Serial0/0

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

 frame-relay route 102 interface Serial0/1 104

 frame-relay route 106 interface Serial0/1 108

interface Serial0/1

 no ip address

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

 frame-relay intf-type dce

 frame-relay route 104 interface Serial0/0 102

 frame-relay route 108 interface Serial0/0 106


 

R1#show run


interface Loopback1

 ip address 1.1.1.1 255.255.255.0

interface Serial0/0

 ip address 10.0.0.1 255.255.255.0

 encapsulation frame-relay

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.2 101

 frame-relay map ip 10.0.0.3 105

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 network 1.1.1.0 0.0.0.255 area 1

 network 10.0.0.0 0.0.0.255 area 1

 neighbor 10.0.0.2

no ip http server

no ip http secure-server

control-plane



R4#show run


interface Loopback2

 ip address 2.2.2.2 255.255.255.0

interface Serial0/0

 ip address 10.0.0.2 255.255.255.0

 encapsulation frame-relay

 ip ospf priority 0

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.1 103

 frame-relay map ip 10.0.0.3 107

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.0 0.0.0.255 area 1

 network 10.0.0.0 0.0.0.255 area 1



R5#show run


interface Loopback1

 ip address 3.3.3.3 255.255.255.0

interface Serial0/0

 ip address 10.0.0.3 255.255.255.0

 encapsulation frame-relay

 ip ospf priority 0

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.1 104

 frame-relay map ip 10.0.0.2 108

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 1

 network 10.0.0.0 0.0.0.255 area 1


其中在R1R5中分别设置邻居单播

R1(config-router)#neighbor 10.0.0.2

R1(config-router)#neighbor 10.0.0.3

R5(config-router)#neighbor 10.0.0.1

R5(config-router)#neighbor 10.0.0.2

最后,修改R4R5的优先级为零

R4(config-if)#ip ospf priority 0

R5(config-if)#ip ospf priority 0

2.Broadcast

将原有的邻居单播删除。后修改为broadcast网络!

R1#show ip ospf int s0/0

Serial0/0 is up, line protocol is up 

  Internet Address 10.0.0.1/24, Area 0 

  Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64

  Transmit Delay is 1 sec, State DR, Priority 100 

  Designated Router (ID) 1.1.1.1, Interface address 10.0.0.1

  No backup designated router on this network

  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

     Last flood scan length is 1, maximum is 1

  Last flood scan time is 0 msec, maximum is 4 msec

  Neighbor Count is 2, Adjacent neighbor count is 2 

    Adjacent with neighbor 2.2.2.2

    Adjacent with neighbor 3.3.3.3

  Suppress hello for 0 neighbor(s)

R1#show run


interface Loopback1

 ip address 1.1.1.1 255.255.255.0

!interface Serial0/0

 ip address 10.0.0.1 255.255.255.0

 encapsulation frame-relay

 ip ospf network broadcast

 ip ospf priority 100

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.2 101 broadcast

 frame-relay map ip 10.0.0.3 105 broadcast

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 network 1.1.1.0 0.0.0.255 area 0

 network 10.0.0.0 0.0.0.255 area 0


R4#show run


interface Loopback1

 ip address 2.2.2.2 255.255.255.0

interface Serial0/0

 ip address 10.0.0.2 255.255.255.0

 encapsulation frame-relay

 ip ospf network broadcast

 ip ospf priority 0

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.1 103 broadcast

 frame-relay map ip 10.0.0.3 107 broadcast

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.0 0.0.0.255 area 0

 network 10.0.0.0 0.0.0.255 area 0

no ip http server

no ip http secure-server


R5#show run


interface Loopback1

 ip address 3.3.3.3 255.255.255.0

interface Serial0/0

 ip address 10.0.0.3 255.255.255.0

 encapsulation frame-relay

 ip ospf network broadcast

 ip ospf priority 0

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.1 104 broadcast

 frame-relay map ip 10.0.0.2 108 broadcast

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 0

 network 10.0.0.0 0.0.0.255 area 0

no ip http server

no ip http secure-server


其中的帧中继设置和上面的一样!

3.P2MA

R1#SHOW IP OSPF INT S0/0

Serial0/0 is up, line protocol is up 

  Internet Address 10.0.0.1/24, Area 0 

  Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64

  Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT,

  Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5

    oob-resync timeout 120

    Hello due in 00:00:03

  Supports Link-local Signaling (LLS)

  Index 2/2, flood queue length 0

  Next 0x0(0)/0x0(0)

  Last flood scan length is 1, maximum is 1

  Last flood scan time is 4 msec, maximum is 4 msec

  Neighbor Count is 2, Adjacent neighbor count is 2 

    Adjacent with neighbor 3.3.3.3

    Adjacent with neighbor 2.2.2.2

  Suppress hello for 0 neighbor(s)

R1#SHOW RUN


interface Loopback1

 ip address 1.1.1.1 255.255.255.0

interface Serial0/0

 ip address 10.0.0.1 255.255.255.0

 encapsulation frame-relay

 ip ospf network point-to-multipoint

 ip ospf priority 100

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.2 101 broadcast

 frame-relay map ip 10.0.0.3 105 broadcast

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 1.1.1.1

 log-adjacency-changes

 network 1.1.1.0 0.0.0.255 area 0

 network 10.0.0.0 0.0.0.255 area 0

no ip http server

no ip http secure-server


R4#SHOW RUN


interface Loopback1

 ip address 2.2.2.2 255.255.255.0

interface Serial0/0

 ip address 10.0.0.2 255.255.255.0

 encapsulation frame-relay

 ip ospf network point-to-multipoint

 ip ospf priority 0

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.1 103 broadcast

 frame-relay map ip 10.0.0.3 107 broadcast

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 2.2.2.2

 log-adjacency-changes

 network 2.2.2.0 0.0.0.255 area 0

 network 10.0.0.0 0.0.0.255 area 0


R5#SHOW RUN


interface Loopback1

 ip address 3.3.3.3 255.255.255.0

interface Serial0/0

 ip address 10.0.0.3 255.255.255.0

 encapsulation frame-relay

 ip ospf network point-to-multipoint

 ip ospf priority 0

 serial restart-delay 0

 clock rate 64000

 no arp frame-relay

 frame-relay map ip 10.0.0.1 104 broadcast

 frame-relay map ip 10.0.0.2 108 broadcast

 no frame-relay inverse-arp

 frame-relay lmi-type ansi

router ospf 1

 router-id 3.3.3.3

 log-adjacency-changes

 network 3.3.3.0 0.0.0.255 area 0

 network 10.0.0.0 0.0.0.255 area 0

no ip http server

no ip http secure-server



帧中继配置,与上面一样!

4.P2MA NBMA

单播指邻居,即可!

5.POINT-TO-POINT

在弹条路的的环境下,映射广播即可!

因为自己的能力有限,所以有什么问题,请求指教!395295185