Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement or Question - Support for sub-interfaces #448

Open
ColinMcInnes opened this issue Jan 30, 2025 · 2 comments
Open

Enhancement or Question - Support for sub-interfaces #448

ColinMcInnes opened this issue Jan 30, 2025 · 2 comments

Comments

@ColinMcInnes
Copy link
Contributor

ColinMcInnes commented Jan 30, 2025

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:18:48:20:10:94 brd ff:ff:ff:ff:ff:ff
    inet 169.254.0.2/24 scope host eth0:si0               <<<< statically assigned through CLI
       valid_lft forever preferred_lft forever
    inet 169.254.1.2/24 scope host eth0:si1               <<<< statically assigned through CLI
       valid_lft forever preferred_lft forever
    inet6 ...

When I restart dhcpcd, it takes down and brings back eth0, and this wipes eth0:si0 and eth0:si1. I would like to add them to the dhcpcd.conf, but

denyinterfaces eth0:si0 eth0:si1

does not seem to "take". Am I doing it wrong, or is this something dhcpcd does not yet support (interface labels).

For now, I'm using "persistent"

@rsmarples
Copy link
Member

In this case the "interface label" was used in the past I think because ifconfig only handles one ipv4 address per interface.
In the modern world it's just a label for an address - IFA_LABEL.

I suppose the better question is why do we blanket remove any pre-existing IPv4LL addresses?
Well, dhcpcd will likely remove the subnet route for them as well rendering them pretty useless.

So the only correct solutions are to disable ipv4ll in dhcpcd or use something other than link-local addresses on the interface.
OR if you want to get really funky create a slap eth0 into a bridge with a virtual interface and assign the link-local addresses to that interface.

@ColinMcInnes
Copy link
Contributor Author

I will retest with 10.2.2 and noipv4ll

I do like the virtual interface idea though. I might try that too. I tried not using LL for the label, but the device I'm using it for hard-codes it on their end so I can't assign a different range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants