1753259 Members
5222 Online
108792 Solutions
New Discussion юеВ

Re: tcpip set route

 
SOLVED
Go to solution
mikew_3
Advisor

tcpip set route

Hello,

Here are my current defined routes:

TCPIP> sho route

DYNAMIC

Type Destination Gateway

AN 0.0.0.0 10.7.8.1
AN 10.7.8.0/24 10.7.8.214
AH 10.7.8.214 10.7.8.214
AH 127.0.0.1 127.0.0.1
AN 172.18.20.0/24 172.18.20.111
AH 172.18.20.111 172.18.20.111
AN 192.168.254.0/24 192.168.254.10
AH 192.168.254.10 192.168.254.10
TCPIP>


I add an additional route similar to this route:

AN 172.18.20.0/24 172.18.20.111

How do I format the set route command to add a route for 172.16.20.0/24?

I can not figure how to format the command. Any help would be appreciated.

Here are some more details you may want:

TCPIP> sho ver

HP TCP/IP Services for OpenVMS Industry Standard 64 Version V5.6 - ECO 3
on an HP rx2660 (1.59GHz/12.0MB) running OpenVMS V8.3-1H1

TCPIP>
TCPIP> sho interface
Packets
Interface IP_Addr Network mask Receive Send MTU

IE0 172.18.20.111 255.255.255.0 6220 183 1500
LO0 127.0.0.1 255.0.0.0 0 0 4096
WE0 192.168.254.10 255.255.255.0 646620 245 1500
WE1 10.7.8.214 255.255.255.0 158228 29890 1500
TCPIP>

The current version of VMS is:
OpenVMS V8.3-1H1

Thanks,
Mike

2 REPLIES 2
Hoff
Honored Contributor
Solution

Re: tcpip set route

Could you elaborate on what part(s) of the TCPIP> HELP SET ROUTE help text or the route stuff in the manuals are causing confusion, or what you've tried, or what errors you've received? (That'll help us tailor the answer...)

Here's some documentation on this:

http://www.openvms.compaq.com/doc/732final/6526/6526pro_005.html

The general format is:

TCPIP> SET ROUTE destination
[/NETWORK]
[/MASK= bitmask]
/GATEWAY= host
[/PERMANENT]

Probably:

TCIPIP> SET ROUTE 172.18.20.0 /MASK=24 /NETWORK /GATE=172.18.20.111 /PERMANENT

Though I don't have a box to try this right now.
mikew_3
Advisor

Re: tcpip set route

I didn't have the syntax correct for the /mask switch.

You example worked perfectly.

Thanks!
Mike