The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #9 (permalink)  
Old 12-22-2007
porter porter is offline
Registered User
 

Join Date: Jan 2007
Posts: 2,965
First of all, plan your network.

Make a table as follows....

Code:
interface   network    netmask    broadcast    address
and under each write the

(a) name of the interface, eg rt0 etc

(b) the network it will be connected to, eg 192.168.1.0/24

(c) the netmask it will use, eg 255.255.255.0

(d) the broadcast address it will use, eg 192.168.1.255

(e) the address this interface will have on this network, eg 192.168.1.1

do this for every interface. If the interface is to be configured by DHCP then write DHCP in the address column.

Once you have done that determine the address of your default route and which interface is connected to that address. If the network/netmask don't tally with the gateway you will not talk to it.

To configure a static address use

ifconfig rt0 inet 192.168.1.1 netmask 255.255.255.0

read the following....

man ifconfig
man ifconfig.if
man mygate
man resolv.conf