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.
Hi All, I have a Linux Machine, and I want to configure it to use this static ip address 192.168.2.1. For some reason it does not accept and link could not be up saying there's another host is running with this IP.
As I have limited access to the network, and I cannot unplug the network and configure the server, Is there anyway to configure it by force and disregard any ip conflicts?
I know that ip conflict is not good and would create issues, but main question is, is it possible? How do i do this?
x.x.x.1 is by default the gateway address. It is likely the address of your router.
You could use x.x.x.2 to x.x.x.254. If this is a home router, I would check the DHCP settings of the router. Most of them reserve a block of addresses for static and are configured to assign DHCP above that block. For my router, DHCP starts with x.x.x.100 to above. (This is a configurable setting.)
If it's not a home router, check with the IS Dept.
Hi frankbell, thanks for the reply. I do know that I can use other ip on that subnet. What I'm trying to do is use one specific ip and force it to.
Knowing that I dont have any access on the network and physical access on that server. Right now what I have is iLO to the server itself. So was thinking if is it possible to configure it on the OS side, forcing an ip address. I've done research, something to do with the bad arp broadcast, was thinking to disable the arp on the server if possible but problem is i don't know how.
I configure all of my servers with static IPs, never had a problem with any of them "rejecting" it because of a duplicate. They'll hold onto the IP even if the network cable is unplugged or the router is on a different subnet, they don't care.
This is how I do it:
1) Uninstall NetworkManager (it ALWAYS screws things up for me)
2) Find the ifcfg file for the device I'm interested in, usually in /etc/sysconfig/network-scripts/ifcfg-eth0
3) Modify the file to look something like this:
Swapping out DEVICE with your device name, HWADDR with your MAC, IPADDR, GATEWAY, NETMASK, and NETWORK to match your setup, and DNS1/2 to match your DNS servers. The above file is from a Fedora 16 system, other distros might want the file to look different.
Last edited by suicidaleggroll; 01-27-2012 at 11:21 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.