NAT and Multicast Flashcards
Static NAT
Translates one inside local and one inside global address
R2(config)# ip nat inside source static 10.0.12.1 203.0.113.1
Dynamic NAT
Inside global is dynamically allocated from a pool of global addresses. Sometimes called pooled NAT.
R2(config)# ip nat pool R2dynamicNAT 2.0.0.1 2.0.0.3 netmask 255.255.255.248
R2(config)# access-list 1 permit 7.0.0.0 0.0.0.255
R2(config)# ip nat inside source list 1 pool R2dynamicNAT
NAT overload or PAT
Translates multiple inside local source addresses to a single global address. Also translates the original source port to a different source port
R2(config)# access-list 1 permit 7.0.0.0 0.0.0.255
R2(config)# ip nat inside source list 1 interface gi0/0 overload
PAT with a Global Address Pool
Identical to dynamic NAT, but with the addition of the overload keyword
R2(config)# ip nat inside source list 1 pool R2dynamicNAT overload
Outside Static NAT
Translate an inside local destination ip address of a packet to an outside global address. The add-route keyword creates a static route
R2(config)# ip nat outside source static 10.0.12.1 1.1.1.1 add-route
Describe Multicast
Refers to any form of one-to-many communication.
A multicast IP packet always has a multicast destination address (that’s what makes it a multicast packet), and it may have a TTL of 1. It will never contain a multicast source address.
IP Multicast
IP packet destined to a special multicast ip address. The multicast IP address range is 224.0.0.0/4 which covers 224.0.0.0 through 239.255.255.255
Multicast Address Categories
Local Network Control (224.0.0.0/24). They don’t leave the broadcast domain. OSPF 224.0.0.5, 224.0.0.6 and EIGRP 224.0.0.10 are examples
Internetwork Control Block (224.0.1.0/24). These may be routed over the public internet. Commonly used for stock ticker feeds and streaming video
Administratively Scoped Block (239.0.0.0/8). Used on non-publicly routable networks.
LAN Multicast
A multicast frame is forwarded to many, but not necessarily all hosts in a subnet.
Reserved Mac address range
ipv4 0100.5e00.0000 through 0100.5e7f.ffff
ipv6 3333.0000.0000 through 3333.ffff.ffff
Converting IPv4 Multicast address to a MAC address
Convert last 3 octets to binary
Change the leftmost bit to 0 if it’s not already a 0
Convert each nibble into hex
Prepend 0100.5e
IGMP
Used by routers to coordinate with each other to ensure that routers forward multicast packets only to those hosts that need them.
IGMP membership query is sent every 60 seconds and is addressed to 224.0.0.1 and has a TTL of 1
IGMPv2 is the most common version and used by default
All IGMP versions use IP protocol number 2
When a receiver joins a multicast group, it sends an IGMP Membership Report to the group address.
IGMP Snooping
A switch will sniff IGMP membership reports to determine which ports multicast traffic should be forwarded out of. Enabled on Cisco switches by default
The exception is traffic sent to 224.0.0.0/24 is forwarded to all ports
Multicast Routing
Senders and receivers may not be in the same subnet. Each router must build a multicast IP routing table that links incoming interfaces (source) with outgoing interfaces (receivers)
Protocol Independent Multicast (PIM)
Builds each router’s multicast table. 2 modes are Dense mode and Sparse Mode
PIM routers running in sparse mode use PIM Joins to request traffic for a group, whereas those running in dense mode use Grafts
PIM -DM (Dense Mode)
The router initially floods every multicast packet out of every interface except the interface it was received on. Specified in RFC 3973