Ubuntu: dhcp server on NIC with 2 (or more) ip address












0















On Ubuntu 18.04, I have my eth1 configured with 2 static ip:



$ ip addr show eth1
8: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:80:c8:3d:19:94 brd ff:ff:ff:ff:ff:ff
inet 169.254.123.52/16 brd 169.254.255.255 scope link noprefixroute eth1
valid_lft forever preferred_lft forever
inet 192.168.55.1/24 brd 192.168.55.255 scope global noprefixroute eth1
valid_lft forever preferred_lft forever


On eth1 I have configured the dhcp server:



option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

#local-address 192.168.55.1
subnet 192.168.55.0 netmask 255.255.255.0 {
range 192.168.55.100 192.168.55.150;
}


when a client asks for an ip address, however, the packets arrive with ip source in the wrong subnet:



wireshark screenshot



Note that packets from the dhcp server have ip source 169.254.xxx.yyy but assign ip in the subnet 192.168.55.zzz



Is that a problem? How do I make sure that packages are generated with the ip in the right subnet? Is this a linux or dhcp server setting?










share|improve this question























  • Why do you have an APIPA address(169.254.0.0/16) statically bound to the NIC? What happens when you remove that binding?

    – Gert Jan Kraaijeveld
    Jan 28 at 20:00











  • @Gert Jan Kraaijeveld I use an APIPA address for needs related to my work. The problem would be the same if I had configured an address in the subnet 10.0.0.xxx/24. The dhcp server would generate packets from an address in the subnet 10.0.0.xxx/24 to assign an address in the subnet 192.168.55.yyy/24.

    – mastupristi
    Jan 29 at 21:59
















0















On Ubuntu 18.04, I have my eth1 configured with 2 static ip:



$ ip addr show eth1
8: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:80:c8:3d:19:94 brd ff:ff:ff:ff:ff:ff
inet 169.254.123.52/16 brd 169.254.255.255 scope link noprefixroute eth1
valid_lft forever preferred_lft forever
inet 192.168.55.1/24 brd 192.168.55.255 scope global noprefixroute eth1
valid_lft forever preferred_lft forever


On eth1 I have configured the dhcp server:



option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

#local-address 192.168.55.1
subnet 192.168.55.0 netmask 255.255.255.0 {
range 192.168.55.100 192.168.55.150;
}


when a client asks for an ip address, however, the packets arrive with ip source in the wrong subnet:



wireshark screenshot



Note that packets from the dhcp server have ip source 169.254.xxx.yyy but assign ip in the subnet 192.168.55.zzz



Is that a problem? How do I make sure that packages are generated with the ip in the right subnet? Is this a linux or dhcp server setting?










share|improve this question























  • Why do you have an APIPA address(169.254.0.0/16) statically bound to the NIC? What happens when you remove that binding?

    – Gert Jan Kraaijeveld
    Jan 28 at 20:00











  • @Gert Jan Kraaijeveld I use an APIPA address for needs related to my work. The problem would be the same if I had configured an address in the subnet 10.0.0.xxx/24. The dhcp server would generate packets from an address in the subnet 10.0.0.xxx/24 to assign an address in the subnet 192.168.55.yyy/24.

    – mastupristi
    Jan 29 at 21:59














0












0








0








On Ubuntu 18.04, I have my eth1 configured with 2 static ip:



$ ip addr show eth1
8: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:80:c8:3d:19:94 brd ff:ff:ff:ff:ff:ff
inet 169.254.123.52/16 brd 169.254.255.255 scope link noprefixroute eth1
valid_lft forever preferred_lft forever
inet 192.168.55.1/24 brd 192.168.55.255 scope global noprefixroute eth1
valid_lft forever preferred_lft forever


On eth1 I have configured the dhcp server:



option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

#local-address 192.168.55.1
subnet 192.168.55.0 netmask 255.255.255.0 {
range 192.168.55.100 192.168.55.150;
}


when a client asks for an ip address, however, the packets arrive with ip source in the wrong subnet:



wireshark screenshot



Note that packets from the dhcp server have ip source 169.254.xxx.yyy but assign ip in the subnet 192.168.55.zzz



Is that a problem? How do I make sure that packages are generated with the ip in the right subnet? Is this a linux or dhcp server setting?










share|improve this question














On Ubuntu 18.04, I have my eth1 configured with 2 static ip:



$ ip addr show eth1
8: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:80:c8:3d:19:94 brd ff:ff:ff:ff:ff:ff
inet 169.254.123.52/16 brd 169.254.255.255 scope link noprefixroute eth1
valid_lft forever preferred_lft forever
inet 192.168.55.1/24 brd 192.168.55.255 scope global noprefixroute eth1
valid_lft forever preferred_lft forever


On eth1 I have configured the dhcp server:



option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

#local-address 192.168.55.1
subnet 192.168.55.0 netmask 255.255.255.0 {
range 192.168.55.100 192.168.55.150;
}


when a client asks for an ip address, however, the packets arrive with ip source in the wrong subnet:



wireshark screenshot



Note that packets from the dhcp server have ip source 169.254.xxx.yyy but assign ip in the subnet 192.168.55.zzz



Is that a problem? How do I make sure that packages are generated with the ip in the right subnet? Is this a linux or dhcp server setting?







linux networking dhcp ubuntu-18.04 dhcp-server






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 28 at 13:59









mastupristimastupristi

11




11













  • Why do you have an APIPA address(169.254.0.0/16) statically bound to the NIC? What happens when you remove that binding?

    – Gert Jan Kraaijeveld
    Jan 28 at 20:00











  • @Gert Jan Kraaijeveld I use an APIPA address for needs related to my work. The problem would be the same if I had configured an address in the subnet 10.0.0.xxx/24. The dhcp server would generate packets from an address in the subnet 10.0.0.xxx/24 to assign an address in the subnet 192.168.55.yyy/24.

    – mastupristi
    Jan 29 at 21:59



















  • Why do you have an APIPA address(169.254.0.0/16) statically bound to the NIC? What happens when you remove that binding?

    – Gert Jan Kraaijeveld
    Jan 28 at 20:00











  • @Gert Jan Kraaijeveld I use an APIPA address for needs related to my work. The problem would be the same if I had configured an address in the subnet 10.0.0.xxx/24. The dhcp server would generate packets from an address in the subnet 10.0.0.xxx/24 to assign an address in the subnet 192.168.55.yyy/24.

    – mastupristi
    Jan 29 at 21:59

















Why do you have an APIPA address(169.254.0.0/16) statically bound to the NIC? What happens when you remove that binding?

– Gert Jan Kraaijeveld
Jan 28 at 20:00





Why do you have an APIPA address(169.254.0.0/16) statically bound to the NIC? What happens when you remove that binding?

– Gert Jan Kraaijeveld
Jan 28 at 20:00













@Gert Jan Kraaijeveld I use an APIPA address for needs related to my work. The problem would be the same if I had configured an address in the subnet 10.0.0.xxx/24. The dhcp server would generate packets from an address in the subnet 10.0.0.xxx/24 to assign an address in the subnet 192.168.55.yyy/24.

– mastupristi
Jan 29 at 21:59





@Gert Jan Kraaijeveld I use an APIPA address for needs related to my work. The problem would be the same if I had configured an address in the subnet 10.0.0.xxx/24. The dhcp server would generate packets from an address in the subnet 10.0.0.xxx/24 to assign an address in the subnet 192.168.55.yyy/24.

– mastupristi
Jan 29 at 21:59










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399268%2fubuntu-dhcp-server-on-nic-with-2-or-more-ip-address%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1399268%2fubuntu-dhcp-server-on-nic-with-2-or-more-ip-address%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido