Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-15-2003, 02:50 PM   #1
LQ Newbie
Registered: Jan 2003
Location: Rapid City, SD USA
Distribution: Soon to be Gentoo
Posts: 15

Rep: Reputation: 0
Internet Sharing with DHCP connection to the Net

I'm planning on setting up a computer with Gentoo to act as a NAT router, Web server, etc. Right now I have everything working fine with Win2k on the server, but I'm going to do some hardware upgrades, and I figured this would be as good a time as any to put linux on.

This site was helpful.


However, where it says

/sbin/ifconfig eth0 XXX.XXX.XXX.XXX netmask broadcast XXX.XXX.XXX.255 - External network (internet)
/sbin/ifconfig eth1 netmask broadcast - Internal private network

How should eth0 be configured if my ISP uses DHCP?
Old 06-15-2003, 02:57 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
you're not really going to use ifconfig in that sense. To be honest I can't acutally remember HOW i set up my network on gentoo (the boot cd automatically configured it first of. from then i guess it was the "emerge system" which took care of it ???)

the information for the interfaces are going to be kept in /etc/conf.d/net, and it's much simpler than those examples. there's only two lines used to set up my workstation (which isn't routing anything):


much more straightforward. configuring the other interface is just a logic extension....

as for NAT and all that, if you don't feel like wading through iptables by hand, try "emerge firestarter" which will set up a nifty gtk2 based iptables interface, providing a firewall and NAT in one.

gentoo rocks.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing net connection with xp machine frosty_kgp Linux - Networking 1 08-23-2005 12:44 AM
trying to setup linux firewal/dhcp server but its not sharing the internet connection abefroman Linux - Networking 4 05-01-2005 04:39 AM
Sharing he net connection. BradAus Linux - Networking 1 04-05-2005 04:26 AM
Internet connection sharing and dhcp SolidSnake Linux - Networking 26 12-02-2003 10:23 AM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration