cancel
Showing results for 
Search instead for 
Did you mean: 

TCPIP Alias

 
Mark Fogleman
Occasional Advisor

TCPIP Alias

Using TCIP ifconfig I can set an alias for a device le1 allowing the use of 2 ip addresses. How do I get it in the perm database so it will live through a reboot?
6 REPLIES 6
Hoff
Honored Contributor

Re: TCPIP Alias

Usually with TCPIP$CONFIG, if I understand what you're up to here. If this is the FailSAFE IP discussed here:

http://h71000.www7.hp.com/doc/732final/6526/6526pro_005.html

then ipconfig is the typical lower-level means.

Some of the other IP cluster alias options:
http://64.223.189.234/node/859
Mark Fogleman
Occasional Advisor

Re: TCPIP Alias

Not trying to get IP failover. I am using lancp to set up nic failover then assigning the ip address to the le1 for the failover device. Before lan failover there were two devices with different ip addresses. Now with lan failover there is only one device. ipconfig will let me assign the first ip address, but not assign an alias to the same device. From the reading I have done the config at one time offered that option, but does not now. Using tcpip ifconf I can set the alias to the device but it will not survive a reboot. Can put the command in startup but if I can get it in the database will not have to do that...
Peter Zeiszler
Trusted Contributor

Re: TCPIP Alias

We manually set ours up after a reboot on most of our servers as the "alias" can actually be used on different servers.

On our test/dev system we created a script that starts after IP stack is up that sets the alias to a network device.
Steven Schweda
Honored Contributor

Re: TCPIP Alias

I know nothing, but I suspect that if you
can't set it up using SET CONFIG [...]
(which it will remember), then you'll need
to do it again in the system start-up stuff.

For example, on my system, where:

TCPIP> show inter
Packets
Interface IP_Addr Network mask Receive Send MTU

LO0 127.0.0.1 255.0.0.0 20106361 20106361 4096
WE0 10.0.0.9 255.255.255.0 16923926 12353430 1500

SET [CONFIG] INTER WEA0 /host = 192.168.0.9 /net = 255.255.255.0

leads to:

TCPIP> show inter
Packets
Interface IP_Addr Network mask Receive Send MTU

LO0 127.0.0.1 255.0.0.0 20106361 20106361 4096
WE0 10.0.0.9 255.255.255.0 16923926 12353430 1500
WEA0 192.168.0.9 255.255.255.0 16923926 12353430 1500

Or:

TCPIP> ifconfig -a
[...]
WE0: flags=8000c43
*inet 10.0.0.9 netmask ffffff00 broadcast 10.0.0.255 ipmtu 1500
inet 192.168.0.9 netmask ffffff00 broadcast 192.168.0.255 ipmtu 1500

I can't try it, but I'd expect the SET
CONFIG part of that to be durable.
Matt Muggeridge
Occasional Advisor

Re: TCPIP Alias

As of TCP/IP V5.6 then it is very easy to add aliases via TCPIP$CONFIG, Interface Configuration Menu. Choose the option "Add an alias address on IE1" :).

Though, since you are asking, I guess you are using something earlier ;-). In which case, upgrading is recommended.

In the meantime, the jumble you need to put it in the permanent database is:

$ tcpip set config interface ieb0 /host=1.2.3.4/net=255.0.0.0

Note that IEB0 decodes as:

IE = IE :)
B = 1 (IE1)
0 = an arbitrarily unique number for each alias.

Matt.
Mark Fogleman
Occasional Advisor

Re: TCPIP Alias

Thank You all for your comments they were extreemely helpful.