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!

DEC Unix 4 IP Address Change

Status
Not open for further replies.

WoodieXP

Technical User
Aug 3, 2005
4
GB
I have an old DEC Unix 4 machine and am in need to change the gateway. I have managed to find the IP address and Netmask but was unsuccessful on finding the gateway.

Anybody able to help.
 
It is in /etc/routes. You may also need to adjust /etc/resolv.conf for DNS (BIND).

I hope that helps.

Mike
 
I was unable to find /etc/routes.

I did come across some conf files but I saw nothing in there that contained Gateway addresses.

Is there a command I can type in to change the gateway, or do it via the GUI??
 
In Solaris I have successfully used the following:

route -f add default <IP-Address> # -f = flush routing table entries first

Check the man pages first, it looks like it might work for DEC UNIX 4.0f (the version we have at the site where I work).

To make it permanent, create the file /etc/routes with the following contents:

default <IP-Address>

I hope that helps.

Mike
 
I think on version 4 you can use the netconfig or netsetup programs. Have a look at the man pages.
 
Hey

Still no joy. I have managed to change the IP and Subnet using the GUI.

Just need to get the gateway changed.

Will I have to edit a conf.
 
Hi,

not sure about this, as we haven't 4.0 systems any more. But, like Mike042, I think it should be in file /etc/routes.
Two ideas:

Have you read the manual?
man routes might help.

Create a file /etc/routes with contents as described above, and permissions 644.
You may have to restart your net services (or at least use a kill -HUP) in order to make the change effective.

hope this helps
 
Cool

Excellent

Got it working.

Thanks for all your help guys.
 
Hi WoodieXP,

In your original post you said/asked "I have an old DEC Unix 4 machine and am in need to change the gateway."

Now you are saying "Still no joy. I have managed to change the IP and Subnet using the GUI."

It sounds like you are trying to (maybe already succeeded in) re-configuring your network interface card and the system connectivity. (perhaps because you moving the system from one location/network to another ?)
If this is what you are trying to do, then use the netsetup command:
Choice 1 (Configure Network Interfaces)
delete then configure your network interface(s)
Choice 2 (Add Static Route)
No to rwhod
Yes to run (g)ated or (r)outed
Yes to add a static route
Use d for (d)efault
Enter the gateway IP address
Choice 5 (Exit)

I hope that helps.
(PS Please remember that specific questions usually get specific answers)

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top