Skip to content

5. Network Configuration

Chad McCue edited this page Feb 22, 2020 · 35 revisions

McDebian Network Configuration

McDebian uses the below services to provide IPv4 and IPv6 connectivity:

network.service
isc-dhcp-client
isc-dhcp-server
radvd
pppd

McDebian Network Configuration Files

/etc/sysctl.conf
/etc/rc.local
/etc/network/interfaces
/etc/hostapd
/etc/dhcp
/etc/ppp

McDebian Network Base Configuration

WAN\Internet Port: IPv4 DHCP, IPv6 DHCP, IPv6 DHCP-PD

LAN:

  • IPv4 192.168.1.1
  • IPv6 fc00::1
LAN IPv4 DHCP:
domain-name "mcdebian.local";
domain-name-servers 8.8.8.8, 8.8.4.4;
range 192.168.1.100 192.168.1.200;
default-lease-time 600;
max-lease-time 7200;

LAN IPv6 DHCP:
dhcp6.domain-search "mcdebian.local";
dhcp6.name-servers 2001:4860:4860::8888,2001:4860:4860::8844;
subnet6 fc00::/64
range6 fc00::64 fc00::ff;

Configuration for a PPPOE Internet Connection

Change the Firewall to work with the pppoe interface:

sed -i s/wan/ppp0/g /etc/iptables.up.rules
sed -i s/wan/ppp0/g /etc/ip6tables.up.rules

Use pppoeconf command to build the pppoe configuration files. I recommend answering yes to all pppoeconf configuration questions.

pppoeconf wan

Reboot the router:

reboot

IPv6

To enable IPv6 you need to enable radvd:

systemctl enable radvd

Then uncomment the IPv6 config lines in:

vim /etc/default/isc-dhcp-server

After that reboot the router.

Additional Documentation: