How can I get avahi-autoipd to get an address on an alias, regardless of the state of the interface?
I want to configure an address on eth0:ipv4ll, even if eth0 is itself configured. Eth0 will never be configured with an ipv4ll address, it's set to DHCP. The system in question is used both in a regular network, and out of it, and needs to ipv4ll address all the time.
I set up a line in the interfaces file as such:
iface eth0:ipv4ll inet ipv4ll
But, this merely gets a log note that avahi-auotipd isn't configuring the interface because it already has a routable address on it.
Yes, eth0 has an address. But eth0:ipv4ll isn't eth0.
I can't figure out where exactly avahi-autoipd is being run, or I'd simply add --force-binding to the line.
Is there a better way?
networking avahi
add a comment |
I want to configure an address on eth0:ipv4ll, even if eth0 is itself configured. Eth0 will never be configured with an ipv4ll address, it's set to DHCP. The system in question is used both in a regular network, and out of it, and needs to ipv4ll address all the time.
I set up a line in the interfaces file as such:
iface eth0:ipv4ll inet ipv4ll
But, this merely gets a log note that avahi-auotipd isn't configuring the interface because it already has a routable address on it.
Yes, eth0 has an address. But eth0:ipv4ll isn't eth0.
I can't figure out where exactly avahi-autoipd is being run, or I'd simply add --force-binding to the line.
Is there a better way?
networking avahi
add a comment |
I want to configure an address on eth0:ipv4ll, even if eth0 is itself configured. Eth0 will never be configured with an ipv4ll address, it's set to DHCP. The system in question is used both in a regular network, and out of it, and needs to ipv4ll address all the time.
I set up a line in the interfaces file as such:
iface eth0:ipv4ll inet ipv4ll
But, this merely gets a log note that avahi-auotipd isn't configuring the interface because it already has a routable address on it.
Yes, eth0 has an address. But eth0:ipv4ll isn't eth0.
I can't figure out where exactly avahi-autoipd is being run, or I'd simply add --force-binding to the line.
Is there a better way?
networking avahi
I want to configure an address on eth0:ipv4ll, even if eth0 is itself configured. Eth0 will never be configured with an ipv4ll address, it's set to DHCP. The system in question is used both in a regular network, and out of it, and needs to ipv4ll address all the time.
I set up a line in the interfaces file as such:
iface eth0:ipv4ll inet ipv4ll
But, this merely gets a log note that avahi-auotipd isn't configuring the interface because it already has a routable address on it.
Yes, eth0 has an address. But eth0:ipv4ll isn't eth0.
I can't figure out where exactly avahi-autoipd is being run, or I'd simply add --force-binding to the line.
Is there a better way?
networking avahi
networking avahi
asked Nov 11 '15 at 0:37
Hack SawHack Saw
1337
1337
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I looked at the ifupdown source and definition file and the ipv4ll interface type is just a manual up/down wrapper. You can configure an avahi-autoipd interface in /etc/network/interfaces as a manual type:
auto eth0:0
iface eth0:0 inet manual
up avahi-autoipd -D --force-bind eth0:0
down avahi-autoipd -k eth0:0
If you have eth0 configured for dhcp then you also need to comment out the line in /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd that causes the avahi interface to be killed off when dhcp configures itself. Once you do these things then you will be able to use an eth0 and eth0:0 (which gets renamed to eth0:avahi after you ifup eth0:0, oddly).
add a comment |
Well, it seems that ifup calls avahi-autoipd directly, from a static string inside the binary.
Kind of inflexible.
I'll be pursuing another solution. I'd welcome advice in any case. For instance, I wonder if there is a better choice than ifupdown, which also seem s to know too much about Network Manager.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f696507%2fhow-can-i-get-avahi-autoipd-to-get-an-address-on-an-alias-regardless-of-the-sta%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I looked at the ifupdown source and definition file and the ipv4ll interface type is just a manual up/down wrapper. You can configure an avahi-autoipd interface in /etc/network/interfaces as a manual type:
auto eth0:0
iface eth0:0 inet manual
up avahi-autoipd -D --force-bind eth0:0
down avahi-autoipd -k eth0:0
If you have eth0 configured for dhcp then you also need to comment out the line in /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd that causes the avahi interface to be killed off when dhcp configures itself. Once you do these things then you will be able to use an eth0 and eth0:0 (which gets renamed to eth0:avahi after you ifup eth0:0, oddly).
add a comment |
I looked at the ifupdown source and definition file and the ipv4ll interface type is just a manual up/down wrapper. You can configure an avahi-autoipd interface in /etc/network/interfaces as a manual type:
auto eth0:0
iface eth0:0 inet manual
up avahi-autoipd -D --force-bind eth0:0
down avahi-autoipd -k eth0:0
If you have eth0 configured for dhcp then you also need to comment out the line in /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd that causes the avahi interface to be killed off when dhcp configures itself. Once you do these things then you will be able to use an eth0 and eth0:0 (which gets renamed to eth0:avahi after you ifup eth0:0, oddly).
add a comment |
I looked at the ifupdown source and definition file and the ipv4ll interface type is just a manual up/down wrapper. You can configure an avahi-autoipd interface in /etc/network/interfaces as a manual type:
auto eth0:0
iface eth0:0 inet manual
up avahi-autoipd -D --force-bind eth0:0
down avahi-autoipd -k eth0:0
If you have eth0 configured for dhcp then you also need to comment out the line in /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd that causes the avahi interface to be killed off when dhcp configures itself. Once you do these things then you will be able to use an eth0 and eth0:0 (which gets renamed to eth0:avahi after you ifup eth0:0, oddly).
I looked at the ifupdown source and definition file and the ipv4ll interface type is just a manual up/down wrapper. You can configure an avahi-autoipd interface in /etc/network/interfaces as a manual type:
auto eth0:0
iface eth0:0 inet manual
up avahi-autoipd -D --force-bind eth0:0
down avahi-autoipd -k eth0:0
If you have eth0 configured for dhcp then you also need to comment out the line in /etc/dhcp/dhclient-enter-hooks.d/avahi-autoipd that causes the avahi interface to be killed off when dhcp configures itself. Once you do these things then you will be able to use an eth0 and eth0:0 (which gets renamed to eth0:avahi after you ifup eth0:0, oddly).
answered Sep 19 '16 at 17:22
Jim KingJim King
261
261
add a comment |
add a comment |
Well, it seems that ifup calls avahi-autoipd directly, from a static string inside the binary.
Kind of inflexible.
I'll be pursuing another solution. I'd welcome advice in any case. For instance, I wonder if there is a better choice than ifupdown, which also seem s to know too much about Network Manager.
add a comment |
Well, it seems that ifup calls avahi-autoipd directly, from a static string inside the binary.
Kind of inflexible.
I'll be pursuing another solution. I'd welcome advice in any case. For instance, I wonder if there is a better choice than ifupdown, which also seem s to know too much about Network Manager.
add a comment |
Well, it seems that ifup calls avahi-autoipd directly, from a static string inside the binary.
Kind of inflexible.
I'll be pursuing another solution. I'd welcome advice in any case. For instance, I wonder if there is a better choice than ifupdown, which also seem s to know too much about Network Manager.
Well, it seems that ifup calls avahi-autoipd directly, from a static string inside the binary.
Kind of inflexible.
I'll be pursuing another solution. I'd welcome advice in any case. For instance, I wonder if there is a better choice than ifupdown, which also seem s to know too much about Network Manager.
answered Nov 11 '15 at 19:07
Hack SawHack Saw
1337
1337
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f696507%2fhow-can-i-get-avahi-autoipd-to-get-an-address-on-an-alias-regardless-of-the-sta%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown