- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 'correct' ifconfig sequence
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
10-08-2001 01:26 AM
10-08-2001 01:26 AM
'correct' ifconfig sequence
I'm swapping networks between lancards using ifconfig (HP-UX 11.0), and get occasional failure. The sequence I'm doing is:
ifconfig
ifconfig
ifconfig
ifconfig
Where I get trouble is the ifconfig
I haven't managed to note what other circumstance are involved. NB I'm using secondary and primary interfaces for lan PPA.
My questions are:
1) is the ifconfig sequence above reasonable, or is there a better way?
2) does the ifconfig automatically do a gratuitous ARP?
Many thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 01:32 AM
10-08-2001 01:32 AM
Re: 'correct' ifconfig sequence
Try using SAM.
SAM>network & communication >netowk interface card.
Best of luck
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 01:55 AM
10-08-2001 01:55 AM
Re: 'correct' ifconfig sequence
How about unplumbing the lan card since you no longer need it, i.e.
ifconfig
ifconfig
ifconfig
ifconfig
-Santosh
P.S. Don't forget to update /etc/rc.config.d/netconf to point to the new lan card/IP, also update /etc/hosts with the new IP/hostname.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 02:05 AM
10-08-2001 02:05 AM
Re: 'correct' ifconfig sequence
As ever I should have included more information:
I want to do this ifconfig automatically, and temporarily (so updating netconf et al isn't required).
I also don't think I want to unplumb the lan card as other applications may require to use it (though I stand to be corrected). e.g.
lan1 =
lan1:1 =
problem with lan1, so I want to move
lan1 fixed, so I want to
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 03:26 AM
10-08-2001 03:26 AM
Re: 'correct' ifconfig sequence
I?m very curious, why do the lan swapping? What kind of app are you running that requires/needs you to swap the lan ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 04:00 AM
10-08-2001 04:00 AM
Re: 'correct' ifconfig sequence
no need to swap the IP's , since u have multiple interfaces u can assign different IP's to each interfaces and enable them simultaneously(need to add all the iterfaces in netconf file and all IP's in hosts file)so that users can use any interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2001 05:38 AM
10-11-2001 05:38 AM
Re: 'correct' ifconfig sequence
Thanks again for your replies. In answer to why and what I'm doing this, here's the story:
Have a requirement to provide network failover using 2 physically seperate (unbridged) lans.
The way I've been doing it is with a process for each network for each host pinging all other local hosts on that network. If any ping fails, a route is added via that host's address on the other network.
Fair enough, that bit seems okay. What isn't so okay is if I unplug the cable for lan PPA X from machine A. I have been advised that hp-ux discards/hides/makes unusable any IP addresses formerly on lan PPA X.
So what my program does is issue 'ifconfig lanX' and grep for 'UP'. If it doesn't show, the program then tries to ifconfig the IP address onto a secondary lan interface on the other network e.g. lanY:1
And this is where trouble starts. I'm currently doing
ifconfig lanX:0 down
ifconfig lanX:0 0
ifconfig lanY:1
ifconfig lanY:1 up
and getting occasional 'duplicate IP' at the ifconfig lanX:0 0 command.
I'm also seeing another thing where after replacing cable to lanX and ifconfiging it back up, the ifconfig lanX command doesn't display UP, even though the card is functional according to linkloop and lanadmin.
Hope this makes things somewhat clearer,
John