At home there is rarely a separate modem, router and switch. The provider supplies a home router (CPE, customer premises equipment) that combines everything:
Part
Task
Modem
access line (cable, fibre, VDSL) to the provider
Router with NAT
all devices appear on the internet under one public address
DHCP server
assigns addresses in the home network (default 192.168.1.100–199)
Switch
four LAN ports in the same network
Setting up
Usually only the WAN address and the provider’s gateway need to be entered. Out of the box the box has 192.168.1.1/24 in the LAN. Port forwarding, DHCP range and routes are under “Advanced …”. With IPv6 the box can tunnel IPv4 through the provider’s IPv6 network using DS-Lite.
What you learn from it
The home router shows that a “router” in everyday life is a bundle of functions. The demo “Internet box (CPE) on cable” takes it apart: line setup, DHCP in the home network, NAT on the WAN.
How to do it in leyoNET
The same text as in the app’s help (F1 key).
Internet box (CPE)
The internet box (CPE, customer premises equipment) is the device the provider installs at home. It combines modem, router, NAT, DHCP server and a small switch:
WAN: access line to the provider (cable, fibre, VDSL … or Ethernet). With an access technology it first sets up the line (Access lines).
LAN 1–4: one shared network, factory default 192.168.1.1/24. Computers get their address via DHCP (192.168.1.100–199).
NAT: all computers appear on the internet with the WAN address (NAT/PAT).
You only enter the WAN address and the provider's gateway. Everything else (DHCP range, port forwarding, routes) is under «Advanced …».
See an example
Internet box (CPE) on cable
Two computers on an internet box with cable modem, NAT and DHCP.
First the box brings up the DOCSIS line, the computers get an address via DHCP, then the notebook loads a web page from the internet.
“Watch live” opens the network in leyoNET, the simulation runs in a loop. In the app you find it under File → Demo networks, with a step-by-step tour.
Practise
★★☆☆☆Connecting the internet box· 2 goals · Worksheet (German)
In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.
Read on
ModemHandles the access line: cable (DOCSIS), fibre (GPON), VDSL, ADSL or mobile – routing happens behind it.
NAT and PATBringing private networks to the internet: port address translation (PAT), port forwarding, static SNAT and DNAT, 1:1 NAT and CGNAT at the provider.
DHCPHanding out addresses automatically: discover, offer, request, ack, lease time, fixed assignments and DHCP relay across routers.