Use o Verificador de Sintaxe para configurar as interfaces de Loopback no R2 como passivas. Como alternativa, todas as interfaces podem ser passivas usando o comando passive-interface default. As interfaces que não devem ser passivas podem ser reativadas usando o comando no passive-interface. Configure o R3 com o comando passive-interface default, em seguida, reative as interfaces Gigabit Ethernet.
Código: Selecionar todos
You are currently logged into R2.
Enter OSPF router configuration mode using process ID 10.
Configure the Loopback interface as passive using the shortened interface name lo0.
Return to privileged EXEC mode.
Verify the OSPF settings with the show ip protocols command.
R2(config)#router ospf 10
R2(config-router)#passive-interface lo0
R2(config-router)#end
*May 23 20:27:20.718: %SYS-5-CONFIG_I: Configured from console by console
R2#show ip protocols
*** IP Routing is NSF aware ***
(output omitted)
Routing Protocol is "ospf 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 2.2.2.2
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
Routing on Interfaces Configured Explicitly (Area 0):
Loopback0
GigabitEthernet0/0/1
GigabitEthernet0/0/0
Passive Interface(s):
Loopback0
Routing Information Sources:
Gateway Distance Last Update
3.3.3.3 110 02:07:48
1.1.1.1 110 02:34:53
Distance: (default is 110)
R2#
You are now logged into R3:
Enter OSPF router configuration mode using process ID 10
Use one command to configure all interfaces as passive
Use the shortened interface names g0/0/0 and g0/0/1 to remove these interfaces from the passive list
Return to privileged EXEC mode
Verify the OSPF settings with the show ip protocols command.
R3(config)#router ospf 10
R3(config-router)#passive-interface default
*Jun 5 23:06:46.668: %OSPF-5-ADJCHG: Process 10, Nbr 1.1.1.1 on GigabitEthernet0/0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
*Jun 5 23:06:46.669: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on GigabitEthernet0/0/1 from FULL to DOWN, Neighbor Down: Interface down or detached
R3(config-router)#no passive-interface g0/0/0
*Jun 5 23:07:07.746: %OSPF-5-ADJCHG: Process 10, Nbr 1.1.1.1 on GigabitEthernet0/0/0 from LOADING to FULL, Loading Done
R3(config-router)#no passive-interface g0/0/1
*Jun 5 23:07:17.841: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on GigabitEthernet0/0/1 from LOADING to FULL, Loading Done
R3(config-router)#end
* Jun 5 23:07:35.732: %SYS-5-CONFIG_I: Configured from console by console
R3#show ip protocols
*** IP Routing is NSF aware ***
(output omitted)
Routing Protocol is "ospf 10"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 3.3.3.3
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
Routing on Interfaces Configured Explicitly (Area 0):
Loopback0
GigabitEthernet0/0/1
GigabitEthernet0/0/0
Passive Interface(s):
Serial0/1/0
Serial0/1/1
Loopback0
Routing Information Sources:
Gateway Distance Last Update
1.1.1.1 110 00:00:59
2.2.2.2 110 00:00:48
Distance: (default is 110)
R3#
Você configurou com êxito interfaces passivas para R2 e R3.
Continuar a leitura: Redes ponto a ponto OSPF