Both sides previous revision Previous revision Next revision | Previous revision |
linux_router:ppp [2020-09-20 Sun wk38 10:08] – [Set up PPPoE] baumkp | linux_router:ppp [2023-04-30 Sun wk17 17:43] (current) – external edit 127.0.0.1 |
---|
{{tag>linux router ppoe ppoed mtu dns dhcp}} | {{tag>linux router pppoe pppoed ISP mtu dns dhcp}} |
=====Ubuntu PPPoE Network Setup===== | =====ISP PPPoE Network Setup===== |
| |
A reasonably comprehensive discussion on Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=2341699|Setup Ubuntu Server as a router using a PPPoE connection]], [[https://samuel.kadolph.com/2015/02/mtu-and-tcp-mss-when-using-pppoe-2/|MTU and TCP MSS when using PPPoE]]. Also from Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=872346|How to Optimize your Internet Connection using MTU and RWIN]]. Ubuntu documentation [[https://help.ubuntu.com/community/ADSLPPPoE|ADSLPPPoE. PPPD manual page]]. | A reasonably comprehensive discussion on Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=2341699|Setup Ubuntu Server as a router using a PPPoE connection]], [[https://samuel.kadolph.com/2015/02/mtu-and-tcp-mss-when-using-pppoe-2/|MTU and TCP MSS when using PPPoE]]. Also from Ubuntu forums [[https://ubuntuforums.org/showthread.php?t=872346|How to Optimize your Internet Connection using MTU and RWIN]]. Ubuntu documentation [[https://help.ubuntu.com/community/ADSLPPPoE|ADSLPPPoE. PPPD manual page]]. |
| |
Another reference is Confirm Blog [[https://blog.confirm.ch/using-pppoe-on-linux/|Using PPPoE on Linux]]. | Another reference is Confirm Blog [[https://blog.confirm.ch/using-pppoe-on-linux/|Using PPPoE on Linux]]. |
| |
| Some other references: |
| * [[https://scarff.id.au/blog/2019/nbn-hfc-with-a-linux-router/|Connecting to NBN HFC with a linux router] Internode router set up notes]] |
| * [[https://scarff.id.au/blog/2021/internode-ipv6-on-linux-with-systemd-networkd/|Internode IPv6 on Linux with systemd-networkd]] |
====Install Software==== | ====Install Software==== |
| |
Install the DNS, DHCP, and PPPoE software: "sudo apt install bind9 isc-dhcp-server pppoeconf" | Install the DNS, DHCP, and PPPoE software: ''sudo apt install bind9 isc-dhcp-server pppoeconf'' |
| |
Disable and stop the DNS [bind9] and DHCP [isc-dhcp-server, isc-dhcp-server6] software for the moment and configure later. | Disable and stop the DNS [bind9] and DHCP [isc-dhcp-server, isc-dhcp-server6] software for the moment and configure later. |
WantedBy=sys-subsystem-net-devices-eno1.device | WantedBy=sys-subsystem-net-devices-eno1.device |
</code> | </code> |
| |
| Use ''sudo systemctl daemon-reload'' to update systemd for new service. Then ''sudo systemd disable pppoe'' to disable this service from activating at system startup. We will enable later, once configuration is more complete. |
| |
| To check log files use: ''sudo systemctl status pppoe'' or ''journalctl -u pppoe -b 0 -xe''; ''-b 0'' sees last boot, ''-xe'' sees end of file, ''-f'' to list the end of the file. Also remember to turn on / off the debug option in ''sudo vim /etc/ppp/peers/mynetfone''. The debug information helped me debug problems with my ISP. |
| |
| There were some concerns about pppd not being fully compatible with Netplan. Hence the attempt to manually set up wan/eno1 interface with an ''ip link set'' instruction in the pppoe.service script. The ''ip'' command is compatible with Netplan. |
| |
I played with the following options in the pppoe.service script: | I played with the following options in the pppoe.service script: |
<code> | <code> |
ExecStartPre=/sbin/ip route add 192.168.5.0/24 via 192.168.5.1 dev eno1 | ExecStartPre=/sbin/ip route add 192.168.5.0/24 via 192.168.5.1 dev eno1 |
</code> | </code> |
There were some concerns about pppd not being fully compatible with Netplan. Hence the attempt to manually set up wan/eno1 interface with an ''ip link set'' instruction in the pppoe.service script. The ''ip'' command is compatible with Netplan. | |
| |
<fs smaller>A reference to this problem and proposed solution can be see at [[https://askubuntu.com/questions/987982/how-do-i-use-netplan-to-configure-pppoe|How do I use Netplan to configure PPPoE]]? Actually, I believe the premiss that pppd is not compatible with netplan is incorrect as I managed to use so.</fs> | <fs smaller>A reference to this problem and proposed solution can be see at [[https://askubuntu.com/questions/987982/how-do-i-use-netplan-to-configure-pppoe|How do I use Netplan to configure PPPoE]]? Actually, I believe the premiss that pppd is not compatible with netplan is incorrect as I managed to use so.</fs> |
| |
Use ''sudo systemctl daemon-reload'' to update systemd for new service. Then ''sudo systemd disable pppoe'' to disable this service from activating at system startup. We will enable later, once configuration is more complete. | |
| |
To check log files use: ''sudo systemctl status pppoe'' or ''journalctl -u pppoe -b 0 -xe''; ''-b 0'' sees last boot, ''-xe'' sees end of file, ''-f'' to list the end of the file. Also remember to turn on / off the debug option in ''sudo vim /etc/ppp/peers/mynetfone''. The debug information helped me debug problems with my ISP. | |
=====System Forwarding Enable===== | =====System Forwarding Enable===== |
| |
To see all system variables concerning network: ''sysctl -a | grep network'' | To see all system variables concerning network: ''sysctl -a | grep network'' |
| |
<- linux_router:network|Prev page ^ linux_router:start|Start page ^ linux_router:DNS_DHCP|Next page -> | <- linux_router:network|Prev page ^ linux_router:start|Start page ^ linux_router:ipoe|Next page -> |
| |