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.
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36
Rep:
MAC based DHCP configuration ! Help wanted
helo all,
I'm working on an ISP. Our internal Clients ( in house ) are frequently having some problems of IP conflict. So, i think DHCP would be a proper solution. But at the same time i want to restrict their IP. Can anybody help me? I need some idea abt DHCP server config file which will provide a pre selected IP for a host.
like, if someone have the MAC of 00:C0:26:78:6B:8A
He should obtain the ip 192.168.1.50
host yourmachine {
hardware ethernet 00:00:00:00:00; - mac addres of the nic that wants the ip below
fixed-address 192.168.0.x; - ip you want the client to get
}
that should point you in the right direction. obviously you can add as many 'host' methods as you want.
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36
Original Poster
Rep:
thanx, but my question is, where is the DNS address?
i also need to define the DNS address.
looking forward to get help from you again.
Code:
subnet 192.168.1.0 netmask 255.255.255.0 { - declare network
range dynamic-bootp 192.168.1.x 192.168.1.x; - declare 'pool' of address.
option routers 192.168.1.x; - gateway
option subnet-mask 255.255.255.0; - subnet
default-lease-time 360000; -lease times
max-lease-time 259200;
host yourmachine {
hardware ethernet 00:00:00:00:00; - mac addres of the nic that wants the ip below
fixed-address 192.168.0.x; - ip you want the client to get
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.