Latest LQ Deal: Latest LQ Deals
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 01-08-2004, 10:20 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
gentoo net setup

I am building a gentoo system using net-setup to manually configure my network with static ip. My question is what is a broadcast address. I am using a linksys router to connect my network. I already know what ip address I want to use. Is a broadcast address necessary for a non server machine? I will be running mysql server but no ftp, or web server. VNC may be run on occasion. Any help will be appreciated.
Old 01-08-2004, 12:17 PM   #2
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Copy and pasted from gentoo handbook (don't kill me):

Manual Static Configuration 

We need to setup just enough networking so that we can download sources for the system build, as well as the required localhost interface. The needed information is explained in the next table.
Information 	Description 	Example value
IP address 	The IP address you want to assign to your network card
Broadcast address 	The IP address which will broadcast the packets to all the hosts in the network
Network mask 	The mask which is used together with the IP address to see what part of the address is for network-identification and host-identification
Gateway 	The IP address of the computer which will forward the packets that are not meant for the local network (most of the time the computer which shares the internet connection)

Type in the following commands, replacing $IFACE with your network interface (typically eth0), $IPNUM with your IP address, $BCAST with your broadcast address and $NMASK with your network mask. For the route command, replace $GTWAY with your default gateway.

Code listing 4.6: Static IP Network Configuration

# ifconfig $IFACE $IPNUM broadcast $BCAST netmask $NMASK
# route add -net default gw $GTWAY netmask metric 1 $IFACE

Now it is time to create the /etc/resolv.conf file so that name resolution (finding Web/FTP sites by name, rather than just by IP address) will work. You can use nano -w /etc/resolv.conf to create /etc/resolv.conf. nano is a small and easy-to-use editor.

Here is a template to follow for creating your /etc/resolv.conf file:

Code listing 4.7: /etc/resolv.conf template


Replace and with the IP addresses of your primary and secondary DNS servers respectively.

Proxy Configuration 

If you are behind a proxy, it could be necessary to configure your proxy before you continue. We will export some variables to set up the proxy accordingly.

Code listing 4.8: Setting a Proxy

(If the proxy restricts HTTP traffic:)
# export http_proxy=""
(If the proxy restricts FTP traffic:)
# export ftp_proxy=""
(If the proxy restricts RSYNC traffic:)
# export RSYNC_PROXY="rsync://"

Note: If your proxy requires authentification, use a construct like (note the added "username:password@").

Networking is go! 

Networking should now be configured and usable. You should be able to use the included ssh, scp, links, irssi and wget commands to connect to other machines on your LAN or the Internet.

This should get you going in the right direction.

Old 01-08-2004, 12:23 PM   #3
LQ Newbie
Registered: Dec 2003
Distribution: Gentoo
Posts: 25

Rep: Reputation: 15
The simple solution that works most of the time: set the broadcast address to the IP address of your network card, with the last field changed to 255. So, if your card is, set it to
Old 01-09-2004, 03:37 PM   #4
LQ Newbie
Registered: Jan 2004
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks for the help, I really appreciate it. Kind of sweet when you can go some where and get some explanations without being flamed. Thanks again!!


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
Gentoo & Portage without 'Net drowbot Linux - Distributions 0 12-23-2004 02:50 PM
Gentoo Stage 1 install w/o 'net connection? CelticWhisper Linux - General 13 12-08-2004 03:11 PM
Gentoo - unable to ping net Adony Linux - Distributions 2 10-16-2004 12:18 PM
Need help with ethernet setup in Gentoo( During setup proccess) MimiMimi Linux - Distributions 2 07-19-2004 01:34 PM
Gentoo Install without Net Tez218 Linux - Distributions 4 09-10-2003 10:24 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:40 PM.

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
Open Source Consulting | Domain Registration