ELI5 - Bridgemode, NAT and DHCP

Unsolved

I feel like no matter how much I google these individulally I am just getting more and more confused. :/

If this is the wrong place to ask this can someone please redirect me? Thanks

Posted Jan 27, 2022, 3:33 PM UTC

18
certuna•

OK, you are five:

Bridge mode: Your family home has a mailbox outside with your address. All letters coming to that address automatically slide into a second mailbox connected directly to it. The first mailbox is in bridge mode, aka “dumb passthrough”.

DHCP: Your mom hands out little signs to all kids that ask for it, to put on their doors: “Bedroom #1”, “Bedroom #2”, etc. She also says “if anyone wants to know grandma’s address, ask your dad or me” and “give all outgoing mail to me”.

(= a DHCP server hands out IP addresses to devices, advertises one or more DNS servers and a default gateway)

NAT (outgoing traffic): you want to communicate with grandma, you’ve already asked your dad what her address is. You have no idea what your own home address is, you’re only five! But you do know your room number, so when you write a letter to grandma, you write on the back of the envelope: “from: Bedroom #2”, and give it to your mom. Before sending it out, your mom scratches that out, and replaces it with your home address, and makes a mental note: “grandma’s reply should go to Bedroom #2”

NAT (incoming traffic): a letter arrives, addressed to your home address! Your mom, who opens the mailbox, takes the envelope, scratches out the “To:” address, replaces it with “Bedroom #2”, and slides it under your door.

(= the router translates all incoming and outgoing packages from one shared public IP address to the private IP addresses of devices behind it, keeping a table of which connection goes where)

8
[deleted]•

[deleted]

1
certuna•

Generally this is done when the first one is a combined DSL/cable modem + router (usually ISP-supplied so quite restricted in terms of features/options) and the second one is just a router (but with the features you like).

1
Yo_2T•
  • NAT - Network Address Translation - Basically your router maintains a sort of address book where it maps out where all your devices are internally, so it knows how to direct traffic. This is useful in ipv4 because you only get 1 external IP. So to the outside world, all your devices appear to come from just 1 source.

You can think of it as a 1-to-many relationship, or a company. There are many employees behind the company, but to you who's not an employee, you only see the company.

  • DHCP - Dynamic Host Configuration Protocol - This supplements the NAT stuff above. Say you have a new device, it will ask the DHCP server "hey, can I get an IP", DHCP server goes "sure, let me check for one not currently used to give you". It's automatic and saves you the time assigning the IP yourself.

DHCP is often run by default with NAT, but it's not a requirement. You can turn it off, you'll just have to do the IP assignments (and avoid collision) yourself.

  • Bridge Mode - This one is a little confusing cuz it's usually a catch-all terms for different use cases. The short version is it makes whatever device you have it in a middleman who doesn't care about the traffic rule. It only hands things from one end to the other.
1
[deleted]•

[deleted]

1
Yo_2T•

WAN stands for Wide Area Network. On a router it basically marks the port that you'd use to connect to the internet. It's like the outside door, vs LAN ports being your interior room doors.

EWAN i haven't seen that often, but most likely it is just Ethernet WAN. Some devices have multiple WAN interfaces, like RJ11 DSL WAN, Coax WAN. So the manufacturer probably just marked the ethernet WAN that way to call out that "hey, you can also use this as your WAN interface if you need to".

1
[deleted]•

[deleted]

2
[deleted]•

[deleted]

1
Yo_2T•

It's mostly applicable to modem-router combo units.

Sometimes you don't want it to handle the routing, but you still need it to handle to modem part, so it's being the medium between different protocols (say, DOCSIS on coax <-> ethernet, or DSL <-> ethernet). That's when people give it the name bridge mode. It's bridging between different protocols/media.

1
[deleted]•

[deleted]

2
Yo_2T•

Yeah basically.

1
Demands-Proof•

DHCP: "You don't have to manually assign IP addresses to your devices. Let me do it for you!"

NAT: "Speaking of IP addresses, there aren't enough to go around. Let me take that 1 public address your ISP gave you, and "split it up" into many private ones for your devices."

Bridged Mode: "I'm going to quit doing all that fancy routing/NAT/firewall/DHCP nonsense, and essentially turn myself into an empty toilet-paper tube. My job is now to connect two networks together (one on each side of the"tube").

1