LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IP Aliasing + DHCP (https://www.linuxquestions.org/questions/linux-newbie-8/ip-aliasing-dhcp-504995/)

enpassant 11-26-2006 10:46 AM

IP Aliasing + DHCP
 
I'm using the latest version of Fedora, and I have a series of computers (mac, win, linux) that pick up DHCP IPs from a cable modem for access to the internet. The linux machine I am converting to be headless, and need to be able to have a static Ip on it I can always reach. I want to add a second IP to the NIC that the rest of the computers can use to connect to it. I have used all the IP Aliasing, and Iproute2 guides I could find on the internet, and have not been able to get it working yet. I haven't been able to find much that deals specifically with DHCP + static IP on one NIC. Any help and advice would be appreciative.

acid_kewpie 11-26-2006 11:51 AM

you've not said much about your topology here... what are you really trying to achieve? why do you need two nics??

enpassant 11-26-2006 12:05 PM

The linux machine is a 1U, with an onboard nic, so the possibility of a second NIC given the limited space is not an option. Right now, I have it connecting to an old 24 port hub, which the other PCs and cable connection are connected to, as well as the cable modem. I want to assign a second IP to the NIC on the linux machine that will remain static regardless of any dynamicly assigned IPs from the Cable porvider. Since the 1U would be headless, getting its dynamic IP information from it won't be an option.

acid_kewpie 11-26-2006 12:34 PM

what kind of subnetting is going on here? can you draw your layer 3 architecture? if you want to add a second interface on a distro like redhat you can create a file like /etc/sysconfig/network-scripts/ifcfg-eth0-1, which would be similar to the standard ifcfg-eth0 file but with an DEVICE entry like eth0:1.

still totally unconvinced you *need* this, you should remain open to other options... are you not running some form of dynamic dns inside? will the dhcp service now resolve names for you?


All times are GMT -5. The time now is 04:17 AM.