LinuxQuestions.org
Visit Jeremy's Blog.
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 06-07-2004, 03:33 AM   #1
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Rep: Reputation: 30
Get rid of ip


I have installed linux red hat 9.0 and trying to run dhcpd on eth1. I have a liveip in eth0 and local ip (192.168.0.1 mask 255.255.255.0) on eth1. but when i do netstat -nr i am getting a new ip on eth1 (169.254.0.0 mask 255.255.255.0) and the dhcp client(windows) is also getting a ip 169.254.29.127. How do i get rid of this ip (169.254.0.0) and what do i do so that my clients get ip of (192.168.0.0) network.

This is the netstat -nr file that i see
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.141.148.24 0.0.0.0 255.255.255.248 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.141.148.25 0.0.0.0 UG 0 0 0 eth0

Please help me so that i can configure my machine

Thanking you all
SAnjib Gupta
 
Old 06-07-2004, 04:28 AM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
The netstat -nr shows you routes you have to local and remote networks, not IP addresses on your NIC. The line
Code:
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
shows that you have a route to a nework 169.254/16 going via eth1. This may or may not be correct but shouldn't have anything to do with IP addresses.

Can you post the output of ifconfig -a, showing the actual IP addresses of your interfaces? If ent1 itself has an IP address 192.168.0.xxx; your Windows client is connected to the same network and your DHCP server is configured to give out IP addresses on that subnet then it should all work.
 
Old 06-07-2004, 04:37 AM   #3
unforgivn
Member
 
Registered: Jul 2003
Location: south africa
Distribution: RH 9 hopefully fedora core 2 soon :P
Posts: 34

Rep: Reputation: 15
169.254.0.0 is an adress that is given to windows machines that have dhcp enabled but can't see a DHCP server.. so your problem is either that dhcp is not running check whether or not the service is running by typing chkconfig --list dhcpd .. first thing to check...
 
Old 06-07-2004, 04:57 AM   #4
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 215

Original Poster
Rep: Reputation: 30
the ifconfig - a eth1 shows the following
eth1 Link encap:Ethernet HWaddr 000:09:86:2E:BD
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:567 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:51809 (50.5 Kb) TX bytes:240 (240.0 b)
Interrupt:5 Base address:0x6000
but still the windows clients get 169.254.xxx.xxx ip's
my ps -ef shows dhcpd running


Sanjib gupta
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Should I get rid of XP? NCC-1701&NCC-1701-D Linux - Newbie 12 06-13-2005 09:41 AM
where did it come from, and how do i get rid of it? scarryharry Slackware - Installation 2 10-08-2004 02:10 PM
What can I get rid of? NKYG Linux - Software 6 06-17-2004 03:19 PM
Get rid of XP Pedroski Linux - Hardware 5 05-25-2004 11:44 AM
get rid of this dkc_ace Linux - Software 9 02-12-2003 02:10 PM

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

All times are GMT -5. The time now is 05:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration