29. Passive interface for OSPF configuration experiment
1. Passive interface resolution
When we do not want an interface to send and receive OSPF messages, we can configure it as a passive interface under the OSPF routing process. Network advertises routes and sends hello packets. When we configure the interface as a passive interface, it just does not send and receive hello messages, the network will still advertise, and other routers can also learn routing.
2. Experimental topology
3. Experimental configuration
R1 configuration
Interface Loopback0
Ip address 1.1.1.1 255.255.255.0
Interface Ethernet0/0
Ip address 192.168.0.1 255.255.255.0
Interface Ethernet0/1
Ip address 192.168.1.1 255.255.255.0
Interface Ethernet0/2
Ip address 192.168.2.1 255.255.255.0
Interface Ethernet0/3
Ip address 192.168.3.1 255.255.255.0
Interface Ethernet1/0
Ip address 192.168.4.1 255.255.255.0
Interface Ethernet1/1
Ip address 192.168.5.1 255.255.255.0
Router ospf 110
Network 1.1.1.0 0.0.0.255 area 0
Network 192.168.0.0 0.0.255.255 area 0
R2 configuration
Interface Loopback0
Ip address 2.2.2.2 255.255.255.0
Interface Ethernet0/0
Ip address 192.168.0.2 255.255.255.0
Interface Ethernet0/1
Ip address 192.168.1.2 255.255.255.0
Interface Ethernet0/2
Ip address 192.168.2.2 255.255.255.0
Interface Ethernet0/3
Ip address 192.168.3.2 255.255.255.0
Interface Ethernet1/0
Ip address 192.168.4.2 255.255.255.0
Interface Ethernet1/1
Ip address 192.168.5.2 255.255.255.0
Router ospf 110
Network 2.2.2.0 0.0.0.255 area 0
Network 192.168.0.0 0.0.255.255 area 0
4. Passive interface testing
For example, we want the lo0 port of R1 not to send or receive hello packets, but R1 can still learn the routing of the lo0 port of R1. We can do this.