Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Urgent please] simple routing question with liveCd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
metv
n00b
n00b


Joined: 14 Dec 2004
Posts: 20
Location: Padova - Italy

PostPosted: Mon Dec 20, 2004 11:13 pm    Post subject: [Urgent please] simple routing question with liveCd Reply with quote

Hi! I'm writing from links2 :) 'cause i'm in the middle of stage 1.
Is it possible (and how can I do)to use the second eth adapter to share internet acces with my second pc (windows xp)? I think the biggest problem is that my isp assigned me only one ip and no more so i have to set up a simple router (no nat, no firewall, etc) with the restricted commad set of the live cd. thanks
t
Back to top
View user's profile Send private message
Vanquirius
Retired Dev
Retired Dev


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Mon Dec 20, 2004 11:18 pm    Post subject: Reply with quote

Can't you use masquerade? I think the LiveCD has iptables support, it should be easy to just assign a static IP to your second ethernet adapter and run a simple iptables forwarding script.

Have a look at this page.
_________________
Hello.
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Mon Dec 20, 2004 11:19 pm    Post subject: Reply with quote

it's not possible to just hook the other computer up to the internet? I ask because it's probably just going to be faster to unplug the cable modem for a minute, plug the other computer into it and then plug the cable modem back in (I'm assuming that it's a cable modem cauz this sounds like one of those deals ^_~)

Petyr
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Mon Dec 20, 2004 11:21 pm    Post subject: Reply with quote

metv,

You cannot share a single public IP between two PCs without NAT.

Code:
net-setup eth1
will set up eth 1 while you are doing a stage 1. You must execute it outside the chroot.

You could use your windows box to do internet connection sharing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum