Skip to content

5. Network Configuration

Chad McCue edited this page Apr 24, 2017 · 35 revisions

McDebian Network Configuration

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

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

McDebian Network Configuration Files

/etc/sysctl.conf
/etc/rc.local
/etc/network/interfaces
/etc/hostapd
/etc/dhcp
/etc/systemd/system/debbler-client.sevice
/etc/dibbler
/etc/ppp

McDebian Network Base Configuration

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

LAN Port: IP Address 192.168.1.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:
ISP Prefix Delegation or SLAAC

Configuration for a PPPOE Internet Connection

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

pppoeconf

Enable IPv6 on the pppoe connection:

systemctl enable dibbler-server
echo "+ipv6 ipv6cp-use-ipaddr" >> /etc/ppp/options

echo "net.ipv6.conf.ppp0.accept_ra=2" >> /etc/sysctl.conf
echo "net.ipv6.conf.ppp0.autoconf=0" >> /etc/sysctl.conf

echo '#!/bin/sh' >> /etc/ppp/ip-up.d/1dibbler-client-restart
echo "systemctl restart dibbler-client" >> /etc/ppp/ip-up.d/1dibbler-client-restart
chmod +x /etc/ppp/ip-up.d/1dibbler-client-restart
sed -i s/eth0/ppp0/g /etc/dibbler/client.conf

Disable DHCP and Accepting IPv6 Router Advertisements on the eth0 Internet interface:

sed -i "s/iface eth0 inet dhcp/iface eth0 inet manual/" /etc/network/interfaces
sed -i s/net.ipv6.conf.eth0.accept_ra=2/net.ipv6.conf.eth0.accept_ra=0/ /etc/sysctl.conf

Change the Firewall to work with the pppoe interface:

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

Reboot the router:

reboot

Enable IPv6

systemctl enable dibbler-server
echo "iface eth0 inet6 auto" >> /etc/network/interfaces
reboot

Disable IPv6

systemctl disable dibbler-client
reboot

Additional Documentation: