Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two ethernet ports, one I'd like to use for internet access (living in 192.168.0.x, getting dhcp from the house's router, normal stuff) and the other ethernet port I'd like to use to host dhcp to one device, my UPS battery. From this one port, I have a cable going directly to the UPS in question.
I'm trying to keep one from stepping on the toes of the other. For my UPS-dedicated port, I'm trying to get that dhcp server to be 172.16.0.1 and the UPS should grab 172.16.0.2
For some reason, I'm unable to start the dnsmasq service with my desired options. My error is:
dnsmasq: junk found in command line
Here's my version info:
Dnsmasq version 2.76 Copyright (c) 2000-2016 Simon Kelley
Compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotify
If there's anything else I could provide to make this easier to troubleshoot, let me know.
I've looked at a few guides and they all seem to indicate that my dnsmasq.conf should work, simple though it may be. I should emphasize that I have no need for DNS, since this is one device being connected directly to my system.
If you really have only one dedicated host (UPS) attached to this interface then I don't see the need for dnsmasq at all. Why not just assign 172.16.0.1/30 to this interface and 172.16.0.2/30 to the UPS statically?
"The DHCP range should be more like 172.16.0.2,172.16.0.10,12h, and you'll need to assign 172.16.0.1 (static address) to the enp10s0 interface as well."
Changing the range is no problem. How do you suggest I statically assign that address to enp10s0? Do I do it within dnsmasq?
"If you really have only one dedicated host (UPS) attached to this interface then I don't see the need for dnsmasq at all. Why not just assign 172.16.0.1/30 to this interface and 172.16.0.2/30 to the UPS statically?"
That's the very first thing I tried, but my UPS's management card is really weird and seems to be happiest when being given a DHCP address, I'm still figuring out it's behavior, but in the mean time I wanted DHCP working just to get things working for the time being.
I've been working with the Crux IRC group, it seems like I have that ironed out, Either the device I'm connecting to is configured incorrectly or I've got dnsmasq messed up somehow. Out of curiosity, how'd you find the 3.1 handbook? 3.3 should be the one the main page links to, but it's been wrong before.
to rule out dnsmasq, I'm going to see if it can give an ip address to some other device - I'll try a few.
I've been working with the Crux IRC group, it seems like I have that ironed out, Either the device I'm connecting to is configured incorrectly or I've got dnsmasq messed up somehow. Out of curiosity, how'd you find the 3.1 handbook? 3.3 should be the one the main page links to, but it's been wrong before.
With a quick online search using Google. You should at least be able to check how the interface is configured with
Code:
/sbin/ifconfig
and maybe share /etc/rc.d/net if you're not sure about the configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.