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 

Reply via email to