Professional Documents
Culture Documents
OSPF básico
Configure OSPF 1 area 0 publicando las interfaces directamente conectadas (incluya loopbacks).
R1
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 1.1.1.0 0.0.0.255
network 10.1.12.0 0.0.0.255
interface LoopBack0
ospf network-type broadcast
R2
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.0 0.0.0.255
network 10.1.12.0 0.0.0.255
network 10.1.23.0 0.0.0.255
interface LoopBack0
ospf network-type broadcast
R3
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.0 0.0.0.255
network 10.1.23.0 0.0.0.255
interface LoopBack0
ospf network-type broadcast
1
Guía Huawei R&S v2.0
2
Guía Huawei R&S v2.0
Para asegurar una rápida detección de vecindad OSPF, configure las interfaces G0/0/0 de R1 y R2
de manera que tengan un intervalo hello de 1 segundo y un holdtime de 4 segundos. Solo
modifique el interval hello.
R1
interface GigabitEthernet 0/0/0
ospf timer hello 1
R2
interface GigabitEthernet 0/0/0
ospf timer hello 1
3
Guía Huawei R&S v2.0
Configure R2 tal que, si no recibe un reconocimiento desde R3 para un LSA, este espere 10 segundos para
reenviar el LSA.
R2
interface GigabitEthernet0/0/1
ospf timer retransmit 10
4
Guía Huawei R&S v2.0
OSPF AutoCost
Configure OSPF con la siguiente disposición:
Router Interface IGP Area
R1 Gi0/0/0 OSPF 0
R2 Gi0/0/0 OSPF 0
R3 Gi0/0/0 OSPF 0
R4 Gi0/0/0 OSPF 0
R4 Se0/0/0 OSPF 45
R5 Se0/0/0 OSPF 45
Dentro del dominio OSPF se instalarán interface 10gigaEthernet. Modifique el valor del ancho de banda de
referencia para que los resultados del costo OSPF sean consistentes.
R1
ospf 1
area 0.0.0.0
network 10.0.100.0 0.0.0.255
R2
ospf 1
area 0.0.0.0
network 10.0.100.0 0.0.0.255
R3
ospf 1
area 0.0.0.0
network 10.0.100.0 0.0.0.255
R4
ospf 1
area 0.0.0.0
network 10.0.100.0 0.0.0.255
5
Guía Huawei R&S v2.0
area 0.0.0.45
network 10.0.45.0 0.0.0.255
R5
ospf 1
area 0.0.0.45
network 10.0.45.0 0.0.0.255
Como podemos observar, el costo para las interfaces GigabitEthernet es de 1 y los enlaces seriales un costo de
1562. Podemos calcular este valor con la fórmula:
BW Ref.
Costo OSPF = ------------------
BW interface
Al cambiar el costo de referencia OSPF debemos considerar el dominio OSPF completo. El proceso OSPF nos
advierte con el siguiente log:
Info: Reference bandwidth is changed. Please ensure that the reference bandwidth
that is configured for all the routers are the same.
R1
ospf 1
bandwidth-reference 10000
R2
ospf 1
bandwidth-reference 10000
R3
ospf 1
bandwidth-reference 10000
R4
ospf 1
bandwidth-reference 10000
R5
ospf 1
bandwidth-reference 10000
BW Ref.
Costo OSPF = ------------------
BW interface
10.000.000.000
Costo OSPF = ------------------ = 10
GigabitEthernet0/0/0 1000.000.000