NAT Flashcards

1
Q

NAT Types: Static

A

Permanent 1:1 mapping usually between public/private IP

Used for servers which must accept incoming connections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

NAT Types: Dynamic

A

Uses a pool of public addresses which are given out on an as needed first come first served basis

Usually used for internal hosts which need to connect to the internet but do not accept incoming connections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

NAT Types: PAT

A

Port Address Translation:

Allows the same public IP address to be reused

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command: Configure Static NAT (F0/0 = Outside | F1/0 = Inside)
Inside Address: 10.0.1.10
Outside Address: 203.0.113.3

A

interface f0/0
ip nat outside

interface f1/0
ip nat inside

(From global config):
ip nat inside source static 10.0.1.10 203.0.113.3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Command: Verify NAT Translations

A

show ip nat translation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Inside Local

A

The IP address actually configured on the inside host’s OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Inside Global

A

The NAT’d address of the inside host as it will be reached by the outside network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Outside Local

A

The IP address of the outside host as it appears to the inside network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Outside Global

A

The IP address assigned to the host on the outside network by the host’s owner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Outside Local vs. Outside Global

A

For one way NAT, the Outside Local & Global addresses will be reported as being the same

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Command: Configure Dynamic NAT (F0/0 = Outside | F2/0 = Inside)
Pool Range: 203.0.113.4 to 203.0.113.14 in a /28 network
Internal IPs to Translate: 10.0.2.0/24

A

Int f0/0
Ip nat outside

Int f2/0
Ip nat inside

Ip nat pool Flackbox 203.0.113.4 203.0.113.14 netmask 255.255.255.240
–Configure the pool of global addresses

Access-list 1 permit 10.0.2.0 0.0.0.255
–Create an ACL which references the internal IPs we want to translate

Ip nat inside source list 1 pool Flackbox
–Associate the access list with the NAT pool to complete the configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Command: Clear NAT Translations

A

clear ip nat translation *

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Command: Show how many addresses that have been translated

A

show ip nat statistics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Command: Show live NAT changes

A

debug ip nat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

PAT Overview

A

PAT is an extension to NAT that permits multiple devices to be mapped to a single IP

With PAT you don’t need a public IP for every single host

The router tracks translations by IP & port number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Dynamic NAT with Overload

A

Uses PAT to allow more clients to be translated than IP addresses are available in the NAT pool

17
Q

Command: Configure Dynamic NAT with Overload (F0/0 = Outside | F2/0 = Inside)
Pool: 203.0.113.4 to 203.0.113.6 /28
Internal IPs to Translate: 10.0.2.0/24

A

Int f0/0
Ip nat outside

Int f2/0
Ip nat inside

Ip nat pool Flackbox 203.0.113.4 203.0.113.6 netmask 255.255.255.240

Access-list 1 permit 10.0.2.0 0.0.0.255

Ip nat inside source list 1 pool Flackbox overload
–All same commands as dynamic NAT except add “overload”

18
Q

Command: Configure PAT with a Single IP (F0/0 = Outside | F1/0 = Inside)
Internal IPs to Translate: 10.0.2.0/24

A

Int f0/0
Ip address dhcp
Ip nat outside

Int f1/0
Ip nat inside

Access-list 1 permit 10.0.2.0 0.0.0.255

Ip nat inside source list 1 interface f0/0 overload