LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Closed Thread
  Search this Thread
Old 07-05-2007, 06:12 AM   #1
Ali87
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: Disabled
Question I can`t connect to the internet though ETHERNET in Fedora7


Hi Iam Ali ,iam newbie to fedora .I have a Realtek RTL8139 Family PCI Fast Ethernet NIC and it`s configured in Fedora but i can`t connect to the internet , i configured my connection using system-config-network , i shut down both the firewall and SElinux ,and used ifconfig but there was no response (when i try to ping a host the prompt shows an error message "network unreachable ")
i want to setup my network preferences to:

IP:192.168.1.10
NETMASK:255.255.255.0
GATEWAY:192.168.0.1
DNS:192.168.0.1

these preferences work on windows
any help
thanks
Ali
 
Old 07-05-2007, 07:05 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You could use DHCP if your router/server had it configured (this enabled you to automatically obtain the information rather than putting it in manually). In that case you would simply run (or have this run automatically) either of these commands, depending on whicn one you have installed (and if eth0 is not your ethernet device, change accordingly):
Code:
dhclient eth0
dhcpcd eth0
If you do want to manually enter the information above, you'll need to do several things. To setup the DNS nameserver for the system, edit (with any text editor, probably as root) the file /etc/resolv.conf and add (or edit, if there already exists) a line:
Code:
nameserver 192.168.0.1
if you want to configure several DNS servers, just add more lines with appropriate ip addresses. I think that should be in the beginning of the file, but it might not matter.

Your ip-address:
Code:
ifconfig eth0 down
ifconfig eth0 192.168.1.10 netmask 255.255.255.0 up
and so on. Probably though the easiest way is to setup these using the Fedora's grahpical tools (system-config-network or whatever). They do basically the same thing if I'm right. In RedHats/Fedora seris I've noticed that it's best to use the graphical tools, for some reason doing the very same stuff manually may make the grahpical programs go crazy.

Just one thing: your DNS server is in a different subnet than you yourself; it's 0.1 but you are 1.10 - not sure if this causes trouble, just curious.
 
Old 07-05-2007, 01:24 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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
I can`t connect to the internet though ETHERNET in Fedora7 Ali87 Linux - Networking 2 07-05-2007 07:15 AM
trying to connect to internet via ethernet midnightmax General 14 05-24-2007 06:59 PM
cannot connect internet at redhat 8 through ethernet mazlan Linux - Newbie 1 11-30-2005 04:41 AM
Ethernet adsl modem cannot connect to the Internet ZhiYi Linux - Networking 3 06-08-2003 04:11 AM
How do I connect to the internet using an Ethernet Card? Rutnut Linux - Networking 5 03-17-2002 01:01 PM

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

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