0

I'm trying to configure networking on a new Ubuntu 18.04 install.

I have 4 interfaces to different networks: 192.168.10.0/24, 192.168.20.0/24, 192.168.30.0/24, 192.168.40.0/24 with the first being the primary.

I've configured my Netplan as per the following example but when I apply I can no longer SSH into the server.

Example I tried to follow: https://netplan.io/examples#configuring-source-routing

My Netplan:

    network:
      version: 2
      renderer: networkd
      ethernets:
        ens160:
          addresses:
           - 192.168.10.6/24
          dhcp4: no
          gateway4: 192.168.10.1
          routes:
           - to: 192.168.10.0/24
             via: 192.168.10.1
             table: 101
          routing-policy:
           - from: 192.168.10.0/24
             table: 101
          nameservers:
             search: [local.lan]
             addresses: [192.168.10.1]

        ens192:
          addresses:
           - 192.168.20.10/24
          dhcp4: no
          routes:
           - to: 192.168.20.0/24
             via: 192.168.20.1
             table: 102
          routing-policy:
            - from: 192.168.20.0/24
              table: 102

        ens224:
          addresses:
           - 192.168.30.10/24
          dhcp4: no
          routes:
           - to: 192.168.30.0/24
             via: 192.168.30.1
             table: 103
          routing-policy:
            - from: 192.168.30.0/24
              table: 103

        ens256:
          addresses:
           - 192.168.40.10/24
          dhcp4: no
          routes:
           - to: 192.168.40.0/24
             via: 192.168.40.1
             table: 104
          routing-policy:
            - from: 192.168.40.0/24
              table: 104
  • things that will help us help you troubleshooting this: - source IP and network that you're ssh'ing from; - any packet captures (e.g. tcpdump output) showing port 22 traffic on the interface – slangasek Aug 15 at 17:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.