LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can't connect (wired)to the internet on my toshiba laptop using redhat (https://www.linuxquestions.org/questions/linux-networking-3/cant-connect-wired-to-the-internet-on-my-toshiba-laptop-using-redhat-4175426288/)

Zahar2011 09-08-2012 04:39 PM

Can't connect (wired)to the internet on my toshiba laptop using redhat
 
hello i used to connect to the internet through the ethernet port of a router and the router connected to a medem, but all of a sudden i re-installed my rhel 6.0 and i had to go through the headache of detecting my ethernet card. Finally the card works. But now the problem is when plug the ethernet cable into the laptop port the two connection status screen on the taskbar change from no connection to connected but still i can't browse. I did the following:
1. ifup eth0 and ifconfig shows eth0 is working fine with the inet addr:192.168.5.102 Bcast:192.168.5.127 Mask:255.255.255.192

2. etc/sysconfig/network-scripts/ifcfg-eth0
Code:

DEVICE=eth0
BOOTPROTO=static
HWADDR=60:EB:69:A0:45:1B
IPADDR=192.168.5.102
NETMASK=255.255.255.192
ONBOOT=yes
GATEWAY= 192.168.5.1
# GATEWAY=ROUTER

3. /etc/sysconfig/network
Code:

NETWORKING=yes
GATEWAY=192.168.5.1

4./etc/resolv.conf
Code:

nameserver 41.184.111.2
nameserver 62.173.34.222

5. Then finally i restarted the network as follows but still i cant browse
Code:

/etc/init.d/network restart


remember that the 2 screen at the task bar that shows connection status shows i'm connected but still i cant browse. ANY HELP pls?

deadeyes 09-09-2012 07:56 AM

Please post ifconfig eth0 output.

Can you ping 192.168.5.1 ?


All times are GMT -5. The time now is 02:25 PM.