Netgear XSM4324S CLI Manual Software Version 12.x - Page 685
ip policy route-map equal-access
View all Netgear XSM4324S manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 685 highlights
M4300 Intelligent Edge Series Fully Managed Stackable Switches Command example: The following example creates a route-map with a match clause on ACL number and applies that route-map on an interface: (NETGEAR Switch) (config)#access-list 1 permit ip 10.1.0.0 0.0.255.255 (NETGEAR Switch) (config)#access-list 2 permit ip 10.2.0.0 0.0.255.255 (NETGEAR Switch) (config)#route-map equal-access permit 10 (NETGEAR Switch) (config-route-map)#match ip address 1 (NETGEAR Switch) (config-route-map)#set ip default next-hop 192.168.6.6 (NETGEAR Switch) (config-route-map)#route-map equal-access permit 20 (NETGEAR Switch) (config-route-map)#match ip address 2 (NETGEAR Switch) (config-route-map)#set ip default next-hop 172.16.7.7 (NETGEAR Switch) (config)#interface 1/0/1 (NETGEAR Switch) (Interface 1/0/1)#ip address 10.1.1.1 255.255.255.0 (NETGEAR Switch) (Interface 1/0/1)#ip policy route-map equal-access (NETGEAR Switch) (config)#interface 1/0/2 (NETGEAR Switch) (Interface 1/0/2)#ip address 192.168.6.5 255.255.255.0 (NETGEAR Switch) (config)#interface 1/0/3 (NETGEAR Switch) (Interface 1/0/3)#ip address 172.16.7.6 255.255.255.0 The ip policy route-map equal-access command is applied to interface 1/0/1. All packets coming inside 1/0/1 are policy-routed. Sequence number 10 in route map equal-access is used to match all packets sourced from any host in subnet 10.1.0.0. If there is a match, and if the router has no explicit route for the packet's destination, it is sent to next-hop address 192.168.6.6. Sequence number 20 in route map equal-access is used to match all packets sourced from any host in subnet 10.2.0.0. If there is a match, and if the router has no explicit route for the packet's destination, it is sent to next-hop address 172.16.7.7. All other packets are forwarded as per normal L3 destination-based routing. Command example: The following example shows a scenario in which an IP ACL that is referenced by a route-map is removed or rules are added or deleted from that ACL: (NETGEAR Switch) #show ip access-lists Current number of ACLs: 9 Maximum number of ACLs: 100 ACL ID/Name Rules Direction Interface(s) 1 1 2 1 3 1 4 1 5 1 madan 1 VLAN(s) ---------- Routing Commands 685 CLI Command Reference Manual