Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding ip address to sco unix 2

Status
Not open for further replies.

vallen

IS-IT--Management
May 16, 2001
1
US
I need to know how to setup new ip addresses, subnet, and dns to my sco open server release 5 system. How do I do this?
 
I am using SCO 5.0.5 on one of my machines here and I use netconfig to set an IP address with my NIC card. Should work for you as well.
 
DNS

you want the machine to resolve DNS or ACT as an actualy name server.

TO simply resolve dns add this file. /etc/resolv.conf

nameserver 192.168.1.1 #primary nameserver
nameserver 192.168.1.2 #secondary nameserver
serach mydomain.com

To configure an IP address and subnet the scoadmin (netconfig) mangaer will work.

or

check out the ifconfig command
man ifconfig

You may also want to set up a default route (gateway)

route add default 192.168.1.3



-Danny






 
I´ve had several problems when changing ip, and such, using scoadmin.
Try to manually change the settings using ifconfig AND run a text-editor on /etc/rc2.d/S85tcp to make the same changes there. The section where you should enter the information is...
#
# Interface configuration -- edit as appropriate.
#

you should add the default route here (/etc/rc2.d/S85tcp) as well.

you should look into the manual pages for ifconfig but here´s some examples...

ifconfig lo0 127.0.0.1 perf 57344 57344 1
sets the localhost ip

ifconfig -p net0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 perf 24576 24576 1
sets ip of first NIC.

/etc/route add 0.0.0.0 192.168.0.254 1
routes traffic to ip 192.168.0.254 /Sören
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top