Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Sharing Internet Connection

    I have a desktop and a lap top both have fedora core installed.
    My desktop eth1 is directly connected to internet via cable modem and eth0 is connected to a hub.Unfortunately my cable modem doesnot support dhcp and I dont know how I can share myconnection between 2 pc.

  2. #2

    Re: Sharing Internet Connection

    the one wich is connected to the internet needs two NIC's.

    one to connect to the outside (internet) and to do nat and the other needed to have a crossover cable directly to the second 'puter.

    use iptables to do the nat stuff for you.

  3. #3
    The iptables stuff...

    iptables -t nat -A POSTROUTING -j MASQUERADE

    also edit the /etc/sysctl.conf and change the ip_forward = 0 to 1. then do "sysctl -p".

    in Linux Computing we Trust


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts