Originally Posted by naveen_cs321
i m not able to connect to internet on my RED HAT Enterprise linux server.
steps i had taken:
i have entered all the info
2. vi /etc/resol.conf
here also i put the default gateway address
You do not put your gateway address in /etc/resolv.conf...
The last time I successfully configured my FC3 system to connect to the internet manually, I did the following:
1. Ensure that your networking hardware is working, and that you do not need to load additional kernel modules.
2. Put a list of your DNS servers (not your gateway address!) in /etc/resolv.conf
3. Setup /etc/sysconfig/network (at least, on Fedora that is what you setup):
where GATEWAY is your router / switch that connects you out to the internet, i. e. your "gateway".
4. Add the following to /etc/rc.local (or whatever file your distro runs as on-boot startup script):
/sbin/ifconfig eth0 down
/sbin/ifconfig eth0 10.0.0.8 netmask 255.255.255.0 broadcast 10.254.255.255 up
/sbin/route del default
/sbin/route add default gw 10.0.0.2 eth0
- eth0 is the hardware device node for your ethernet hardware (usually provided by your ethernet device driver)
- 10.0.0.8 is the IP address you wish to assign to your Linux system
- 10.0.0.2 is the address of your gateway / router / switch that connects you to the internet
After you have done this you should be able (on rebooting) to do
[rylan@development txt]$ ping google.com
PING google.com (126.96.36.199) 56(84) bytes of data.
64 bytes from yx-in-f100.google.com (188.8.131.52): icmp_seq=1 ttl=46 time=376 ms
64 bytes from yx-in-f100.google.com (184.108.40.206): icmp_seq=2 ttl=46 time=373 ms
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 373.923/375.359/376.795/1.436 ms
All you then need to do is startup a web browser and start surfing.
Hope this helped!