LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   I can`t connect to the internet though ETHERNET in Fedora7 (https://www.linuxquestions.org/questions/linux-networking-3/i-can%60t-connect-to-the-internet-though-ethernet-in-fedora7-566795/)

Ali87 07-05-2007 06:12 AM

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

b0uncer 07-05-2007 07:05 AM

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.

acid_kewpie 07-05-2007 01:24 PM

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.


All times are GMT -5. The time now is 11:08 PM.