Internet

17 Oct 2000

Home
Contact Support
Search
Quick Index

Internet Services

TCP/IP Support

Vendor Links


UNIX TCP/IP Configuration Information

Make sure that you are logged in as root.

1) Set the IP address of the Ethernet interface.

ifconfig eth0 a.b.c.x netmask 255.255.255.0

(The netmask is very important if using a 38 address.)

2) Set the default route (this is so that traffic can get to the outside world)

route add default a.b.c.1  1

a.b.c.1 is the IP address of your router.

3) Next we must make sure the name resolution is set up properly.

There are two methods for setting up DNS resolution:

a) Set up a dns resolver.
b) Set up a full blown name server.

For setting up a name resolver only on most Unix systems:

First choose the two closest resolvers from the DNS name resolvers list.

Add the /etc/resolv.conf:

domain company.com
nameserver 38.9.211.2
nameserver 38.9.212.2

Here are some known exceptions:

IRIX

Add /usr/etc/resolv.conf

domain company.com
hostresorder nis bind local
nameserver 38.9.211.2
nameserver 38.9.221.2

(If you are not using NIS, leave nis out of the hostresorder line.)

OS/2

Create a /etc/resolv file (note: no .conf)

domain company.com
nameserver 38.9.211.2
nameserver 38.9.221.2

On SCO Unix only enter one nameserver.

On HP Unix only enter one nameserver.

DEC Ultrix

Add a /etc/resolv.conf file:

domain company.com
nameserver 38.9.211.2
nameserver 38.9.221.2

Also modify the /etc/svc.conf file, either by hand or with the "svcsetup" tool.

You should have a line like this:

hosts=local,bind

for hosts file checked before DNS.

For NIS, make it look something like this:

hosts=yp,bind,local

Solaris 2.1, 2.2 using NIS, NIS+ or standalone machines:

1) Create /etc/resolv.conf with contents:

domain company.com
nameserver 38.9.211.2
nameserver 38.9.221.2

2) Check /etc/netconfig

Verify that the "udp", "tcp", and "rawip" lines have

switch.so,tcpip.so

in the final column. For your reference, the entire lines are included at the bottom of this doc.

3) Modify /etc/nsswitch.conf

This file determines the order that the the machine will look for information.

Change the "hosts" line to be as follows:

hosts:	nisplus dns [NOTFOUND=return] files

Assuming the site uses NIS+. For NIS (non-plus):

hosts:	nis dns [NOTFOUND=return] files

And for no NIS, with hosts file checked before the DNS:

hosts:	files dns [NOTFOUND=return]

Sample /etc/netconfig File (Solaris 2.2)

#
# The "Network Configuration" File.
#
# Each entry is of the form:
#
#       <network_id> <semantics> <flags> <protofamily> <protoname> <device> \
#               <nametoaddr_libs>
#
udp       tpi_clts      v   inet      udp   /dev/udp       switch.so,tcpip.so
tcp       tpi_cots_ord  v   inet      tcp   /dev/tcp       switch.so,tcpip.so
rawip     tpi_raw       -   inet      -     /dev/rawip     switch.so,tcpip.so
ticlts    tpi_clts      v   loopback  -     /dev/ticlts    straddr.so
ticotsord tpi_cots_ord  v   loopback  -     /dev/ticotsord straddr.so
ticots    tpi_cots      v   loopback  -     /dev/ticots    straddr.so

Sample /etc/nsswitch.conf File (Solaris 2.2)

(Don't forget to change the hosts line!)

#
# /etc/nsswitch.conf;
#
# This was copied from from the example file /etc/nsswitch.nis by the automatic
# boot procedure.
#
# "hosts:" and "services:" in this file are used only if the /etc/netconfig
# file contains "switch.so" as a nametoaddr library for "inet" transports.
# the following two lines obviate the "+" entry in /etc/passwd and /etc/group.
passwd:	files	nis
group:	files	nis
# consult /etc "files" only if nis is down.
hosts:		nis [NOTFOUND=return] files
networks:	nis [NOTFOUND=return] files
protocols:	nis [NOTFOUND=return] files  
rpc:		nis [NOTFOUND=return] files
ethers:		nis [NOTFOUND=return] files
netmasks:	nis [NOTFOUND=return] files
bootparams:	files nis
publickey:	nis [NOTFOUND=return] files
netgroup:	nis
automount:	files nis
aliases:	files nis
# for efficient getservbyname() avoid nis
services:	files nis

TopHomeContact SupportSearchQuick Index