Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-11-2009, 09:23 AM   #1
LQ Newbie
Registered: May 2006
Posts: 18

Rep: Reputation: 0
setting up local network

I have just installed Fedora Core 10 on my PC(intel 945 G). Somehow my system is not able to boot in init 5(I am ok with it). So I am using text based mode of linux.

I want to set up this computer on lan. So I used utility system-config-network and gave the ipaddress and appropriate netmask.
after this when I am doing ifconfig -a , It is showing eth0 as having Ip given by me.At this point of time I tried to ping other computer on lan,But it did not work and system told me that destination is unreachable. I tried making down eth0 again,
Ifdown eth0
after that when I am trying to up it again
with ifup eth0, It is showing that
ADDRCONF(NETDEV_UP):eth0: link is not ready .

further ifconfig -a , Also does not show ip address given by me for eth0 device.

I have made entry in /etc/sysconfig/network-scripts/ifcfg-eth0 for IPADDRESS and netmask also have bootoption there as yes.

Can Someone please help me,Where exactly I am getting it wrong.

thanks in advance
Old 05-11-2009, 10:19 AM   #2
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
service network restart
Old 05-11-2009, 10:25 AM   #3
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
in /etc/sysconfig/network

GATEWAY= <--- whatever your gateway is
in /etc/sysconfig/network-scripts/ifcfg-eth0

HWADDR= 00:00:00:00:00 <--- whatever your MAC address is 
IPADDR=<--- whatever your ip us
NETMASK= <---whatever your subnet mask is 
in /etc/hosts

Code:            yourhostname localhost.localdomain localhost


service network stop
service network start


/etc/sysconfig/network-scripts/ifup eth0
Old 05-11-2009, 12:07 PM   #4
LQ Newbie
Registered: May 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks for above suggestion..
I have done changes as suggested by you, However I am getting same message of link is not ready ..
When I did

dmesg |tail

I am getting series of these messages
tulip_stop_rxtx failed (some address)
Old 05-13-2009, 06:21 AM   #5
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
mii-tool ?

# mii-tool eth0
Old 05-13-2009, 07:20 AM   #6
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,830
Blog Entries: 27

Rep: Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125Reputation: 2125

Since you are using a text console then I would setup a static IP first, do as root from cli;

~#ifconfig -a                      #get recognized devices
~#ifconfig eth0       #set to a available IP
~#route add default gw #set to your gateway
~#route -n                         #show the route table
~#ifconfig eth0 up                 #should be up already
~#ping                 #ping your gateway
~#ping      IP
~#ping                  #test DNS, if fail then
                                   #check /etc/resolv.conf
You should have your '/etc/resolv.conf' setup with your 'ISP DNS' nameservers.

 sample '/etc/resolv.conf';


nameserver   #ISP DSN 'replace
                             #with IP from your ISP
nameserver           #Verizon third level DNS
nameserver           #to use as fallback
If you are wanting to use name resolution on your LAN then as stated you will need to setup your 'hosts' file(s);

excerpt from 'man hosts'
hosts - The static table lookup for host names
This manual page describes the format of the /etc/hosts file. This file is a simple text file that associates IP addresses with hostnames, one line per IP address. For each host a single line should be present with the following information:

IP_address canonical_hostname aliases

Fields of the entry are separated by any number of blanks and/or tab characters. Text from a "#" character until the end of the line is a comment, and is ignored. Host names may contain only alphanumeric characters, minus signs ("-"), and periods ("."). They must begin with an alphabetic character and end with an alphanumeric character. Aliases provide for name changes, alternate spellings, shorter hostnames, or generic hostnames (for example, localhost). The format of the host table is described in RFC 952.

The Berkeley Internet Name Domain (BIND) Server implements the Internet name server for UNIX systems. It augments or replaces the /etc/hosts file or host name lookup, and frees a host from relying on /etc/hosts being up to date and complete.
~# cat /etc/hosts
# hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...
# By the way, Arnt Gulbrandsen <> says that
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
# For loopbacking.       localhost

#04-09-07 09:52 renew
# modem.workgroup modem        #dsl modem server.workgroup server      #server someuser.workgroupr someuser #some user
You can do a LQ search as this has been covered a lot.

Hope this helps!


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
DJB DNS - help setting up, local network andy holland Linux - Server 0 05-15-2008 06:42 AM
Setting up local network Tomermory Debian 40 07-19-2007 02:30 AM
Please help setting local network leonidg Linux - Networking 3 01-20-2005 06:35 AM
Setting up Mail server for Local Network Deep13 Linux - Software 2 10-30-2003 08:05 AM
Setting up a local network guyd Linux - Networking 12 08-10-2003 02:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:58 PM.

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