| Step 1 |
enable
Example:
|
Enables privileged EXEC mode.
- Enter your password if prompted.
|
| Step 2 |
configure
terminal
Example:
Router# configure terminal
|
Enters global configuration mode.
|
| Step 3 |
ip
nat inside source list
access-list-number
pool
pool-name
[vrf
vrf-name
[match-in-vrf]]
Example:
Router(config)# ip nat inside source list 1 pool shared-pool vrf vrf1 match-in-vrf
|
Enables multiple dynamic mappings to be configured with the same address pool.
- The
match-in-vrf keyword enables NAT inside and outside traffic in the same VRF.
|
| Step 4 |
access-list
access-list-number
permit source
[source-wildcard]
Example:
Router(config)# access-list 1 permit 192.168.34.0 0.0.0.255
|
Defines a standard access list permitting those addresses that are to be translated.
|
| Step 5 |
ip nat inside source list
access-list-number
pool
pool-name
vrf
vrf-name
[match-in-vrf]
Example:
Router(config)# ip nat inside source list 1 pool shared-pool vrf vpn1
|
Establishes dynamic source translation, specifying the access list defined in the previous step.
|
| Step 6 |
interface
type
number
Example:
Router(config)# interface gigabitethernet 0/0/1
|
Specifies an interface and enters interface configuration mode.
|
| Step 7 |
ip
address
ip-address
mask
Example:
Router(config-if)# ip address 172.31.232.182 255.255.255.240
|
Sets a primary IP address for an interface.
|
| Step 8 |
ip
nat
inside
Example:
Router(config-if)# ip nat inside
|
Marks the interface as connected to the inside.
|
| Step 9 |
ip vrf forwarding
vrf-name
Example:
Router(config-if)# ip vrf forwarding vpn1
|
Associates a VRF with an interface or subinterface.
|
| Step 10 |
exit
Example:
|
Exits interface configuration mode and returns to global configuration mode.
|
| Step 11 |
interface
type
number
Example:
Router(config)# interface gigabitethernet 0/0/0
|
Specifies a different interface and enters interface configuration mode.
|
| Step 12 |
ip
address
ip-address
mask
Example:
Router(config-if)# ip address 172.31.232.182 255.255.255.240
|
Sets a primary IP address for an interface.
|
| Step 13 |
ip
nat
outside
Example:
Router(config-if)# ip nat outside
|
Marks the interface as connected to the outside.
| Note
| NAT outside rules support the match-in-VRF functionality by default.
|
|
| Step 14 |
ip vrf forwarding
vrf-name
Example:
Router(config-if)# ip vrf forwarding vpn1
|
Associates a VRF with an interface or subinterface.
|
| Step 15 |
end
Example:
|
Exits interface configuration mode and returns to global configuration mode.
|