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:
I then configured a route-policy on the L3 interface:
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
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
I think my issue is I don't understand the scripting... Any doing this and has a working example?
Andy