linux_router:ppp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux_router:ppp [2021-01-24 Sun wk03 08:39] – [PPPoE Startup] baumkplinux_router:ppp [2022-05-14 Sat wk19 17:14] – [ISP PPPoE Network Setup] baumkp
Line 1: Line 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====
  
Line 103: Line 107:
 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>
Line 111: Line 122:
 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>
- 
-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. 
  
 <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>
Line 129: Line 135:
 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 ->
  
  • /app/www/public/data/pages/linux_router/ppp.txt
  • Last modified: 2023-04-30 Sun wk17 17:43
  • by 127.0.0.1