Operating System - OpenVMS
1752530 Members
4310 Online
108788 Solutions
New Discussion юеВ

TCPIP under VMS - alias ip address on same interface

 
J Asson
Advisor

TCPIP under VMS - alias ip address on same interface


Is there a means of making the following TCPIP command permanent without having to reconfigure with each system reboot ?

$ tcpip ifconfig ie0 alias 192.168.22.120 netmask 255.255.255.0
$ tcpip route add 192.168.6.0/24 192.168.22.254
8 REPLIES 8
Steven Schweda
Honored Contributor

Re: TCPIP under VMS - alias ip address on same interface

I don't actually use it these days, but I'd
assume that the normal method is to add the
commands to an appropriate system start-up
command procedure. If there's a TCPIP SET
CONFIGURATION INTERFACE command which will
do what you want, then it can persist, but
ifconfig is more UNIX-like.

That is, I believe, essentially what a
typical UNIX system would do for its ifconfig
commands.
Karl Rohwedder
Honored Contributor

Re: TCPIP under VMS - alias ip address on same interface

At the end TCPIP$STARTUP checks for and calls SYS$STARTUP:TCPIP$SYSTARTUP, if availble.

regards Kalle

Colin Butcher
Esteemed Contributor

Re: TCPIP under VMS - alias ip address on same interface

Which version of TCPIP Services are you running on which version of VMS?

If I remember correctly the more recent versions of TCPIP$CONFIG will let you set up multiple addresses per interface. Have you tried that?

Cheers, Colin (http://www.xdelta.co.uk).

Entia non sunt multiplicanda praeter necessitatem (Occam's razor).
Petr Spisek
Regular Advisor

Re: TCPIP under VMS - alias ip address on same interface

Hi,
check tcpip help with commands:
- tcpip set interface
- tcpip set configuration interface (for permanent setting)
- tcpip set route /permanent

Petr
Willem Grooters
Honored Contributor

Re: TCPIP under VMS - alias ip address on same interface

Put these commands in a procedure, and call that procedure from SYSTARTUP_VMS atfer you started TCPIP. It will be executed on reboot. I would add code to remove these extra addresses as well and steer using a parameter:

$ if p1 .eqs. "START"
$ then
$ gosub add_address
$ else
$ gosub remove_addresses
$ endif
$ exit
$Add_address:
$ tcpip ipconfig ie alias ...
$! Whatever you need to do
$ return
$remove_address:
$ tcpip ipconfig ie -alias ...
$! Whatever you need to do
$ return

(just a template from memory. You'll need to adjsut)
Willem Grooters
OpenVMS Developer & System Manager
Steve Reece_3
Trusted Contributor

Re: TCPIP under VMS - alias ip address on same interface

The answer is no - you have to add them to the TCPIP$SYSTARTUP.COM file.

Steve
Wim Van den Wyngaert
Honored Contributor

Re: TCPIP under VMS - alias ip address on same interface

You might need to reconsider the mask.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1226582169413+28353475&threadId=1125017 (see my last post)

If current tcp versions react in the same way as 5.3.

wIM
Wim
Steven Schweda
Honored Contributor

Re: TCPIP under VMS - alias ip address on same interface

I'll bite. Why awaken this year-old thread?