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

Create a manual or non-IP interface? #96

Open
sjwk opened this issue Dec 16, 2020 · 3 comments
Open

Create a manual or non-IP interface? #96

sjwk opened this issue Dec 16, 2020 · 3 comments

Comments

@sjwk
Copy link

sjwk commented Dec 16, 2020

Is there a recommended way to create an interface with neither static nor DHCP address?
In my use case, I want to create a bonded parent interface, which won't have any IP address of its own, but act purely as a parent to multiple VLAN interfaces, which will have their own addresses.

On a [Debian] host that is already set up this way, the parent interface is simply configured as:

iface bond1 inet manual
bond-mode 802.3ad
bond-slaves enp1s0f2 enp1s0f3

If I set bootproto to static but don't give it any address, the role completes but fails to bring the interface up due to missing address. If I set bootproto to static and set the address to 0.0.0.0 it works (although it's probably not a good config) but the 'Check active bond interface state' handler fails.

Thanks!

@purplesrl
Copy link

purplesrl commented Jan 1, 2021

bootproto manual does not seem supported, it should be, i need it for tap0 (i set some routes when i connect to the vpn)

for me adding:

{% if item.bootproto == 'manual' %}
{{ item.allowclass | default('auto') }} {{ item.device }}
iface {{ item.device }} inet manual
{% endif %}

To ethernet_Debian.j2 worked, of course this is just a workaround.

@markgoddard
Copy link

Looking at man interfaces, what you are describing is the 'method' in Debian/Ubuntu. The bootproto terminology I think comes from CentOS/RHEL.

Currently for Debian/Ubuntu we support static or dhcp methods, but others are supported, including manual. Perhaps the simplest option would be to set the method to manual if item.bootproto is static, but no IP address is configured?

@sjwk
Copy link
Author

sjwk commented Jan 27, 2021

Currently for Debian/Ubuntu we support static or dhcp methods, but others are supported, including manual. Perhaps the simplest option would be to set the method to manual if item.bootproto is static, but no IP address is configured?

That sounds like it would work.

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

3 participants