i remember one member of our calcutta lug using the machine with two ethernet cards to connect to the service provider (the other ethernet card being used to connect to the local area network)
i guess he was using a switch .. you don't want to use a switch/hub ? ----- Original Message ----- From: Shakthi Kannan To: [email protected] Sent: Monday, April 30, 2007 11:46 AM Subject: Re: [TwinCLinG] help required. urgent! Hi, --- rajesh reddy <[EMAIL PROTECTED]> wrote: > I have a broadband internet connection. How is it connected (USB/ethernet)? > The isp guy has given me one ip address, dns and > gateway info. > Both the systems have ubuntu 7.04 installed on them > system 1 has two ethernet cards Setup Internet on system1. Connect one of the ethernet cards on system 1 to system 2. Use the following on system1: #!/bin/bash iptables --flush -t nat iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo "1" > /proc/sys/net/ipv4/ip_forward eth0 is the Internet connectivity interface in the above example. HTH, SK -- Shakthi Kannan http://www.shakthimaan.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------------ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.463 / Virus Database: 269.6.1/777 - Release Date: 4/26/2007 3:23 PM [Non-text portions of this message have been removed]
