Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RIP route filtering example

Status
Not open for further replies.

ADB100

Technical User
Mar 25, 2003
2,399
GB
I want to prevent all routes except the default from being advertised down an interface. I have RIPv2 running between a core and an access switch. The access switch doesn't need anything but a default so I want to prevent the core from advertising anything but the default. At the moment all routes are being advertised. I have had a dig through the XOS concepts guide but I am struggling understanding the logic of the scripting.
I put together this file and called it default-route.pol and copied it to the switch flash:
Code:
entry et1 {
if match all {
nlri 10.0.0.0/8;
} then {
deny;
}
}
entry et2 {
if match any {
nlri 0.0.0.0/0;
} then {
permit;
}
}

I then configured a route-policy on the L3 interface:
Code:
configure rip <VLAN> route-policy out default-route
but it didn't work...

I think my issue is I don't understand the scripting... Any doing this and has a working example?

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top