Score:0

Ubuntu 20.04 bind interface to subnet dhcp

wf flag

I would like to bind interface to subnet on dhcp:

try to do this:

interfaces

dhcpd.conf

subnet 192.168.0.0 netmask 255.255.255.0 {

range 192.168.0.2 192.168.0.254;

option routers 192.168.0.1;

option domain-name-servers 192.168.0.1;

}



subnet 192.168.10.0 netmask 255.255.255.0 {

range 192.168.10.2 192.168.10.254;

option routers 192.168.10.1;

option domain-name-servers 192.168.10.1;

}

dhcp defaults

interfacesv4 = "ens192 ens224"

However the dhcp configuration fails.

any computer on any interface returns me 192.168.10.x/24 subnet mask.

Dr. Memory avatar
wf flag
No its an ubuntu server 20.04.
Dr. Memory avatar
wf flag
Thank you .....
pa4080 avatar
cn flag
Welcome to Ask Ubuntu! [Please don’t post images of text.](https://meta.askubuntu.com/q/8713/566421) Instead, paste the text directly into your question and use the [formatting tools](https://askubuntu.com/help/formatting). This goes double when you’re asking for help on a script. Surely you don’t expect us to copy that line by line in order to try to run it and identify the problems!
ar flag
I agree with @pa4080. Please copy the text from the terminal and paste directly into your question and format the pasted text as code using the {_} icon above the edit question window.
Dr. Memory avatar
wf flag
I hope it's fine
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.