DHCP and unix/linux


 
Thread Tools Search this Thread
Special Forums IP Networking DHCP and unix/linux
# 1  
Old 02-03-2003
DHCP and unix/linux

I have 5 unix and 1 linux machines and due to requirements I must have static IPs, its necessary for documentation and such. We are looking at going to DHCP but how can I "fool" these computers into thinking they have static Ips? Our lan admin said something about putting a second IP tied to the network card, via ifconfig. Would this work?
# 2  
Old 02-03-2003
im not sure what you mean by "fool" the computers into thinking that they have a static IP address, they either have one assigned to them or they dont. assigning static IPs to the computers isnt hard at all. different distrobutions and varients of unix each do things a little differently in regards to how networking is set up at boot time, some will recognize files in the /etc/ directory to set up the default gateway and ip address. most will look at /etc/resolv.conf for your dns servers. if you dont know exaclty how your system does things and dont really feel like looking around to find out, you could always write a simple script to be executed at boot that sets everything up, and that would be done with ifconfig. depending on your distro, configuring the system to use DHCP can be as simple as creating an empy file called dhclient.conf in the /etc/ directory. see the man pages on ifconfig for more info about assigning an IP address to an NIC, aswell as setting the default gateway. hope that helps.
# 3  
Old 02-03-2003
Networks can have both static and dyanamic IP addresses. DHCP servers can be configured to only serve a particular range of IP addresses. Other addresses can be reserved for static interfaces.

Static clients do not use DHCP services for their IP addresses.
# 4  
Old 02-04-2003
THanks, It's just a hassle and a half, documentation wise, and I can't afford downtime except on weekends, can't disrupt developers. Since we've moved to DHCP now my linux box is not showing up in XDMCP broadcast lists, even tho I've got it enabled in xdm. Not sure why yet. Don't want this to happen with the main unix boxes.
# 5  
Old 02-04-2003
DHCP and telnet and ftp

If we use DHCP, how do users telnet or FTP to the computers if they don't know their IP?
# 6  
Old 02-04-2003
DHCP is designed for CLIENTS not servers and services. Servers and services normally use static IP addresses. This includes all the services you mention.
# 7  
Old 02-04-2003
Excellent! Thank You!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

DHCP option 90 Configuration on Linux

Hello Friends, I am looking for the configuration steps to enable option 90 on Linux DHCP server.Also i need to add secret id to be configured for option 90. can someone help me in providing the steps with parameter values . Thanks in advance, Veera (0 Replies)
Discussion started by: veera_s99
0 Replies

2. HP-UX

Ignite-ux and dhcp server Linux

I try to start a integrity vm machine using ignite-ux and my usual dhcp server on linux. Ip of server ignite is =192.168.0.16 Ip of dhcpd is = 192.168.0.2 Ip of client vm = 192.168.0.18 I try to boot from lan Booting over the network Loading.: lanboot Client MAC Address: XXXXXXXXXX ..... (5 Replies)
Discussion started by: Linusolaradm1
5 Replies

3. Linux

Dhcp in use or not for Linux machine

Hi All. Can anyone let me know the smartest and fullprrof method of checkking whther any given linux machine is using DHCP or not? # ps -ef | grep dhcp gives output like below : root 3251 3128 0 11:02 pts/0 00:00:00 grep dhcp so i dont think its full proof method , please... (3 Replies)
Discussion started by: omkar.jadhav
3 Replies

4. Linux

Linux dhcp client boot process with packets traffic

Hi Everybody, I would like to know the entire network packets exchange, sequence between a linux dhcp client workstation & dhcp server as client comes up starting from OS booting stage as network service starts to the time client gets dhcp IP address. This would be in a typical LAN ... (2 Replies)
Discussion started by: sudhirav
2 Replies

5. UNIX for Dummies Questions & Answers

Linux DHCP Release on boot

Hi All- I have an assigned static IP address on my Linux box and was wondering if there is a way to change that to a DHCP without actually logging in? Possibly a hot key I can press prioir to login? I am running Centos Thanks! (0 Replies)
Discussion started by: jvpike
0 Replies

6. Linux

How to configure Dhcp in linux?

Please let me know step by step, I am new to this configuration.... (2 Replies)
Discussion started by: dhineshcs
2 Replies

7. IP Networking

Porting DHCP from Linux to VxWorks

DHCP Porting (2 Replies)
Discussion started by: Sunny Shivam
2 Replies

8. Linux

Porting DHCP from Linux to VxWorks

Hello All, I have a code of DHCP which is implemented on Linux. During porting this code from Linux to VxWorks, I come up with following errors:- jects\freedom\ap\udhcp\socket.c C:\projects\freedom\ap\udhcp\socket.c: In function `read_interface': C:\projects\freedom\ap\udhcp\socket.c:79:... (1 Reply)
Discussion started by: Sunny Shivam
1 Replies

9. IP Networking

DHCP Linux and cable modem

I can do all this in windows, but Im trying to run the SuSe 8.0 professional as a gateway. I have the local (private) LAN setup with no problems, but Im having troubles getting it to use DHCP to go out on the external card to the service provider, which only uses Dynamic IP's. WHere, what and how... (3 Replies)
Discussion started by: ftn96
3 Replies

10. UNIX for Dummies Questions & Answers

How do I set up DHCP on Linux

I have linux box setup and connected to a cable modem via a hub which is shared with other win98 pcs. I need to set up the linux box with dhcp. I have two issues: First: For some reason, every time I activate the eth0 interface, it seems to deactivate itself after some time all by itself.... (1 Reply)
Discussion started by: alam
1 Replies
Login or Register to Ask a Question