LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-30-2005, 04:30 AM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
problem configuring ip address


Hi,

I installed a frash mandrake 10 on mya pc.I use a dhcp on my home network.
throw KDE whan I try to configure to get an ip from the dhcp it doesnt get one and when I configure it manually the system says "congratulations,the network and internet configuration is finished " and whan I issuse ifconfig I see the ip I insterted but still when I ping the default gateway I see destionation host unreachable.
before I installed mandrake it was a win xp system and there were no problems.

p.s. mandrake indentifies the nic card without any problems.

Please help,

Thanks !

Juan
 
Old 12-30-2005, 04:44 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Do you have a DHCP client installed?

Can you post the contents of /etc/network/interfaces (at least that's the file on a Debian system)? It should look something like this for a static IP:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.40
netmask 255.255.255.0
gateway 192.168.0.1

A few other things to try:
1)Is your default gateway also a firewall? Are the settings correct to allow contact from the internal network?
2)Are you using the proper cable (I screwed this one up myself and wasted hours before I realized I had a crossover cable and my router couldn't auto sense the cable)?

Last edited by pljvaldez; 12-30-2005 at 04:52 PM.
 
Old 12-30-2005, 05:53 PM   #3
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
okey I found the file and insrted in the line before last this line:
net eth0 192.168.1.1 dhcp
the above ip is the dhcp server.

I reboted the machine and than in the output of ifconfig eth0 doesnt have an ip assigned to.

and about the other two options I checked them and this is not the problem.

Thanks very much !

Juan
 
Old 12-30-2005, 06:03 PM   #4
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
Hi,

I tried to add the ip with ifconfig command and got a messege saying:
route:host name lookup failure.

the command I gave was exactly this:
ifconfig eth0 192.168.1.9 netmask 255.255.255.0 route add default ge 192.168.1.1

the dns server is outside of my network. ny router forward dns querys to the isp's dns.
maybe this is the problem?

Thanks very much
 
Old 12-30-2005, 06:17 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, your /etc/network/interfaces file should look like this

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet dhcp

Okay. After doing that, you have to issue the commands ifdown eth0 and then ifup eth0.

This should reset your ethernet card address. ifconfig should give you a proper address now. You can try pinging your router ping 192.168.1.1. If that is all okay, then your ethernet card is set up okay.

If you can't access www.google.com, then that is a DNS problem and you have to edit /etc/resolv.conf to look like this:

nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

You may have to figure out from your ISP which nameserver addresses to put in here.
 
Old 12-30-2005, 06:27 PM   #6
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
the strange thing is that I dont have the file /etc/network/interfaces I dont have even /etc/network directory.

The file I edited before was /etc/shorewall/interfaces

whan I searced for intrefaces file the system found this:
/etc/cups/interfaces
/etc/shorewall/interfaces
/use/share/gnome-medi-2.0/interfaces
/usr/liv/ppr/interfaces

maybe I have an installation problem?

Thanks
 
Old 12-30-2005, 06:28 PM   #7
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
..and I dont have /etc/resolve file as well...
 
Old 12-30-2005, 06:33 PM   #8
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
maybe to install some packges again?
 
Old 12-30-2005, 06:44 PM   #9
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
/etc/shorewall/interfaces sounds like a config file for Shorewall Firewall. You should probably change it back to how it was before.

Maybe I can't help you so much. I think this is a problem of Mandrake being different than Debian.

Try looking at this post which seems to relate to Mandrake network configuration:

http://www.linuxquestions.org/questi...d.php?t=389715

Sorry I couldn't be more help!

Last edited by pljvaldez; 12-30-2005 at 06:45 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Configuring Address Restricted Nat cipherscrux Linux - Networking 1 06-22-2006 01:52 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
problem to print source address and destination address jooboo Programming 2 11-26-2003 03:24 PM
configuring ip address without using dhcp sanjaymistry Linux - Networking 3 09-02-2003 03:06 AM
Configuring internet connection/DNS address ShakyJake Linux - Networking 3 04-12-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:52 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