>      addresses: [ 95.216.96.148/26 ]
>      gateway4: 95.216.96.129

here you are configuring your default gateway as 95.216.96.129; all
traffic outside your "subnet" will be routed to it.

>     - to: 95.216.96.128/26
>       via: 95.216.96.129
>       on-link: true

now, you're trying to say that you can't actually reach anything in your
/26 "subnet", so actually, *all* your traffic should be routed to the
gateway.

so what you're doing is actually misconfiguring your network; you're
trying to set up your address with a /26 subnet, but in reality you have
a /32 subnet.  Try this config instead:

  ethernets:
    enp0s31f6:
      addresses: [ 95.216.96.148/32 ]
      nameservers:
          addresses:
              - "8.8.8.8"
              - "1.1.1.1"
      routes:
          - to: 0.0.0.0/0
            via: 95.216.96.129
            on-link: true



** Changed in: systemd (Ubuntu)
       Status: New => Invalid

** Changed in: netplan
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1826459

Title:
  systemd-networkd not installing GatewayOnlink=true

To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/1826459/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to