Operating System - OpenVMS
1826644 Members
3367 Online
109695 Solutions
New Discussion

Re: Change 2nd NIC ip address

 
SOLVED
Go to solution
Rich Hearn
Regular Advisor

Change 2nd NIC ip address

Hi Folks,

I've tried to find something like this using a search, but I haven't. OVMS 7.3-2 Update v0800 using Multinet 5.1 for tcp/ip stack. I've changed my 2nd NIC address from 10.253.0.101 to 192.168.1.32 I'm not able to get the NIC to respond even though the link light indicates connectivity & activity. I've spoken to the Multinet folks & we believe all is good there, but it was mentioned that VMS had an old bug that the system didn't pick up the ip changes without a shutdown/reboot. Does anyone know if this is still the case or if it's been corrected? I'd like to use the interface *without* having to reboot

Thanks for your thoughts,
Rich
12 REPLIES 12
Jim_McKinney
Honored Contributor

Re: Change 2nd NIC ip address

> from 10.253.0.101 to 192.168.1.32

Have you dealt with any routing issues? Was the 10 address being serviced by your default gateway or by placing additional paths in your routing table? Is the 192 address being serviced by your current default gateway? If not, have you added what's necessary to your routing table?
Hoff
Honored Contributor

Re: Change 2nd NIC ip address

I'd be willing to bet on subnet routing.

Park some other node in your new Class C and its subnet, and try to ping the first node.

Rich Hearn
Regular Advisor

Re: Change 2nd NIC ip address

Jim,

the 2nd interface that had the 10.253.0.101 on it had not been physically connected to the network. It had been used back "in the beginning" to connect to the nodes internal smc hub to communicate with the nodes processors (ES47 - internal 10. network).

Hoff,

mu show/arp shows:

[UNKNOWN] (IP 10.253.0.101)0:b:cd:f4:59:ea Up, LLinfo
[UNKNOWN] (IP 10.253.0.101)0:b:cd:f4:59:ea Up, LLinfo, Perm

I'm open for thoughts...
Rich
Peter Zeiszler
Trusted Contributor

Re: Change 2nd NIC ip address

When you changed the IP did you disable the second NIC and restart that NIC?

Does the first NIC and second NIC start with the same octet? I know on MU 4.4 we have the issue that the first octet has to be different or it will go out the default route of the system.
Richard Whalen
Honored Contributor

Re: Change 2nd NIC ip address

SDA> SHOW LAN will tell you whether or not the interface is listening for IP packets, then the question becomes what sequence of MultiNet commands were done to stop the interface and start it with the new address. It's possible that old arp data would remain until it times out.
Richard Whalen
Honored Contributor

Re: Change 2nd NIC ip address

One more thing to show what MultiNet thinks the interface is using as an address:

$ define mu$sda multinet:multinet$sda
$ ana/sys
SDA> MU SHOW INTERFACE
Jim_McKinney
Honored Contributor

Re: Change 2nd NIC ip address

> 192.168.1.32

As Hoff suggested you should insure that your subnet masking is all correct.

Have you attempted both inbound and outbound connections?

Inbound connections should just work if the subnetting is correct and the surrounding network is correctly configured.

For outbound connections, if there's a router on this subnet and it is not your default router/gateway, you'll need to add directives to your routing table to force outbound connections in that direction for certain targets that you wish to be reachable. Presuming class C subnetting, you might do the following

$ mu set/route/add=(dest=192.168.1.0, gate=xxx.xxx.xxx.xxx)/force_network

to force all outbound connections to that entire network (192.168.1.*) out through that interface (replace those x's with the address of the router on that network). Without such direction, outbound connections will be directed to your default gateway/router.

You may also want to force connections to some specific host out through that interface. For those you'd do something like

$ mu set/route/add=(dest=192.168.2.2, gate=xxx.xxx.xxx.xxx)

where the x's again represent your router and the 192.168.2.2 might be address of whatever host you're targetting.

If you end up having to set up these sorts of static routes you'll want to place the exact commands used to set them up into a file named MULTINET:LOCAL_ROUTES.COM and it will be executed during startup so that the routes will persist across reboots.
Jim_McKinney
Honored Contributor

Re: Change 2nd NIC ip address

> It's possible that old arp data would remain until it times out.

$ mu show/arp
$ mu set/arp/dele=10.253.0.101

?

Rich Hearn
Regular Advisor

Re: Change 2nd NIC ip address


---------------------
Peter Zeiszler
When you changed the IP did you disable the second NIC and restart that NIC?
Does the first NIC and second NIC start with the same octet? I know on MU 4.4 we have the issue that the first octet has to be different or it will go out the default route of the system.

Peter, you've pointed out a procedural error on my part - I did not shut the interface down before I made the changes. I have, since reading this, gone back & disabled the interface

---------------------
Richard Whalen

SDA> SHOW LAN will tell you whether or not the interface is listening for IP packets, then the question becomes what sequence of MultiNet commands were done to stop the interface and start it with the new address. It's possible that old arp data would remain until it times out.

Richard, the old arp data was out there, but I did (after disabling the interface) go back and delete the old info

One more thing to show what MultiNet thinks the interface is using as an address:
$ define mu$sda multinet:multinet$sda
$ ana/sys
SDA> MU SHOW INTERFACE


a most handy set of commands to have - tnx:
SDA>

MultiNet Interface information:

Name IP address IPX address Flags SoftC IPkts OPkts
------ --------------- -------------------------- ---------------------- -------- -------- --------
se2 10.160.13.23 -none- Up,Brd,NoTrl,Run,Smpx, 90246678 ******** ********
se4 10.253.0.101 -none- Up,Brd,NoTrl,Run,Smpx, 90246B90 3324 6
lo0 127.0.0.1 -none- Up,Loop,NoTrl,MltC 9022C100 35248190 17624095

SDA>
SDA> exit

---------------------
Jim McKinney

> 192.168.1.32

As Hoff suggested you should insure that your subnet masking is all correct.

Sub-net matches a test system I have running in another cluster - I don't remember if I had to boot the node to get it to work or not (a year ago)

Have you attempted both inbound and outbound connections?

The out-bound isn't important, just the in-bound, but yes, I've tried both. Ping does not work either
Inbound connections should just work if the subnetting is correct and the surrounding network is correctly configured.

Sub-net is 255.255.255.0 - can't get much simpler I'd guess

For outbound connections, if there's a router on this subnet and it is not your default router/gateway, you'll need to add directives to your routing table to force outbound connections in that direction for certain targets that you wish to be reachable. Presuming class C subnetting, you might do the following
$ mu set/route/add=(dest=192.168.1.0, gate=xxx.xxx.xxx.xxx)/force_network
to force all outbound connections to that entire network (192.168.1.*) out through that interface (replace those x's with the address of the router on that network). Without such direction, outbound connections will be directed to your default gateway/router.
You may also want to force connections to some specific host out through that interface. For those you'd do something like
$ mu set/route/add=(dest=192.168.2.2, gate=xxx.xxx.xxx.xxx)
where the x's again represent your router and the 192.168.2.2 might be address of whatever host you're targetting.
If you end up having to set up these sorts of static routes you'll want to place the exact commands used to set them up into a file named MULTINET:LOCAL_ROUTES.COM and it will be executed during startup so that the routes will persist across reboots.

No router on the sub-net - just a 3com 10baseT hub that allows a dial-in modem to connect to either of 2 systems (the one in question will be #2)

> It's possible that old arp data would remain until it times out.
$ mu show/arp
$ mu set/arp/dele=10.253.0.101

thank you - I did & it did - it's gone now....
Rich Hearn
Regular Advisor

Re: Change 2nd NIC ip address


Interesting results were obtained when I went to my test cluster & tried changing the nic ip interface on the node correctly working. I shut down the interface (disable), re-started multinet, changed the nic ip assignment & enabled, then restarted multinet. Doing as Mr Whalen instructed ( $ define mu$sda multinet:multinet$sda $ ana/sys SDA> MU SHOW INTERFACE ) showed that VMS still had the old ip address assigned. Have I missed a step I should've known about? Would anyone know of a way to clear/change that without re-booting so I can get the new ip assignment?

Thanks for any thoughts,
Rich
Richard Whalen
Honored Contributor
Solution

Re: Change 2nd NIC ip address

I would expect the following sequence to work:

$ multinet set/interface/down se1
$ multinet set/interface/up -
$_ se1/address=192.168.1.32


That's it. No need to restart the MultiNet master server (@multinet:server restart), or reboot.
Rich Hearn
Regular Advisor

Re: Change 2nd NIC ip address

Mr Whalen,

Your instructions worked as you expected! (and totally answer my question)

Thank you all who participated & offered your thoughts - lots of thoughts for future reference.

Rich