CMSC 691X, Summer 1999

Chapter 14.  TCP/IP and Routing
Set up a network

Prepared by Yiqing Ren

Introduce:

Systems are smart todistinguish whether they are connected to a network or not.
boot sequence very different for networked and non-networked cases.

Designing and installing a physical network  will discuss in Chapter 15. Network Hardware.

This Section talk about non-hardware network setup topic:



Obtaining and Assigning Internet Addresses


ifconfig: configure Network Interfaces
ifconfig is used to enable or disable a network interface or  to configure network interface parameters.  ifconfig must be used at boot time to define the network address of each  interface present on a machine; it may also be used at a later time to redefine an  interface's  address  or  other operating   parameters.

route: Configure Static Routes

A example of Routing tables

Internet:
Destination                  Gateway                Netmask        Flags      Refs     Use       Interface
default                        130.85.100.1                               UGS        19   129178       ec0
127.0.0.1                   127.0.0.1                                     UH          10    46635         lo0
130.85.100                link#1                     0xffffff00        UC           0        0              ec0
130.85.100.125         127.0.0.1                                     UGHS      1     1934           lo0
130.85.101                130.85.100.150     0xffffff00        UG           0     2306           ec0
224                             link#1                    0xf0000000   UCS         0        0              ec0
255.255.255.255       130.85.100.255                           UGHS      0        0              ec0

 G      Gateway address. Destination requires forwarding by intermediary
 H       Host entry (net otherwise)
 U       route is up, usable
 S       Manually added route
 C      Generate new routes on use



routed: The Standard Routing Daemon

routed was a standard UNIX routing daemon



gated: A better Routing Daemon
 
Example Systems supported routing daemons
System
routed?
gated?
gated protocols
Solaris
Yes
No
 
HP-UX
No
Yes
HELLO, RIP, EGP, BGP
IRIX
Yes
Yes
HELLO, RIP, EGP
SunOS
Yes
No
 
OSF/1
Yes
Yes
HELLO, RIP, EGP
BSDI
Yes
Yes
HELLO, RIP, EGP, BGP

A example of configure file:

RIP yes ( yes means to be a RIP serevr mode if there is more than one interface, otherwise a passive listener -- quite mode)
EGP no
HELLO no

defaultgateway 128.138.243.120 rip passive. This line sets the default route for the local machine.
 



Boot-time Network Configuration