The original post: /r/ubuntu by /u/holysbit on 2024-11-15 16:46:01.

Good morning all.

I have my subnet: aaa.bbb.24.xxx, where aaa.bbb.24.1 is the gateway, connected to the internet.

I have my laptop (windows 10) at aaa.bbb.24.2, and my server at aaa.bbb.24.5. My laptop and my server can both ping each other.

My laptop can also ping the gateway, which my server cannot.

I have tried creating a new netplan config yaml file:

network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: no
      addresses:
        - aaa.bbb.24.5/24
      routes:
        - to: default
          via: aaa.bbb.24.1
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]

But when I try to apply this netplan I get errors about conflicting IPv4 route declarations.

Does anyone have any advice? When I installed ubuntu for the first time on this box I set it up without any network connection at all, but then after that I set the IP using the ip commands

Right now this is my output from ip a:

2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether aa:aa:aa:aa:aa:aa brd ff:ff:ff:ff:ff:ff
    altname enp1s0
    inet aaa.bbb.24.5/24 brd aaa.bbb.24.255 scope global eno1
       valid_lft forever preferred_lft forever
    inet6 aaaa::bbbb:cccc:dddd:eeee/64 scope link
       valid_lft forever preferred_lft forever