LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

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

Rep: Reputation: 30
still problem configuring ip and networking


Hi


In mandrake 10 I try to configure ip address I configured those files:
in /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.9
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
in /etc/sysconfig/network

HOSTNAME=juanbox
NETWORKING=yes
GATEWAY=192.168.1.1

in /etc/resolv.conf

nameserver 127.0.0.1
nameserver 192.168.1.1
nameserver 194.90.1.5 (the dns of my isp)

when I issue the ifconfig command I see that eth0 has the ip which I assign to it and also I see UP brodcast Runing which mean there is a link.

when I ping 192.168.1.1 I get destination host unreacble
the strange thing is that before I installed mandrake the machine was win xp and everything was fine so I guess it is not a hardware problem (cables etc..) .

I have another machine connected to the default gw which is a adsl router and everythings work great.

please help !
 
Old 12-30-2005, 07:39 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Did you restart the network as root user ( su - ) after making changes?

service network restart
 
Old 12-31-2005, 01:46 AM   #3
xinix
LQ Newbie
 
Registered: Sep 2005
Posts: 8

Rep: Reputation: 0
try:
#ifdown eth0
#ifup eth0

if not work yet, pls try
#route

and post the listed message here.
 
Old 01-02-2006, 02:55 PM   #4
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
the routes are fine and I also tried to reboot the system.nothing helped !!!!

Please help
 
Old 01-02-2006, 03:43 PM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Have you checked your broadcast mask? It should be 255.255.255.0 .
 
Old 01-03-2006, 03:28 AM   #6
juanb
Member
 
Registered: May 2002
Posts: 401

Original Poster
Rep: Reputation: 30
yes my brodcast mask if fine.

Thanks


Juan
 
Old 01-03-2006, 04:40 AM   #7
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Juanb, can you please also post /etc/hosts?
You should find at least 2 entries:
*the definition of 127.0.0.1 as "localhost"
*the definition of 192.168.1.9 as "juanbox" (if that's the name of your machine)

Quote:
Originally Posted by juanb
in /etc/resolv.conf

nameserver 127.0.0.1
nameserver 192.168.1.1
nameserver 194.90.1.5 (the dns of my isp)
Judging by your /etc/resolv.conf, you are contacting your own host (127.0.0.1 is
the loopback address for your machine) as primary DNS nameserver.
If your machine is indeed a DNS server, than this is OK (but you may want to check your
DNS configuration). If not, omit the line that contains "127.0.0.1" from /etc/resolv.conf.

Note also that only DNS servers may be listed as "nameserver" in /etc/resolv.conf.
If your network gateway is just a router/firewall (no DNS server), then you also need
to omit the line with "192.168.1.1" from /etc/resolv.conf.

In any case, DNS and your /etc/resolv.conf are not used when you ping to an IP-address (only
when you use a hostname, since DNS just translates hostnames to IP-addresses). So they can't be responsible for the "destination host unreachable".

You may also want to check if there are any firewalls preventing access to your gateway (192.168.1.1) (I mean, on your machine, the gateway or anywhere inbetween on the network).
They may need to be reconfigured.

Last edited by timmeke; 01-03-2006 at 04:42 AM.
 
  


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
problem configuring vmware...module problem? aw76 Linux - Software 6 01-08-2006 05:53 AM
Problems Configuring Networking rtwatts07 Linux - Newbie 5 08-07-2004 07:54 PM
Linux NooB.. Help configuring SuSe 9.1 Networking/Server dazzyboi Linux - Networking 9 07-28-2004 06:05 AM
Problem configuring JesusAddict3791 Linux - Software 6 07-31-2003 09:26 PM
Linux-Networking Configuring Samba and Firewall Pradeep Linux - Networking 0 11-26-2001 10:26 PM


All times are GMT -5. The time now is 11:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration