- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing network interface
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 08:49 AM
09-26-2000 08:49 AM
I should switch a network connection from one network adapter to another one with minimum operation disturbance of my K460 running HP-UX 10.20. The system recognize the additional interface in SAM, it is not in use.
Here is my SAM information.
IEEE802.3/Ethernet lan0 10/4/8.1 Enabled 10.1.1.1
Ethernet lan1 10/4/16.1 Enabled 10.2.2.2
Ethernet lan2 10/12/6 Not Configured 0.0.0.0
Please comment if the following plan is wrong.
1. Edit /etc/rc.config.d/netconf by changing interface name
Change
INTERFACE_NAME[0]=lan0
to
INTERFACE_NAME[0]=lan2
2. Change physical connections.
3. Run /sbin/init.d/net so that the changes take effect.
4. If something goes wrong, restore the previous netconf and run /sbin/init.d/net.
One more question. SAM shows lan0 as "IEEE802.3/Ethernet", currently LANCONFIG_ARGS[0]="ether ieee".
Is it really needed to preserve this setting as "ether ieee" or it will be sufficient with "ether" for lan2?
Thank you in advance for any comments!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 08:58 AM
09-26-2000 08:58 AM
SolutionA lot of questions....
1. Looks good.
2. Not so good. You should disable the lan before swapping over the physical lan connections. /sbin/init.d/net stop Dont forget to do this from the console as if you do it from a terminal your own connection will be killed!
3. Change the cables. From the console do a net start. Hopefully the your primary ip will come up aok on the new lan card.
4. If something goes wrong you can try to do a net stop, restore the netconf file and the physical lan connections then try a net start. You may just get lucky.....
5. ether for lan2 is fine, dont need the ieee.
Now, all sorts of currently running applications/net connections may cause your net stop command to not work, and thus ruin the whole exercise. Play safe - change the netconf file, reboot the server, and change the physical lan connections before it comes up again. Changing lan cards/ip's on the fly is risky stuff.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 09:05 AM
09-26-2000 09:05 AM
Re: Changing network interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 11:02 AM
09-26-2000 11:02 AM
Re: Changing network interface
Check these files for updates.
disable the lan0 with ifconfig command on the console and not through telnet.
Your steps are good but check the corrections from Stefan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 12:20 PM
09-26-2000 12:20 PM
Re: Changing network interface
Then bring down the original card and use ifconfig to change the ip of the second one. Actually if you created a script with a couple ifconfig statements you could pull the switch pretty quickly.
This way you don't have to worry about swapping wires and starting and stopping thing.
Just a thought,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2000 11:54 PM
09-26-2000 11:54 PM
Re: Changing network interface
In our company we need the original interface from the machine to run a license server daemon.
So i would prefer that both cards are active. To do so, modify the /etc/rc.config.d/netconf so that both cards are active. Assign an IP address to the old interface which is not in your net.
#NEW Interface
IP_ADDRESS[0]=
SUBNET_MASK[0]=
INTERFACE_NAME[0]=lan2
BROADCAST_ADDRESS[0]=
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=
#OLD Interface
IP_ADDRESS[1]=< 192.100.100.10="">
SUBNET_MASK[1]=< 255.255.255.0="">
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=< 192.100.100.255="">
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[1]=
When you create the configuration, be careful with the array numbers [0].
If you have subsystems, which need the MAC of the old interface you should look in the file /etc/rc.config.d/hpetherconf to set the correct interface and MAC.
HP_ETHER_INTERFACE_NAME[0]=lan1
HP_ETHER_STATION_ADDRESS[0]=0xXXXXXXXXXXXXX
Connect the second interface to the switch or hub. Leave the old one connected.
After that you can try to restart the network.
When the system dont works correctly, the most reasons are misconfigured values or stopped sybsystems.
To activate the cards i would prefer the following way:
- Be sure, that all necessarry software and
patches are installed on the system
- Modify all the files.
- Look for a time window when nobody is
working and then do a reboot.
If you choose this way, you can verify that all subsystems are running well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2000 12:40 AM
09-27-2000 12:40 AM
Re: Changing network interface
1. Now I agree it is safer to restart the server after changes.
2. It may be reasonable to check everything from single mode first. I would go single user, make all changes, type "ifconfig lan0 down" and then issue "net start". If nework connectivity is OK, I would restart everything. If something is not working, I can easily return to the previous configuration and reboot.
3. It sounds good to plug the new adapter in the network with another IP address. But
I guess that the new address should not belong to an existing subnet. I'm afraid problems with routing may occur if two network adapters are attached to the same subnet. I would rather choose some unused private address for the new adapter and connect to some other device with the same subnet's IP address. Then I would bring the interface up manually, I hope it should not affect current operation.
4. My
/etc/rc.config.d/hpetherconf
does not contain any customizations. I guess nothing should be modified in my case.
HP_ETHER_INTERFACE_NAME[0]=
HP_ETHER_STATION_ADDRESS[0]=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2000 12:51 AM
09-27-2000 12:51 AM
Re: Changing network interface
You have to be careful attaching 2 NIC's on the same subnet, see the following question and replies on what you need to do to set this up correctly;
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xd3627e990647d4118fee0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2000 11:45 PM
09-28-2000 11:45 PM
Re: Changing network interface
the problems with 2 NIC's are not on K-Class with HP-UX.
The only problem which could occur is that the mashine will act as an router.
If you have a problem with that you can stop the default routing with the following command:
With lanadmin you can check the state (errors) of the interface.
Execute lanscan to get the NMID from the interface
Check the state of the network parameters
nettune -l
Switch of routing
nettune -s ip_forwarding 0
nettune -s ip_forward_directed_broadcasts 0
I'm not sure that the command takes effect after an reboot.