Networking

So i have a question, my internet is connected with a modem that is set in bridge mode to a router that is connected to my computer and also gives WiFi.

The default gateway of the devices is the IP of my router, 192.168.0.1 but the default gateway of my router is 190.17.240.1 and since it's a public IP adress it means that the router sends directly the IP package to the ISP router instead of sending them to the modem gateway and then the modem send it to the ISP. Right?

No bully pls.

Attached: 999999.jpg (471x417, 28K)

A router has two IP addresses, OP. Not certain what you're asking but there will be an external interface that is connected to your modem where it has the IP from your ISP (your modem just passes shit straight to the router) and the internal address for your home network. Your router's default gateway is your ISP's router. Machines on your home network's default gateway will be the internal IP of your router

Not your personal tech support.

>personal tech support
OP clearly needs help with his homework, not diagnosing an actual issue.

Oh i didn't know this, so the ISP works kinda like a local network too right? Thanks


Are you retarded? Im not trying to fix anything.

Your router has an IP packet it wishes to send to Jow Forums. It checks its routing table for the appropriate gateway and sees that it must send this packet to your ISP's router.

To accomplish this, your router looks up the ISP's router's IP in its ARP table and gets its MAC address. It then sends the packet with a layer-3 destination IP address of Jow Forums, but a layer-2 destination MAC address of your ISP's router. It transmits this packet on the wire.

Your modem, in bridge mode, receives this packet. It decodes the destination MAC address of the packet and sees that it is addressed to your ISP's router. It looks up this MAC address in its bridge table and sees the ISP's router is on the WAN port. It transmits the packet on its WAN port. It never decodes the packet on a layer 3 level and does not consider any IP addresses when deciding what to do.

Your ISP's router receives the packet, decodes the layer 2 destination MAC, and sees that the packet is addressed to itself. It unwraps the layer 3 packet wrapped inside the layer 2 packet and decodes the destination IP address, which is Jow Forums. It consults its routing table and the cycle begins again.

Attached: coddle.jpg (500x500, 57K)

I bet the router would kill itself if it saw what was inside the packets it was routing

Sorry for being retarded but to make it clear, the modem does not delete the source MAC adress of package to input his own MAC adress? it just looks and sends it like that? and then when it returns the ISP sends it again to the MAC adress of the router instead of the modem's MAC ID right?

Look up CCNA. Study for it.

If you want to learn these things, get a router that supports netflow, like a Mikrotik, hook up Wireshark on your PC to it, and inspect the packets going in and out of it.