-
Notifications
You must be signed in to change notification settings - Fork 14
5. 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
/etc/sysctl.conf
/etc/rc.local
/etc/network/interfaces
/etc/hostapd
/etc/dhcp
/etc/systemd/system/debbler-client.sevice
/etc/dibbler
/etc/ppp
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
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:
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
##Network Troubleshooting
###DNS is not resolving on the router
The below command will list the DHCP Servers the router received via DHCP from the ISP:
cat /etc/resolv.conf
If this doesn't list the DNS Servers you are expecting you can reconfigure Debian's Dynamic DNS service:
rm /etc/resolv.conf
dpkg-reconfigure resolvconf
reboot