Possible 01-netcfg.yaml conlicts?

Discussion in 'Installation/Configuration' started by Xase, Sep 19, 2018.

  1. Xase

    Xase Member

    So, I had tried to setup Static IPs, since my router only allows IPv4 Leases it seems,
    The following is my 01-netcfg.yaml file, modified from each server setup to TRY and use Static IPv6
    as well as the eno1 output from ifconfig from each
    The issue is, sometimes the DHCP Lease doesn't take place, and it causes communication issues between my servers.
    I add the extra user for each of the ::7 and the ::9 ending ones during setup... but as I said, the DHCP lease doesn't always seem to take place, so indeed you might ascertain that this could be quite frustrating to a novice.

    Maybe I'm just missing something, or I really should invest in a better router and put my modem/router combo into just modem bridge mode?

    Any suggestions in that case for an inexpensive, and effective router. Possibly one that supports DD-WRT/OpenWRT, or a very exstensive default



    Code:
    cashman@miyagi:~$ cat /etc/netplan/01-netcfg.yaml
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
     version: 2
     renderer: networkd
     ethernets:
       eno1:
         dhcp4: no
         dhcp6: no
         addresses: [192.168.0.26/24, '2607:fcc8:fe90:4600::1/64']
         gateway4: 192.168.0.1
         gateway6: fe80::2a56:5aff:fed6:f912
         nameservers:
           addresses: [1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4]
       eno2:
         dhcp4: yes
         dhcp6: yes
         addresses: []
         gateway4: 192.168.0.1
         gateway6: fe80::2a56:5aff:fed6:f912
         nameservers:
           addresses: [1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4]
         optional: true
    
    
    Code:
    cashman@miyagi:~$ ifconfig
    eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.0.26  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 2607:fcc8:fe90:4600:222:19ff:fe20:980f  prefixlen 64  scopeid 0x0<global>
            inet6 2607:fcc8:fe90:4600::1  prefixlen 64  scopeid 0x0<global> <<<--- Static IP from 01-netcfg.yaml
            inet6 2607:fcc8:fe90:4600::7  prefixlen 128  scopeid 0x0<global> <<<--- DHCP assigned
            inet6 fe80::222:19ff:fe20:980f  prefixlen 64  scopeid 0x20<link>
            ether 00:22:19:20:98:0f  txqueuelen 1000  (Ethernet)
            RX packets 202780  bytes 46396065 (46.3 MB)
            RX errors 0  dropped 137  overruns 0  frame 0
            TX packets 216401  bytes 42154889 (42.1 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    Code:
    cashman@daniel-san:~$ cat /etc/netplan/01-netcfg.yaml
    # This file describes the network interfaces available on your system
    # For more information, see netplan(5).
    network:
     version: 2
     renderer: networkd
     ethernets:
       eno1:
         dhcp4: no
         dhcp6: no
         addresses: [192.168.0.27/24, '2607:fcc8:fe90:4600::2/64']
         gateway4: 192.168.0.1
         gateway6: fe80::2a56:5aff:fed6:f912
         nameservers:
           addresses: [1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4]
       eno2:
         dhcp4: yes
         dhcp6: yes
         addresses: []
         gateway4: 192.168.0.1
         gateway6: fe80::2a56:5aff:fed6:f912
         nameservers:
           addresses: [1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4]
         optional: true
    
    Code:
    cashman@daniel-san:~$ ifconfig
    eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.0.27  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::221:9bff:fe8c:389a  prefixlen 64  scopeid 0x20<link>
            inet6 2607:fcc8:fe90:4600::2  prefixlen 64  scopeid 0x0<global> <<<--- static IP from 01-netcfg.yaml
            inet6 2607:fcc8:fe90:4600::9  prefixlen 128  scopeid 0x0<global> <<<--- DHCP Lease
            inet6 2607:fcc8:fe90:4600:221:9bff:fe8c:389a  prefixlen 64  scopeid 0x0<global>
            ether 00:21:9b:8c:38:9a  txqueuelen 1000  (Ethernet)
            RX packets 19740  bytes 12890425 (12.8 MB)
            RX errors 0  dropped 137  overruns 0  frame 0
            TX packets 41754  bytes 3633093 (3.6 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
     

Share This Page