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 am using fixed addresses, but i want the router to check for the mac addresses of the users who want to go "out there". I don't want to let them change their ip addresses and get complains about conflicting ip's.
i have a router and behind him some computers (with windoze). The router gives them "the grate outdoors" (read internet). There is some shaping, so some guys are trying to change their ip to catche a bigger bindwith. I want to force them to use the ip i give to them and i understend i can do this taking their mac address and stick it to their ip.
The only way I know to do this is with DHCP but the user could still change back to a fixed ip address if they had the administrative rights on that computer.
but i have one more question:
in my campus we have fixed adresses (or i think we have: we must put the ip, mask, dns, gw... on the OS's we use). But when i change my network card i have to go to the admin and tell him the new mac so i can use the new network to access the internet. How do they do it?
I can't see how they could stop you getting network access. They could probably block your net access though using iptables and "--mac-source" it's not something I've used though.
my campus does the MAC-IP thing. That is done in DHCP. David, the way it works is, if you computer tries to pull an IP, it checks the database against your MAC (or the dhcp config file). If your MAC isnt found, you don't get an IP and hence, no network connection. Cristi you could set up your DHCP server to give IP's based on mac using the "host" option in the dhcpd.conf file. However, if a user hard codes his/her IP address to be the IP of someone else, it will still cause IP conflicts. If you want to block access to the internet from a certain user though, do what david_ross said and use the --mac-source option in iptables to filter their connection to the internet (great out doors).
an example of the host opition in DHCP looks like this:
when the computer with MAC: 08:00:2B:4C:59:23 requests an IP from the DHCP server, that computer will always get the 192.168.1.222 IP. This is why your campus always needs your MAC, if you MAC isnt in their config file, you get no IP.
Originally posted by Robert0380 my campus does the MAC-IP thing. That is done in DHCP. David, the way it works is, if you computer tries to pull an IP, it checks the database against your MAC (or the dhcp config file). If your MAC isnt found, you don't get an IP and hence, no network connection.
I know how DHCP works. But like I said (and yourself)
Quote:
Originally posted by Robert0380 However, if a user hard codes his/her IP address to be the IP of someone else, it will still cause IP conflicts.
If the user has admin rights to the workstation then they can change it to a fised ip.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.