Configuring a static IP address generates a netplan file without a gateway

Bug #1634540 reported by Tony Espy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nplan (Ubuntu)
Invalid
Critical
Martin Pitt
subiquity (Ubuntu)
Fix Released
Critical
Unassigned

Bug Description

Configuring a static IP address for an ethernet device on an Ubuntu Core 16 system generates a netplan file without a gateway specified, thus the console-conf WaitDefaultRouteTask eventually times out. Here's the netplan file generated:

network:
  ethernets:
    eth0:
      addresses:
      - 10.155.114.58/21
    eth1:
      addresses: []
  version: 2

Steps to reproduce:

1. Run console conf
2. Select ethernet interface
3. Configure a static IP address

Subnet: 10.155.112.0/21
Address: 10.155.114.58
Gateway: 10.155.112.1

Expected Results:
System come online with specified static IP address and gateway.

Actual Results:
Console-conf time out error is displayed.

Tags: plano-acan
Simon Fels (morphis)
Changed in subiquity (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Steve Langasek (vorlon) wrote :

I understand this is also blocked on having the necessary support in netplan.

Changed in nplan (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

You can specify the gateway in netplan files, right next to "addresses:", with "gateway4:" and "gateway6:" (see man netplan). What's missing?

Changed in nplan (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

You're quite right, I was getting confused with https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/1626617 ("console-conf does not allow to set up dns for static ip") which is going to be the next problem in this thread one presumes (you can't create an account from the store without working dns...).

Changed in nplan (Ubuntu):
status: Incomplete → Invalid
Changed in subiquity (Ubuntu):
status: New → Fix Committed
Simon Fels (morphis)
tags: added: plano-acan
Changed in subiquity (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.