cisco Catalyst 9300 Series Switch — Configuring a Dynamic Rule Using a Route Map

Configuring Network Address Translation Configuring a Dynamic Rule Using a Route Map Command or Action Purpose • acl-name: Specifies the access list using numeric indentifier to which all commands entered from ACL configuration mode is applicable. The range is from 100 to 199. The extended range is from 2000 to 2699. Step 4 access-list seq-num ip ip-addresses Example: Switch(config-ext-nacl)# access-list 20 permit ip 1.1.1.0 0.0.0.255 8.8.8.0 0.0.0.255 Permits IP traffic between the specified IP addresses. Step 5 exit Example: Switch(config-ext-nacl)# exit Switch(config)# Exits ACL configuration mode. Step 6 route-mapname{permit|deny|seq-num|ordering-seq} Example:

Switch(config)# route-map RM2 permit 20 Switch(config-route-map)# Associates ACL with a route map. • name: Specifies the route map name. • seq-num: Specifies sequence number to insert or delete from existing route map entry. The range is from 0 to 65535. • ordering-seq: Specifies ordered sequence number to insert or delete from existing route map entry. • permit: Permits set operations of the route map. • deny: Denies set operations of the route map. Step 7 match ip-address acl-name Example: Switch(config-route-map)# match ip address ACL2 Configures the specified ACL's policies to the route map. Step 8 ip nat pool name start-ip end-ip netmask netmask | prefix-length prefix-length Example:

Switch(config-route-map)# ip nat pool POOL1 5.5.5.5 5.5.5.30 prefix-length 24 Defines a pool of global addresses to be allocated as needed. Step 9 ip nat inside source route-map name pool name Example: Establishes dynamic rule using route map. Configuring Network Address Translation 28