linux_router:ipoe

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
linux_router:ipoe [2021-07-10 Sat wk27 05:03] baumkplinux_router:ipoe [2023-04-30 Sun wk17 17:43] (current) – external edit 127.0.0.1
Line 1: Line 1:
-{{tag>linux router ISP IPoE mtu dns dhcp}} +{{tag>linux router bridged modem ISP IPoE mtu dns dhcp}} 
- =====ISP IPoE DHCP Setup Notes=====+=====ISP IPoE DHCP Setup Notes=====
 Notes on Setting up a Linux router for IPoE DHCP instead of PPPoE. Notes on Setting up a Linux router for IPoE DHCP instead of PPPoE.
  
Line 7: Line 7:
 I investigated this ISP dhcp setup and came up with the other term IPoE.  All a bit strange really, as dhcp is used on most networks to allow automatic configuration of network IP addresses and most IP traffic is over Ethernet.  This needs to be taken in context of ISP access PPPoE versus IPoE using DHCP. I investigated this ISP dhcp setup and came up with the other term IPoE.  All a bit strange really, as dhcp is used on most networks to allow automatic configuration of network IP addresses and most IP traffic is over Ethernet.  This needs to be taken in context of ISP access PPPoE versus IPoE using DHCP.
  
-Thereis not much information on how to make this work.+There is not much information on how to make this work.
  
 I use the RJ45 ethernet interface call eno1.  In my netplan configuration file, ''/etc/netplan/network.yaml'', ++++the following was made:| <code> I use the RJ45 ethernet interface call eno1.  In my netplan configuration file, ''/etc/netplan/network.yaml'', ++++the following was made:| <code>
Line 33: Line 33:
        valid_lft forever preferred_lft forever </code>++++        valid_lft forever preferred_lft forever </code>++++
 So the networkd builtin dhcpd would seem to be functional.  So the networkd builtin dhcpd would seem to be functional. 
-  + 
-===dhclient=== +The ''networkctl status eno1'' 
-The following dhclient commands are used to manual control dhcp connections.  Note however this does not work with the built-in networkd dhcpd functionality. ++++TLDR:| +++++-|<code>2: eno1                                                                       
-  *To remove existing connected dhcp leased connections on eno1: ''sudo dhclient -r eno1''not this also seems to remove static IP addresses.+                     Link File: /usr/lib/systemd/network/99-default.link 
 +                  Network File: /run/systemd/network/10-netplan-eno1.network 
 +                          Type: ether 
 +                         State: routable (configured) 
 +             Alternative Names: enp2s0 
 +                          Path: pci-0000:02:00.0 
 +                        Driver: igb 
 +                        Vendor: Intel Corporation 
 +                         Model: I210 Gigabit Network Connection 
 +                    HW Address: 0c:c4:7a:9f:36:4c (Super Micro Computer, Inc.) 
 +                           MTU: 1500 (min: 68, max: 9216) 
 +                         QDisc: mq 
 +  IPv6 Address Generation Mode: eui64 
 +          Queue Length (Tx/Rx): 8/8 
 +              Auto negotiation: yes 
 +                         Speed: 100Mbps 
 +                        Duplex: full 
 +                          Port: tp 
 +                       Address: 192.168.5.2 
 +                                202.7.254.238 (DHCP4 via 202.7.254.1) 
 +                                fe80::ec4:7aff:fe9f:364c 
 +                       Gateway: 202.7.254.1 (Juniper Networks) 
 +                           DNS: 8.8.8.8 
 +                                8.8.4.4 
 +               DHCP4 Client ID: IAID:0xb6220feb/DUID 
 +             DHCP6 Client DUID: DUID-EN/Vendor:0000ab112278b955a63a0f690000</code>++++ 
 + 
 +====dhclient==== 
 +The following dhclient commands are used to manual control dhcp connections.  Note however this does not work with the built-in systemd-networkd dhcpd functionality (see man systemd-networkd, networkctl and systemd.netdev).  
 +++++tldr:| 
 +  *To remove existing connected dhcp leased connections on eno1: ''sudo dhclient -r eno1'', note this also seems to remove static IP addresses.
   *It is under stop the ''-x'' removes the local dhcp connection, but does not contact the upstream DHCP serve to remove lease, e.g. ''sudo dhclient -x eno1''    *It is under stop the ''-x'' removes the local dhcp connection, but does not contact the upstream DHCP serve to remove lease, e.g. ''sudo dhclient -x eno1'' 
   *To manual request a dhcp lease connection on eno1: ''sudo dhclient -4 eno1'' , the ''-4'' flag restricts operation to IPv4.    *To manual request a dhcp lease connection on eno1: ''sudo dhclient -4 eno1'' , the ''-4'' flag restricts operation to IPv4. 
-++++ 
  
 ===dhclient@.service=== ===dhclient@.service===
-''sudo vim /etc/systemd/system/dhclient@.service'' ++++ dhclient@.service|+ 
 +''sudo vim /etc/systemd/system/dhclient@.service''
 <code> <code>
 [Unit] [Unit]
Line 66: Line 96:
 ++++ ++++
  
-===Firewall Modifications===+====Firewall Modifications====
 When using pppoe a separate device is created that can be used to filter against.  When using IPoE with dhcp same device reference is shared by the IPoE WAN link and the modem LAN web page link.  My modem is setup at 192.168.5.1. The fire wall needs to be modified to consider this shared device instead of separate one. Other than changing the $wan reference from ppp1 to eno1 the postrouting to the modem needs to be made IP range specific. ++++ e.g.| When using pppoe a separate device is created that can be used to filter against.  When using IPoE with dhcp same device reference is shared by the IPoE WAN link and the modem LAN web page link.  My modem is setup at 192.168.5.1. The fire wall needs to be modified to consider this shared device instead of separate one. Other than changing the $wan reference from ppp1 to eno1 the postrouting to the modem needs to be made IP range specific. ++++ e.g.|
 <code> <code>
     ip saddr 192.168.1.0/24 ip daddr 192.168.5.0/24 oifname "eno1" counter packets 68 bytes 4080 snat to 192.168.5.2     ip saddr 192.168.1.0/24 ip daddr 192.168.5.0/24 oifname "eno1" counter packets 68 bytes 4080 snat to 192.168.5.2
     ip saddr 192.168.6.0/24 ip daddr 192.168.5.0/24 oifname "eno1" counter packets 0 bytes 0 snat to 192.168.5.2     ip saddr 192.168.6.0/24 ip daddr 192.168.5.0/24 oifname "eno1" counter packets 0 bytes 0 snat to 192.168.5.2
- +</code> ++++
- +
-</code> +
- +
  
  
  
  < linux_router:ppp|Prev page ^ linux_router:start|Start page ^ linux_router:netfilter|Next page ->  < linux_router:ppp|Prev page ^ linux_router:start|Start page ^ linux_router:netfilter|Next page ->
  • /app/www/public/data/attic/linux_router/ipoe.1625864598.txt.gz
  • Last modified: 2023-04-30 Sun wk17 17:44
  • (external edit)