Sharing of Internet Connection in Redhat Linux

Asked By 0 points N/A Posted on -
qa-featured

Hi there,

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.

Thank You.

SHARE
Answered By 0 points N/A #119066

Sharing of Internet Connection in Redhat Linux

qa-featured

Dear User,

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.

  • net.ipv4.ip_forword=1.

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.

Login/Register to Answer

Related Questions