LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-12-2002, 03:24 AM   #1
MikHud
Member
 
Registered: Jan 2002
Location: UK
Distribution: Ubuntu
Posts: 45

Rep: Reputation: 15
Unhappy DHCP & Static IP Confusion!


I've got a small LAN with M$ W98 peer-peer PCs running NetBEUI and a dial-up ISDN router providing internet access.
The router (D-Link DI-106) also provides a DHCP Server so I don't assign static IPs to the PCs cos the router does that dynamically - the only static IP which is set in each PC is that of the router as 'TCP/IP Gateway'.

I've now added a Red Hat 7.2 box. The only server function of this box will eventually be for Telenet/Ssh.
When I installed RH I gave it a static IP address (within the router's DHCP range) and now I can't seem to change or remove that address. I can ping in to the RH box using the original IP but if I change the IP in /etc/hosts, I can't ping in with the new IP. I've tried stopping and starting the network via /etc/rc.d/init.d/network but it makes no difference. /etc/dhcp/dhcpcd-eth0.info always shows the original IP.

a) Should it be necessary for the RH box to be assigned a Static IP when the router operates as DHCP Server?
The RH Network Config (neat) is set up to "Automatically obtain IP address settings with dchp" and the Static IP settings are blanked-out.

b) Will any use of static IPs interefere with the DHCP service? eg: will they reduce the security benefit of DHCP?
 
Old 01-12-2002, 05:03 AM   #2
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
to make the box dhcp and not static edit /etc/sysconfig/network-scripts/ficfg-eth0 and change the PROTO=statis th PROTO=dhcp. you should alos remove the other lines about NETMASK's and such like, leaving you with just:

DEVICE=eth1
ONBOOT=yes
BOOTPROTO=dhcp

sould be all you need to do.

be careful abuot /etc/hosts, that file is just used as a lookup for ip addresses for pinging, sshing, www etc... there's nothign wrong with adding in any other addresses in there, but changing your own can cause inconsistency problems, ep if you touch teh localhost line.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zoom modem/switch & linux<->linux network: DHCP / Static ? tredegar Linux - Networking 8 11-11-2007 03:41 AM
modprobe & dhcp confusion argonian Slackware 5 08-23-2005 03:32 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
covering dhcp & static routing redlinux04 Linux - Networking 3 09-08-2004 02:44 AM
wireless router DHCP confusion yocompia Linux - Wireless Networking 1 07-25-2003 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration