LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-20-2006, 11:41 PM   #1
lauren
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat9
Posts: 4

Rep: Reputation: 0
static ip settings not working in fedora 4


Hi,

I am running Fedora Core 4 trying to set up a server. The ethernet connection works fine with dhcp, but when I assign it my static ip I can't ping anything.

My /etc/sysconfig/networking/devices/ ifcfg-eth0:1 file says:

TYPE=ethernet
DEVICE=eth0
HWADDR=(macaddress)
BOOTPROTO=static
IPV6INIT=no
ONBOOT=yes
USERCTL=yes
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=(ip)
GATEWAY=(gateway)

and my /etc/resolv.conf has:
search (domain)
namespace (dnsserverip)

I can ping localhost. When I ping google it says unknown host, and when I ping any explicit ip it says destination host unreachable.

Also, when I set up dhcp internet access this file was set up by default with the line 'DEVICE=eth0:1' which I had to change for it to work. I doubt that's related... but anyway.

I'd really appreciate any help. I can give you any other information you want also.

Thanks.
 
Old 01-21-2006, 08:57 AM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
The first problem to overcome is your inability to ping IP addresses. Post the output of 'ifconfig eth0'. Sanitize it if you wish by removing your IP adx.
 
Old 01-25-2006, 01:49 AM   #3
lauren
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat9
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

Sorry, I meant to include that in my original post. Here is what ifconfig eth0 says:

Link encap:Ethernet HWAddr:[macaddress]
inet addr:[ip] Bcast:[bcast] Mask:255.255.255.0
inet6 addr: fe80::290:27ff:fe07:1410/64 Scope Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets: 1292 errors:0 dropped:0 overrun:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:228399 (223.0 KiB) TX bytes 3372 (3.2 KiB)

Thanks.
 
Old 01-25-2006, 06:24 AM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Can you ping your gateway?
 
Old 01-25-2006, 06:45 AM   #5
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Is there any reason why your IP address isn't showing, or your mac address, or gateway? These might be relevant here.
 
  


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
Static Network settings scott4957 Linux - Wireless Networking 2 11-16-2005 09:58 AM
how to config. network settings for having a static ip with a router kkeith Linux - Newbie 2 10-19-2005 05:00 AM
Static IP settings carlosinfl Linux - Networking 4 07-01-2004 06:29 AM
Static Arrays in php Not working ElementNine Programming 4 03-05-2004 10:29 AM
vnc and static settings... pablovschby Linux - Networking 15 12-07-2003 03:27 PM


All times are GMT -5. The time now is 12:48 PM.

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