Question

Setting the default gateway for SCO Openserver 5

Asked by: dexweaver

I have 2 SCO UNIX boxes that I've inherited as a new sysadmin.  I'm not very familiar with UNIX, so bear with me :)

1. How do you figure out exactly what version you're running?  I know it's 5, but beyond that...

2. Once I get that answer, I'll need to know how exactly to set a default gateway that will last after the next boot.  As of now, we're surviving on typing "/etc/route add default 10.x.x.x" after each startup!

Thanks,
dexweaver

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2002-08-29 at 21:25:23ID20345201
Tags

sco

,

gateway

,

default

,

openserver

Topics

Unix Networking

,

SCO Unix

Participating Experts
5
Points
400
Comments
29

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SCO
    What is SCO UnixWare and SCO OpenServer ? Is there any relationship between them ? Andrew
  2. TCP/IP SCO Openserver 5.0.2
    Hi All, I was just wondering if anyone could point me towards a patch that would allow SCO Openserver 5.0.2 to support TCP/IP communication. thanks.
  3. Time synchronization with SCO OpenServer
    I am trying to use timed to synch the time on servers for multiple networks. We are running SCO OpenServer Release 5 with Efficient SpeedStream routers connecting 100+ restaurants to a corporate server. The netmask is the same for each restaurant, but the broadcast address ...
  4. SCO OpenServer 5.0.5 Processor Choices (Celeron?)
    With the new release of the P4 and newer AMD processors, it has become very hard to find processors to get to work with our systems. Before I keep going, please if your going to post to tell me to upgrade or to switch to another breed of UNIX, please do not post as we cannot...
  5. SCO Openserver - low on space
    is there a simple command to find out how much space i have left on a particular drive? my root was running low and I have freed up some space, not sure how much % i have freed up. i am running SCO openserver 5

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: yuzhPosted on 2002-09-02 at 02:05:01ID: 7255947

login as root

1.
type in :
uname -a

to find out your OS version.

2. if you are not familiar with UNIX, use SCO admin tools to do the job.

if you are running SCO Openserver 5.X (including Enterprise version)

type in:
scoadmin <enter>
and make the change.

if you are running on 3.x or older, use "sysadm" command
but you should thing about the OS upgrade at least to SCO 5.0.5 .

 

by: dexweaverPosted on 2002-09-03 at 05:49:13ID: 7258766

Thanks yuzh,

1. I found out that one server is running 5.0.4, the other 5.0.5.

2. We tried to use the scoadmin before, but the default gateway settings are nowhere to be found.  There is something odd called a "broadcast address", but its structure is not that of a gateway ip.

The 5.0.4 box is going away in less than a year, so it's not worth the pain or expense of upgrading.

 

by: yuzhPosted on 2002-09-03 at 07:26:19ID: 7259009

Not much different between sco 5.0.4 and 5.0.5, when you run scoadmin, look at the network manager, it should be there.

or try:

vi /etc/gateways
and
vi /etc/networks

 

by: dexweaverPosted on 2002-09-03 at 07:32:42ID: 7259026

I've looked in scoadmin's network manager.  There is no mention of routing or gateways.

There is no gateways file in /etc.

This is the listing in the /etc/networks file:

ce
loopback   127
test-net   192.0.2
multicast  224

 

by: yuzhPosted on 2002-09-03 at 07:34:17ID: 7259030

You need to have a look at /etc/default/tcp file
and change the GATEWAY variable (configure a default route by supplying the IP address of the system to which network traffic should be directed if no other routes can resolve the destination)

 

by: dexweaverPosted on 2002-09-03 at 07:57:48ID: 7259080

Here are the contents of /etc/default/tcp

DOMAIN=
NETMASK=
BROADCAST=

Doesn't look like this file is being used by anything!

 

by: yuzhPosted on 2002-09-03 at 08:01:16ID: 7259090

try :

As root either on the console or in an xterm (with TERM set to xterm)
run the command

     # /etc/inet/menu
     
Then either reboot or run the script
     # /etc/inet/rc.restart  # restart inetd and internet software

 

by: dexweaverPosted on 2002-09-03 at 08:02:48ID: 7259091

Here are the contents of /etc/default/tcp

DOMAIN=
NETMASK=
BROADCAST=

Doesn't look like this file is being used by anything!

 

by: dexweaverPosted on 2002-09-03 at 08:09:11ID: 7259111

There is no /etc/inet/ directory.

 

by: dexweaverPosted on 2002-09-03 at 08:54:41ID: 7259226

There is no /etc/inet/ directory.

 

by: chris_calabresePosted on 2002-09-03 at 13:39:24ID: 7259824

Is there some reason you need to run SCO? It's very very very old.

If you have $$$$, upgrade to UnixWare (later version from SCO).

If you don't have $$$$, but don't have any particular dependancies, consider Linux or FreeBSD.

 

by: dexweaverPosted on 2002-09-03 at 14:16:44ID: 7259933

We have to run SCO until next year.  Long story...

As of right now I'm beginning to believe that UNIX isn't all it's cracked up to be.  This would be a 10 second operation in Windows 2000.  Don't mean to stir any pots here, but shouldn't this be an easy thing to do???

 

by: yuzhPosted on 2002-09-03 at 18:12:06ID: 7260222

I just forgot to ask you a basic question, could you please post the output of

uname -a

from my memory there are some differet between the Enterprise version and just a normal OpenServer Host system. The Enterprise system has more network support, the Open Host likely just stand alone.

SCO UNIXWare hade /etc/inet

But in the worst case you can edit /etc/gated.conf (default
not on the system, do "man gated.config" to find out the details), or edit /etc/rc2.d/S90iproute file to manually put your routing infor there.


 

by: yuzhPosted on 2002-09-03 at 19:02:17ID: 7260312

You can try this work around: (please replace 10.1.36.1 with the REAL IP)

route add default 10.1.36.1

would set the default route to 10.1.36.1, but that would not survive a reboot

You could add the command to a start-up file (/etc/rc2.d/S99route, for example: it doesn't exist, but you can create it)



 

by: chris_calabresePosted on 2002-09-04 at 05:18:57ID: 7261301

This is an easy thing to do in a modern Unix variant. It's not easy in Windows for Workgroups either.

 

by: dexweaverPosted on 2002-09-04 at 07:31:43ID: 7261642

Okay,

The output of uname -a:
Older server: SCO_SV fkgsrv03 3.2 2 i386
Newer server: SCO_SV unixsrva 3.2 5.0.5 i386

I believe I failed to mention that both are running SCO OpenServer.  Sorry about that.

We've tried the S90iproute and S99route (saw these on the Caldera website) and they didn't work.  It's as if the server is ignoring common IP files and working off something else...

Last night, per instructions by a consultant, we added a line to the /etc/default/tcp file:
/etc/route add default 10.x.x.x 0 > /dev/null 2>&1
This seemed to work when we typed netstat -rn.  The route table showed the following line:
default 10.x.x.x UGS 0 0 net0
However, after typing the route add line manually, the entry is this:
default 10.x.x.x UCS 0 0 net0

The difference only appears to be in the "flags" column (UCS=right,UGS=wrong).  Our consultant doesn't know what the flags mean.  This could be the key?!?!!!?!

Can you decipher, yuzh?

 

by: yuzhPosted on 2002-09-04 at 08:16:57ID: 7261759

I can remember what does it mean now (I have not use SCO 5.0.4 OpenServer Host for about 2.5 year), do a man route
to find out. Please pay attention to the way it specify the IP. (There might be something different between the OLD SCO and the New one. and Some of the network features are not available in the SCO Host system, Enterprise is the FULL Version )

 

by: yuzhPosted on 2002-09-04 at 08:18:44ID: 7261766

Sorry, I mean I can not remember ! The keyboard is going too fast !

 

by: dexweaverPosted on 2002-09-04 at 08:56:06ID: 7261852

I did a "man netstat" to find out what the flags mean:

U = up
G = gateway
C = clone (?)
S = static

I don't know what to look for in the "man route" command, but nothing there seems to indicate how to keep this routing table entry from becoming a "clone".

 

by: yuzhPosted on 2002-09-05 at 01:06:03ID: 7263845

Do a man route to find out the options/modifiers.

Try the following command:

/etc/route add default your-gateway

to see if anything happen.

If it doesn't work, try the do the followings:
    /etc/route add NIC-IP 127.0.0.1
    * setup route from localhost to the interface(your box ip)
    /etc/route add gateway-ip NIC-IP
    * setup route from the interface to your gateway.

 

by: dexweaverPosted on 2002-09-05 at 07:11:07ID: 7264598

yuzh,

If you'll notice, in the original question I stated that we are typing /etc/route add default 10.x.x.x after every reboot.  This does work.  

Please also refer to the comment I posted 09/04/2002 07:31AM PST.  This demonstrates the difference between entering the line in the /etc/default/tcp file and typing manually.  I really believe that the "C" flag is the key here.

dex

 

by: yuzhPosted on 2002-09-05 at 07:45:05ID: 7264694

Have you try to put :
  /etc/route add default 10.x.x.x

  In a startup script (call it something like /etc/rc2.d/S99route or whatever), instead of putting it in  the /etc/default/tcp file
  See what happen !

 

by: dexweaverPosted on 2002-09-05 at 08:29:45ID: 7264791

Please see my comment from 09/04/2002 07:31AM PST.

Maybe it would be helpful for you to read everything through one more time.  I'm beginning to repeat myself a bit :)

dex

 

by: yuzhPosted on 2002-09-05 at 18:22:20ID: 7266101

ok try to use:

route add -cloning /etc/route add default gateway-ip


PS: the command line modifiy -cloning is available in  
    Solaris, I'am not sure that if it work in SCO or not,
    Just give it a try.

      Routing Flags
     Routes have associated flags which  influence  operation  of
     the  protocols  when  sending to destinations matched by the
     routes. These flags may be set  (or  sometimes  cleared)  by
     including  the following corresponding modifiers on the com-
     mand line:
     Modifier                    Flag                      Description

     -cloning             RTF_CLONING           generates a new route on use
     -xresolve            RTF_XRESOLVE          emit mesg on  use  (for  external
                                                lookup)
     -iface               ~RTF_GATEWAY          destination is directly reachable
     -static              RTF_STATIC            manually added route
     -nostatic            ~RTF_STATIC           pretend route added by kernel  or
                                                daemon
     -reject              RTF_REJECT            emit  an  ICMP  unreachable  when
                                                matched
     -blackhole           RTF_BLACKHOLE         silently  discard  pkts   (during
                                                updates)


    If this can't solve your problem, I thing we have to wait for someone currently work with SCO boxes or you figure it out by yourself.

Good luck on this one.

    In the future, if you are thinking about the OS change, Linux, Solaris, FreeBSD might be the options. Easy to get support.


 

by: dexweaverPosted on 2002-09-13 at 18:29:49ID: 7279739

It appears that I failed to make sure the S99route file name began with a capital "S".  A lower case "S" is ignored altogether.

Thanks for your help, yuzh!

dex

 

by: yuzhPosted on 2002-09-15 at 17:51:38ID: 7283170

You are welcome. To enable a start up script, the file name must be start with Capital "S", to disable it just simplely rename the script name, the most commond one is to use lower case "s".

 

by: thankinsPosted on 2002-12-10 at 11:25:46ID: 7561546

dexweaver, I have a SCO_SV nibstest 3.2 5.0.6 i386, to resolve the problem you are having I added the gateway to the /etc/tcp file and it worked.

DOMAIN=
NETMASK=
BROADCAST=
GATEWAY=

 

by: Bret_HedringtonPosted on 2003-01-21 at 14:46:10ID: 7774828

Borrowed fron another source...Easier than typing...

Setting a default route is easy:

route add default xxx.xxx.xxx.xxx

is all it takes.  However, unlike NT systems (which stick it in the Registry), that won't survive a reboot.

If you have 5.0.6, you have the file /etc/default/tcp and you can edit that to add the route to the

GATEWAY=

line.

If you have 5.0.4 or 5.05, a nice place to add routes is /usr/internet/etc/sco_ip/routes.  The startup script /etc/rc2.d/S90iproute reads that file and sets routes.  The format is pretty obvious:

# comments are ok
# simple form
net default 10.1.1.3
# it's smart enough to delete the previous default
net default 192.168.1.2
# routes to specific hosts
host 192.168.1.8 10.1.1.7
# netmasks optional
net 192.168.1.0 10.1.1.3 255.255.255.0
# if field 1 isn't host or net, it's ignored
happiness 172.16.80.10 10.1.1.1
sanjose 172.16.80.10 10.1.1.1

Prior to 5.0.4, some folks would  edit /etc/tcp to add the "route add" line.  That has the advantage  of letting you use tcp stop and tcp start and have the route set, but keep in mind that an upgrade will overwrite /etc/tcp.

The typical solution pre 5.0.4 is to add a /etc/rc2.d/S99route file and add the "route add" command to it.(the file does not exist- you have to create it).  Remember to make it executable (chmod 755).

Keeping the route on any version can be affected by running  programs like routed- a router on the network may have a different idea what routes should be set, and it may send RIP updates- if routed is running on your system, your routing table will change.  Comment routed out of /etc/tcp to disable it.

Note that a device on the other side of a router has to have a route BACK to you also.

Also, you need to reboot or manually type the route add command to have this work immediately

 

by: datenstromPosted on 2009-09-30 at 11:16:10ID: 25461667

hi bred,

very helpful your post. we have copied your text to our faq system http://faq.datenstrom.at to conserv it and put the link back to this post. thank you

gerd moser datenstrom og feldkirch austria

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...