Find the answer to your Linux question:
Results 1 to 3 of 3
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    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
    Just Joined!
    Join Date
    Oct 2004
    Posts
    49

    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
    Linux Newbie
    Join Date
    Apr 2004
    Posts
    158
    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".

    //jonas
    --
    in Linux Computing we Trust

  4. $spacer_open
    $spacer_close

Posting Permissions

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