Page MenuHomeVyOS Platform

Setting a default IPv6 route while getting IPv4 gateway via DHCP removes the IPv4 gateway
Open, Requires assessmentPublicBUG

Description

The config is a fresh install from 1.4-rolling-202109160207

  1. DHCP IPv4 address
  2. IPv6 address somewhere. I used a dummy address. But the report came in based on a GRE tunnel and I confirmed with WG too.
  3. Commit. IPv4 is working
  4. Set a static route for ::/0 at the dummy interface, but tunnel interface works too.
  5. Commit and the IPv4 default route is gone.

Config:

The behavior:

Details

Difficulty level
Unknown (require assessment)
Version
1.4-rolling-202109160207
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

kroy changed Version from 1.4-rolling- to 1.4-rolling-202109160207.
kroy updated the task description. (Show Details)
kroy updated the task description. (Show Details)
kroy renamed this task from Setting a default IPv6 route while getting IPv4 route via DHCP removes the IPv4 route to Setting a default IPv6 route while getting IPv4 route via DHCP removes the IPv4 gateway.Sep 18 2021, 5:27 AM
kroy renamed this task from Setting a default IPv6 route while getting IPv4 route via DHCP removes the IPv4 gateway to Setting a default IPv6 route while getting IPv4 gateway via DHCP removes the IPv4 gateway.

It's worth adding the no-default-route to the dhcp-options and adding a line like

set protocols static route 0.0.0.0/0 interface eth0

Makes it work as expected