Regarding connecting to internet from RHEL 5 server

Dear All,

I have a RHEL 5 server of 64 bit . I have disabled the firewalls and added the name server also in resolv.conf.

I want to connect to internet inorder to link the machine with Linux Network.

# I could not connect to any website from this server for ex

ping google.com is not working .

So I need to configure internet in this server...Pl give me some ideas on this.....

Not sure the file name in /etc,
But you need to edit a file similar
To name defaultrouter, with one line
For IP of router.

In another file you need to edit the
Box IP Address.

They are all in /etc.

Dear Richard,

Can u pl explain in detail...

Thanks

Try using the system-config-network tool.

See https://access.redhat.com/site/documentation/en-US/Red\_Hat\_Enterprise\_Linux/5/html/Deployment_Guide/ch-network-config.html

Dear Murphy,

Is there any way to add http_proxy address in my export variable and then try for connecting it to internet and access google etc.

Apart from adding the proxy address profile , are there any additional steps that needs to be taken in accessing the internet.

I searched the docs mentioned by you..but could not get a clear picture...

The default firewall rules won't block access to websites.

You haven't shown us your configuration, so how can we know what's wrong?

Post the contents of:

  • /etc/sysconfig/network-scripts/ifcfg-eth0 (assuming eth0 is the correct interface)
  • ifconfig eth0 (again assuming eth0 is the correct interface)
  • /etc/resolv.conf
  • /etc/sysconfig/network

Also, are you running "RHEL" on a physical server or in a VM?

Dear Scott,

Pl find the below details.....

1.cat /etc/resolv.conf
search localdomain
nameserver      xxx.30.3.1
2.cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82576 Gigabit Network Connection
DEVICE=eth0
BOOTPROTO=none
BROADCAST=xxx.30.7.191
HWADDR=00:21:28:E7:93:32
IPADDR=xxx.30.7.163
NETMASK=255.255.255.192
NETWORK=xxx.30.7.128
ONBOOT=yes
GATEWAY=xxx.30.7.190
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
 
3.cat network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=sun2

I am running RHEL on a physical server .

Thanks and Regards
Rj

Do you have working network on the machine? Run

ifconfig

and post the result. Please also post the complete output from ping google

Dear Scott ...I did not get any reply from you,...kindly look at my outputs.RgdsRj

---------- Post updated at 11:04 PM ---------- Previous update was at 11:02 PM ----------

Dear joer..

I dont have any working machine run