This feature prevents LDP sessions from being established with remote neighbors that have not been specifically configured. If you configure the strict-targeted-hellos statement, an LDP peer will not respond to targeted hellos coming from a source that is not one of the configured remote neighbors. Configured remote neighbors can include:
A hello from an unconfigured neighbor is ignored, and an error is logged (with the error traceoption flag) indicating the source. For example, if a targeted hello is received from 10.0.0.1, and no neighbor with this address is specifically configured, the following message is printed to the LDP log file:
- LDP: Ignoring targeted hello from 10.0.0.1
To enable strict targeted hellos, include the strict-targeted-hellos statement:
-
strict-targeted-hellos;
For a list of hierarchy levels at which you can include this statement, see the statement summary section for this statement.