Nat Pat DHCP
Nat Pat DHCP
1 – Scaling IP Addresses
NAT/PAT and DHCP
12 bits in common
10101100 . 00010000 . 00000000 . 00000000 – 172.16.0.0
10101100 . 00011111 . 11111111 . 11111111 – 172.31.255.255
-------------------------------------------------------------
10101100 . 00010000 . 00000000 . 00000000 – 172.16.0.0/12
1 2
DA SA DA SA
IP Header IP Header
1 2
• The translation from Private source IP address to Public source IP
address.
Rick Graziani [email protected] 7
NAT Example
1 2
4 3
DA SA DA SA
4 IP Header 3 IP Header
NAT/PAT table
maintains translation
of:
DA, SA, SP
DA SA DP SP DA SA DP SP
DA SA DP SP DA SA DP SP
DA SA DP SP DA SA DP SP
DA SA DP SP DA SA DP SP
DA SA DP SP DA SA DP SP
Translate to these
outside addresses
Start
here
Source IP address
must match here
This is a different
example, using the IP
address of the outside
interface instead
specifying an IP
address
• NAT also forces some applications that use IP addressing to stop functioning because it
hides end-to-end IP addresses.
• Applications that use physical addresses instead of a qualified domain name will not
reach destinations that are translated across the NAT router.
• Sometimes, this problem can be avoided by implementing static NAT mappings.
• DHCP options
Broadcast Unicast
To configure RTA e0, the interface that receives the Host A broadcasts, to
relay DHCP broadcasts as a unicast to the DHCP server, use the
following commands:
RTA(config)#interface e0
RTA(config-if)#ip helper-address 172.24.1.9
Rick Graziani [email protected] 36
Configuring IP helper addresses
Broadcast Unicast
Helper address configuration that relays broadcasts to all servers on the
segment.
RTA(config)#interface e0
RTA(config-if)#ip helper-address 172.24.1.255
But will RTA forward the broadcast?
Rick Graziani [email protected] 37
Directed Broadcast
• Notice that the RTA interface e3, which connects to the server farm, is not
configured with helper addresses.
• However, the output shows that for this interface, directed broadcast
forwarding is disabled.
• This means that the router will not convert the logical broadcast 172.24.1.255
into a physical broadcast with a Layer 2 address of FF-FF-FF-FF-FF-FF.
• To allow all the nodes in the server farm to receive the broadcasts at Layer 2,
e3 will need to be configured to forward directed broadcasts with the following
command:
RTA(config)#interface e3
RTA(config-if)#ip
Rick Graziani [email protected]
directed-broadcast 38
Configuring IP helper addresses
L3 Broadcast L2 Broadcast