|
|
"Name" | A unique name, up to 16 characters with spaces allowed, for this filter set. |
These filter rules are global to the device and are not associated with a particular interface. However, they can be restricted to an interface using the from or to modifiers as explained later in this section.
The rules are applied in the order they were written. When you select multiple filter sets, they are read from first to last as you entered them.
When you specify a rule, even if it is only a deny rule, the concentrator rejects all other updates unless you specifically allow them. The exception to this rule is that direct and static routes are always installed and cannot be removed from the routing table using IP route filtering.
To allow all other routing packets not filtered, make the last rule:
permit 0.0.0.0
For example, if you only want to deny routing updates for IP host address 192.67.89.3, enter two lines:
deny 192.67.89.3 in permit 0.0.0.0
After entering the edit config command, and then the append command, enter one or more filter rules using the following syntax:
{permit | deny} IP_address[/bits]
permit | deny |
|
IP_address[/bits] | The concentrator compares the IP address of a routing packet to the address you entered here. You can specify an IP address in the following ways:
/ bits denotes the number of bits that are significant when doing the comparison against the addresses from the IP packet. For example, an address specified as 192.15.32.0/19 matches all host addresses from 192.15.32.1 to 192.15.63.255. |
in | out | both | Specifies the packet direction for which the rule is applied.
|
via protocol | Applies the filter to routing packets originating from or received from one or more specified protocols, where protocol is: [icmp] [rip] [ripv2] [ospf] |
origin protocol | Applies the filter to routing packets originating from one or more specified protocols, where protocol is: [icmp] [rip] [ripv2] [ospf] [static] [direct] |
{metricin | metricout} metric | Allows the metric on incoming or outgoing routes to be incremented or decremented. The metric is the number of routers on a route. By increasing or decreasing the metric, a particular route can be made more or less attractive. metric must be a decimal number between 1 and 15. |
{from | to} {IP_address[/bits] | port} | Applies the filter only to routing packets from or to a specific IP address or port, where port is: {Ethernet | WAN} slot:port |
log | Causes the router to log data about filtered packets. See the Logging section for more information. |
The following example specifies to permit input only from RIP and only from 198.41.11.1, and output of routing information that originates from RIP, directly connected routes and static routes.
[ IP Route Filter "rip-in" ] permit 0.0.0.0 in via rip from 198.41.11.1 permit 0.0.0.0 out origin rip direct static
The route filter is applied in the General section.
[ General ] IPRouteFilters = rip-in bgp600
| Command | Description |
|---|---|
configure General | Configures general system settings |
configure IP | Configures IP parameters for an interface |
configure IP Route Redistribution | Configures how the concentrator redistrubutes routes from one dynamic IP routing protocol into another. |
configure Logging | Configures logging options |
edit config IP Filter | Creates IP packet filters |
edit config IP Static | Creates IP static routes |
show IP | Shows IP configuration and statistics |
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Sep 27 10:56:15 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.