Chapter 39 - Network Address Translation Flashcards

1
Q

What is CIDR?

A
  • Classless Inter Domain Routing
  • A technology that allows an RIR (Regional Internet Registry) to assign any sized subnet to an organisation instead of only being able to assign /8s, /16s, or /24s
  • RFC 4632
  • Defines a method of summarising and aggregating routes to reduce the size of routing tables
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is NAT?

A
  • Network Address Translation
  • Allows hosts that don’t have public addresses to connect to the internet from a private address by presenting the private addresses as this public address.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Static NAT?

A
  • A form of NAT that maps a specific private address to present out as a specific public address
  • Also known as one-to-one NAT
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are Private and Public addresses also known as by Cisco?

A
  • Private - Inside Local
  • Public - Inside Global
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Outside NAT?

A
  • Used in Destination NAT
  • The Outside Global address is also used in source NAT. It is the side of the NAT translation that is outside the organisation (e.g. the recipient of the NAT’d traffic would be considered outside). NAT never changes this in source NAT.
  • The Outside Local address is the outside host’s address from the perspective of the inside host. This will always be the same as the Outside Global address since the inside host isn’t aware of the outside network’s LAN. Unless Dst NAT is used.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Inside NAT?

A
  • Used in Source NAT
  • Inside refers to the location of the sending host from the organisation’s perspective. It is inside the organisation.
  • The Inside Global address is the address that the host’s private address is represented by when outside the organisation’s network. It is the public address.
  • The Inside Local address is the address that the host is represented by when inside the organisation’s network. It is the private address.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Dynamic NAT?

A
  • Similar to Static NAT (still one to one mapping) but this is not statically defined. Rather there will be a pool of inside global addresses that the router will choose to NAT inside local addresses to depending on the criteria.
  • When the first packet hits the NAT device it checks configured rules to see what should be NAT’d.
  • If the packet should be NAT’d, an entry is added to the device’s NAT table with the inside local address and corresponding inside global address it is being NAT’d to.
  • The entry will remain in the table until the timeout elapses.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What command can you use to clear the NAT table of dynamic entries?

A

‘clear ip nat translation *’

  • This will not clear static entries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens if there are no inside global addresses to NAT inside local addresses to?

A

The incoming packet will be dropped and will not be NAT’d

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

What is PAT?

A
  • Port Address Translation
  • Also known as NAT Overload
  • Allows for TCP/UDP port translation as well as IP address translation meaning that a single inside global address can send connections from different inside local addresses using different ephemeral port numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What commands do you use to configure Static NAT mappings?

A

To create the mapping
- ‘ip nat inside source static <inside> <inside>' from global config</inside></inside>

To set an interface as inside the organisation
- ‘ip nat inside’ from interface config

To set an interface as outside the organisation
- ‘ip nat outside’ from interface config

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

What information will the ‘show ip nat translations’ command show you?

A

Active translations

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

What information will the ‘show ip nat statistics’ command show you?

A
  • Outside interfaces
  • Inside interfaces
  • Expired mappings
  • Hits - The number of packets that have had their address translated
  • misses - The number of packets that have entered the NAT process that don’t already have an entry in the NAT table. One will be added.
  • Misses (under Dynamic Mappings) - The number of packets that have met the requirements to be NAT’d but have not been as there are no addresses free.
  • Allocated - The amount of dynamic addresses that have been assigned from a pool
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What commands do you use to configure Dynamic NAT? What other command is used to configured Dynamic PAT?

A

To configure an ACL that the device can use to know what inside local addresses to NAT
- ‘access-list <number> <permit/deny> <IP>' from global config</IP></number>

To set an interface as inside the organisation
- ‘ip nat inside’ from interface config

To set an interface as outside the organisation
- ‘ip nat outside’ from interface config

To define a pool of inside global addresses that can be translated to
- ‘ip nat pool <pool> <first> <last> netmask <subnet>' from global config</subnet></last></first></pool>

To ensure the ACL addresses are NAT’d to the pool addresses and finish the configuration. To change this to Dynamic PAT just add the word ‘overload’ at the end of the command.
- ‘ip nat inside source list <acl> pool <pool>' from global config</pool></acl>

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

What commands do you use to configure Static PAT?

A

To configure an ACL that the device can use to know what inside local addresses to NAT
- ‘access-list <number> <permit/deny> <IP>' from global config</IP></number>

To set an interface as inside the organisation
- ‘ip nat inside’ from interface config

To set an interface as outside the organisation
- ‘ip nat outside’ from interface config

To ensure the ACL addresses are NAT’d to an interface’s IP address
- ‘ip nat inside source list <acl> interface <interface> overload</interface></acl>

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

Things to check when troubleshooting NAT issues

A
  • Incorrect inside and outside interfaces
  • Addresses wrong way round in the ‘ip nat inside source static <inside> <inside>' command when configuring Static NAT</inside></inside>
  • Ensure that the ACL for Dynamic NAT matches the correct inside local addresses
  • Ensure that the pool for Dynamic NAT matches the correct inside global addresses and the netmask and range in the ‘ip nat pool <pool> <first> <last> netmask <subnet>' command match.</subnet></last></first></pool>
  • Ensure that when intending to use PAT, the ‘overload’ keyword is added
  • Check there are no ACLs filtering packets. Packets entering a router are run through ACLs before NAT. Packets leaving a router they are run through NAT before outbound ACLs.
  • Ensure routing is correct to match the destination of the packet at either end of the connection
  • Ensure that user traffic matches the NAT parameters
17
Q

What will happen if you attempt to statically map an multiple inside local addresses to a single inside global address?

A

The original inside local address will remain in the NAT Table and any following commands will be rejected.

18
Q

What will happen if an ACL is used in Dynamic NAT that denies a packet that has been received by a NAT device?

A

The packet will not be NAT’d. It will also not be dropped.

19
Q

What is NAT Pool Exhaustion?

A

This occurs in Dynamic NAT when there are not enough inside global addresses to be assigned one to one to inside local addresses

20
Q

True or False. Static NAT mappings are permanent and will not be timed out from the NAT Table.

A

True.

21
Q

How long does it take for Dynamic NAT entries to timeout?

A

24 hours.