#796·os

Default Route Lost after Network Interface Manual UP/DOWN Event

Author: sjivesonCreated Mar 2, 2016Updated Feb 24, 2023
Labelspriority/p2

Hi,

I've come across an issue where if I use the ip link set eth0 down command, followed by ip link set eth0 up, the default route (gateway) is lost.

The /var/lib/rancher/conf/cloud-config.d/user_config.yml file contains the correct information (changed below for privacy):

rancher:
  network:
    interfaces:
      eth*:
        dhcp: false
      eth0:
        address: 10.11.12.30/24
        gateway: 10.11.12.10
        mtu: 1500
    dns:

Environment details:

$ uname -a
Linux HOSTNAME 4.2.3-rancher #1 SMP Wed Oct 14 11:25:04 UTC 2015 x86_64 GNU/Linux

$ docker version
Client:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   994543b
 Built:        Mon Nov 23 06:08:57 UTC 2015
 OS/Arch:      linux/amd64

Server:
 Version:      1.9.1
 API version:  1.21
 Go version:   go1.4.3
 Git commit:   994543b
 Built:        Mon Nov 23 06:08:57 UTC 2015
 OS/Arch:      linux/amd64