LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2005, 06:41 PM   #1
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Rep: Reputation: 30
Easy Gentoo network question...


Hello all,

Sorry about this one, but I was not able to find anything that would help me get going in the right direction....

I have installed Gentoo 2.4.28 and I have an SBC DSL connection via a 2Wire gateway. I know that I have to edit the

/etc/conf.d/net

which reads:

/etc/conf.d/net
$Header: /home/cvsroot/gentoo-src/rc-scripts/etc.conf.d/net,v 1.7 2002/11/18 $
Global config file for net.* rc-scripts
This is basically the ifconfig argument without the ifconfig $iface
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.
iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.255.0
For DHCP set iface_eth? to dhcp
For passing options to dhcpcd use dhcpcd_eth
iface_eth0="dhcp"
dhcpcd=eth0="..."
For adding aliases to a interface
alias_eth0="192.168.0.3 192.168.0.4"
NB: The next is only used for aliases.
To add a custom netmask/broadcast address to created aliases, uncomment and change accordingly.
Leave commented to assign defaults for that interface.
broadcast_eth0="192.168.0.255 192.168.0.255
netmask_eth0="255.255.255.0 255.255.255.0"
For setting the default gateway
gateway="eth0/192.168.0.1"

I did read the How-To on the Gentoo guide, but sadly to say, I am just not sure how to enter the info. Do I delete the page that is there and simply add the correct lines? Come to think of it, what are the correct lines add?

Much thanks!
Eric.
 
Old 02-22-2005, 07:04 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Is it like this WAN-modem-BoxA-BoxB
modem=207.170.82.202 BoxA eth0=192.168.0.1 eth1=192.168.0.1
boxB=192.168.0.3 ? To give you an idea this is the my box a (gentoo router)
Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.1.97 netmask 255.255.255.0 broadcast 192.168.1.255"
iface_eth1="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#iface_eth1="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
#
gateway="eth0/192.168.1.254"
192.168.1.254 thats my modems address
And this is my boxB
Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"


# For setting the default gateway
routes_eth0=( "default gw 192.168.0.1" )

Last edited by comprookie2000; 02-22-2005 at 07:18 PM.
 
Old 02-22-2005, 08:46 PM   #3
revenge80200
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Lenny & Xp
Posts: 238

Original Poster
Rep: Reputation: 30
Hay Comprookie,

Thanks for helping, but I think that I still have a bit to go. I just don't understand what I am looking at, and because of such, I don't know what to enter. Would you happen to know of a site where I could get some focused background on basic networking?

Thanks again,
Eric.
 
  


Reply



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
Gentoo network question /hme/usr Linux - Distributions 12 11-21-2005 02:09 PM
easy installation ? Gentoo Linux Daejavu Linux - Distributions 28 10-08-2005 05:18 PM
10 or so easy steps to install gentoo off cd. Nz_Boy_2004 Linux - Software 2 06-16-2004 01:26 AM
Do Gentoo Linux is easy for beginner? explorer1979 Linux - Distributions 4 06-07-2004 10:51 PM
Network Question(Easy) yshouldeye Linux - Networking 3 08-30-2003 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 PM.

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