Advertising a default route

You can advertise a default route on all RIP interfaces in RIP view or on a specific RIP interface in interface view. The interface view setting takes precedence over the RIP view settings.

To disable an interface from advertising a default route, use the rip default-route no-originate command on the interface.

To configure RIP to advertise a default route:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter RIP view.

rip [ process-id ] [ vpn-instance vpn-instance-name ]

N/A

3. Enable RIP to advertise a default route.

default-route { only | originate } [ cost cost ]

By default, RIP does not advertise a default route.

4. Return to system view.

quit

N/A

5. Enter interface view.

interface interface-type interface-number

N/A

6. Configure the RIP interface to advertise a default route.

rip default-route { { only | originate } [ cost cost ] | no-originate }

By default, a RIP interface can advertise a default route if the RIP process is enabled to advertise a default route.


[NOTE: ]

NOTE:

The router enabled to advertise a default route does not accept default routes from RIP neighbors.