N/APosted on - 08/26/2011
In Windows OS, Internet connection can be shared to other LAN or Wireless LAN. I am using Redhat Linux 6 and I have two LAN card in my PC. How can I share Internet connection from one LAN card to another LAN card in Linux? Please, provide me the solution ASAP. This is mandatory for me to share the Internet connection.
Sharing of Internet Connection in Redhat Linux
Yes you can do it very easy. You need to configure two files only to share internet with two LAN card in Linux. Please follow.
First: please open terminal or log in text mood with root user. Then apply below command.
# vi /etc/sysctl.conf then press enter.
Now please go to bottom in this text file and remove Hash sigh (#) from in front of below line.
After does this please save file.
Second: Please apply another command for DNS set. Then press below command.
# vi /etc/resolve.conf then press enter.
May you get this file empty. If it is empty then please write as below:
nameserver (DNS IP WILL BE PUT HERE).
Then save and restart the network service. Use below command.
# service network restart or.
# /etc/init.d/network restart.
Hope your problem solve.