using RHEL5 as a router
- by gopikrishna7779
Dear Sir,
I am planning to use a RHEL5 installed computer as a internet connection sharing device.
I mean I want to share the internet connection through it
I have installed 2 Lan cards in it eth0 and eth1
eth0 Internet
eth1 LAN
eth0 configuration as follows ;
Ipaddress : 115.252.64.187
Subnet : 255.255.255.240
Gateway : 115.252.64.177
I wrote the following entries in Vim /etc/resolv.conf
nameserver 202.138.96.2
(preferred DNS Server)
nameserver 202.138.103.2
(secondary DNS server)
:q!
then
eth1
ipaddress : 192.168.1.1
subnet : 255.255.255.0
gateway : 192.168.1.1
(I am confused which gateway I need to use in the above scenario)
I am unable to ping to my lan and I am able to connect to the Internet.
Please let me know the sollution for this.
Thanks in advance.
regards,
G.Gopi Krishna