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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with netconfig

Status
Not open for further replies.

josel

Programmer
Oct 16, 2001
716
0
0
US
How *NIXdudes!

I running SCO UNIX 5.0.5. Running netstat -nr gives me

Routing tables
Destination Gateway Flags Refs Use Interface
default 192.168.2.1 UG 0 27 65.185.89.232 192.168.2.1 UGH 0 3
127.0.0.1 127.0.0.1 UH 5 17516
192.168.2 192.168.2.3 UC 1 0
192.168.2.3 127.0.0.1 UGHS 1 18
224 192.168.2.3 UCS 0 0

How can I change 65.185.89.232 to 65.185.89.233? or should I ask How can I edit my routing table?

Thanks;

Jose Lerebours
KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
You can add and remove entries from the routing table using the commands "route add" and "route delete".
In the example you have mentioned you would need to first remove the current entry:

route delete 65.185.89.232

then add the new entry

route add 65.185.89.233 192.168.2.1

This will only add the entry for the current session. Once you reboot the server you will lose the new entry to the table. To get round this you can add a /etc/rc2.d script and the contents of the script would just be the route add command shown above.
 
Since you have 5.0.5 you could also just put

host 65.185.89.233 192.168.2.1

in /usr/internet/etc/sco_ip/routes
 
drtrinidad,

Is this also true for 5.0.6? I maintain a 5.0.6 version else where and wonder ...


Thanks;


Jose Lerebours
KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
It seems to be true for 5.0.6 - I took a look at a 5.0.6 system and /etc/rc2.d/S90iproute (which does the work of adding the routes) has the same checksum as in 5.0.5. I think the sco_ip directory in /usr/internet/etc is created when use the 'internet faststart' web-based configuration, but if you don't use that you can create it by hand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top