Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do I set up DHCP on Linux Post 6928 by alam on Saturday 15th of September 2001 10:53:40 AM
Old 09-15-2001
Question 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.
Second: when I am able to activate the eth0 interface and run the ifconfig command from the xterm screen, I always get the 127.0.0.1 ip address associated with the lo interface. For some reason, it doesn't recognize the eth0 and even try to get an ip over dhcp.

finally, if I try to ping another machine on the network, I always get network unreachable.


thank you.

Last edited by alam; 09-15-2001 at 11:55 AM..
 

10 More Discussions You Might Find Interesting

1. 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

2. IP Networking

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... (6 Replies)
Discussion started by: kymberm
6 Replies

3. IP Networking

Porting DHCP from Linux to VxWorks

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

4. 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

5. AIX

How to set dhcp client by using commands

Hi, I have used "smit tcpip" to setup dhcp client but it does not work. Don't know why. Now I want to try using commands to do the job. I have studied commands chdev and mktcpip but did not find howto. Please help. Thank you! (1 Reply)
Discussion started by: aixlover
1 Replies

6. 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

7. Red Hat

How to set DHCP by using Virtualbox?

Hi, Guys, I met a question. I've installed the Oracle Virtualbox in my laptop, whose OS is Windows XP. And I've installed two CentOS 6.4 in the virtualbox : test1, test2. I wanted the test1 to be the DHCP server and assigned IP Address to the test2. I knew the principle : step 1: install... (3 Replies)
Discussion started by: franksunnn
3 Replies

8. 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

9. 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

10. 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
IFSYSCTL(5)						       Network configuration						       IFSYSCTL(5)

NAME
ifsysctl[-<interface name>] - per network interface sysctl settings SYNOPSIS
/etc/sysconfig/network/ifsysctl /etc/sysconfig/network/ifsysctl-<interface name> DESCRIPTION
These files are intended to contain sysctl settings, that should be applied when a network interface is created. This are usually interface specific settings, like: net.ipv6.conf.eth0.use_tempaddr = 1 or net.ipv4.conf.eth0.rp_filter = 0 The settings are applied by the /etc/sysconfig/network/scripts/ifup-sysctl script executed via /etc/udev/rules.d/77-network.rules rule (see udev(7)), after the creation and after the rename of the interface name to its persistent name (when applicable), but before the ifup <interface name> -o hotplug may be executed to configure the interface. The settings are not applied by default when the NetworkManager is active (NETWORKMANAGER=yes), except when the IFSYSCTL_NETWORKMANAGER=yes variable is set in the /etc/sysconfig/network/config file. Settings from the ifsysctl- file are applied every time an interface has been created. Settings from the ifsysctl-interface name file are applied when the interface with the corresponding interface name has been created. SYNTAX
The sysctl(8) utility is required to apply the settings. It supports two separator characters for sysctl keywords: a "." in default format and a "/" in the alternate format. Therefore the syntax is basically same to the /etc/sysctl.conf file. Interface names may contain a ".". In the default sysctl format using a "." as separator, that is any "." in the interface name of the key- word, has to be replaced with a "/". In the alternate sysctl format with "/" as separator, normal interface names can be used. Optionally, the ifsysctl files may contain also the $INTERFACE and the $SYSCTL_IF variables, that are automatically replaced with the cur- rent interface name usable in the alternate format and with the sysctl-quoted interface name for the default format, before the settings are passed to the sysctl utility. Note also, that settings with variables in the ifsysctl (without the -<interface name> suffix), will be applied for every interface! Further, files with variables are not compatible to the /etc/sysctl.conf file. EXAMPLES
Settings for "eth0" and "eth0.1" interfaces # using "." as separator: net.ipv6.conf.eth0.use_tempaddr = 1 net.ipv6.conf.eth0/1.use_tempaddr = 1 # using "/" as separator: net/ipv6/conf/eth0/use_tempaddr = 1 net/ipv6/conf/eth0.0/use_tempaddr = 1 Settings with variables: # using "." as separator: net.ipv6.conf.$SYSCTL_IF.use_tempaddr = 1 # using "/" as separator: net/ipv6/conf/$INTERFACE/use_tempaddr = 1 To test your ifsysctl-eth0 or ifsysctl file, use: /etc/sysconfig/network/scripts/ifup-sysctl eth0 -o debug BUGS
Please report bugs at <https://bugzilla.novell.com/> AUTHOR
Marius Tomaschewski <mt@suse.de> SEE ALSO
ifup(8) ifcfg(5) sysctl(8) sysconfig December 2009 IFSYSCTL(5)
All times are GMT -4. The time now is 11:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy