I'm using hosts with two NICs and setup both for using dhcp in cloud-config.yml. Each NIC sets its default route, but I have to disable the gateway for the second NIC.
I tried to define
post_up:
- ip route del default eth1
but this doesn't work. Also tried putting the command in post_cmds
I'm currently disabling dhcp for the second NIC, and assign IPs over cloud-config.yml by MAC address. But I would prefer it, if there would be an option available to disable or prevent the default gateway for a given NIC.
RancherOS Version: v0.7.1
Where are you running RancherOS? baremetal
I'm using hosts with two NICs and setup both for using dhcp in cloud-config.yml. Each NIC sets its default route, but I have to disable the gateway for the second NIC.
I tried to define
but this doesn't work. Also tried putting the command in post_cmds
I'm currently disabling dhcp for the second NIC, and assign IPs over cloud-config.yml by MAC address. But I would prefer it, if there would be an option available to disable or prevent the default gateway for a given NIC.