<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic 'correct' ifconfig sequence in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591030#M592976</link>
    <description>Hi,&lt;BR /&gt;I'm swapping networks between lancards using ifconfig (HP-UX 11.0), and get occasional failure. The sequence I'm doing is:&lt;BR /&gt;ifconfig &lt;OLD lan=""&gt; &lt;IP&gt; down&lt;BR /&gt;ifconfig &lt;OLD lan=""&gt; 0&lt;BR /&gt;ifconfig &lt;NEW lan=""&gt; &lt;IP&gt; &lt;BR /&gt;ifconfig &lt;NEW lan=""&gt; &lt;IP&gt; up&lt;BR /&gt;&lt;BR /&gt;Where I get trouble is the ifconfig &lt;OLD lan=""&gt; 0, which sometimes reports duplicate IP.&lt;BR /&gt;I haven't managed to note what other circumstance are involved. NB I'm using secondary and primary interfaces for lan PPA.&lt;BR /&gt;&lt;BR /&gt;My questions are:&lt;BR /&gt;1) is the ifconfig sequence above reasonable, or is there a better way?&lt;BR /&gt;2) does the ifconfig automatically do a gratuitous ARP?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;John&lt;/OLD&gt;&lt;/IP&gt;&lt;/NEW&gt;&lt;/IP&gt;&lt;/NEW&gt;&lt;/OLD&gt;&lt;/IP&gt;&lt;/OLD&gt;</description>
    <pubDate>Mon, 08 Oct 2001 08:26:55 GMT</pubDate>
    <dc:creator>John Cattanach</dc:creator>
    <dc:date>2001-10-08T08:26:55Z</dc:date>
    <item>
      <title>'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591030#M592976</link>
      <description>Hi,&lt;BR /&gt;I'm swapping networks between lancards using ifconfig (HP-UX 11.0), and get occasional failure. The sequence I'm doing is:&lt;BR /&gt;ifconfig &lt;OLD lan=""&gt; &lt;IP&gt; down&lt;BR /&gt;ifconfig &lt;OLD lan=""&gt; 0&lt;BR /&gt;ifconfig &lt;NEW lan=""&gt; &lt;IP&gt; &lt;BR /&gt;ifconfig &lt;NEW lan=""&gt; &lt;IP&gt; up&lt;BR /&gt;&lt;BR /&gt;Where I get trouble is the ifconfig &lt;OLD lan=""&gt; 0, which sometimes reports duplicate IP.&lt;BR /&gt;I haven't managed to note what other circumstance are involved. NB I'm using secondary and primary interfaces for lan PPA.&lt;BR /&gt;&lt;BR /&gt;My questions are:&lt;BR /&gt;1) is the ifconfig sequence above reasonable, or is there a better way?&lt;BR /&gt;2) does the ifconfig automatically do a gratuitous ARP?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;John&lt;/OLD&gt;&lt;/IP&gt;&lt;/NEW&gt;&lt;/IP&gt;&lt;/NEW&gt;&lt;/OLD&gt;&lt;/IP&gt;&lt;/OLD&gt;</description>
      <pubDate>Mon, 08 Oct 2001 08:26:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591030#M592976</guid>
      <dc:creator>John Cattanach</dc:creator>
      <dc:date>2001-10-08T08:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: 'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591031#M592977</link>
      <description>Hi,&lt;BR /&gt;Try using SAM.&lt;BR /&gt;&lt;BR /&gt;SAM&amp;gt;network &amp;amp; communication &amp;gt;netowk interface card.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;Animesh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2001 08:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591031#M592977</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-10-08T08:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591032#M592978</link>
      <description>HI John,&lt;BR /&gt;&lt;BR /&gt;How about unplumbing the lan card since you no longer need it, i.e.&lt;BR /&gt;&lt;BR /&gt;ifconfig &lt;OLDLAN&gt; &lt;IP&gt; down&lt;BR /&gt;ifconfig &lt;OLDLAN&gt; unplumb&lt;BR /&gt;ifconfig &lt;NEWLAN&gt; &lt;IP&gt;&lt;BR /&gt;ifconfig &lt;NEWLAN&gt; up&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;/NEWLAN&gt;&lt;/IP&gt;&lt;/NEWLAN&gt;&lt;/OLDLAN&gt;&lt;/IP&gt;&lt;/OLDLAN&gt;</description>
      <pubDate>Mon, 08 Oct 2001 08:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591032#M592978</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-08T08:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: 'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591033#M592979</link>
      <description>Thanks for quick responses.&lt;BR /&gt;As ever I should have included more information:&lt;BR /&gt;&lt;BR /&gt;I want to do this ifconfig automatically, and temporarily (so updating netconf et al isn't required).&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;lan1 = &lt;IP used="" by="" other="" program=""&gt;&lt;BR /&gt;lan1:1 = &lt;MY ip=""&gt;&lt;BR /&gt;&lt;BR /&gt;problem with lan1, so I want to move &lt;MY ip=""&gt; to lan2. Want to leave &lt;OTHER ip=""&gt; on lan1 so that another process can recover it.&lt;BR /&gt;&lt;BR /&gt;lan1 fixed, so I want to &lt;MY ip=""&gt; from lan2 back to lan1:1&lt;BR /&gt;&lt;BR /&gt;John&lt;/MY&gt;&lt;/OTHER&gt;&lt;/MY&gt;&lt;/MY&gt;&lt;/IP&gt;</description>
      <pubDate>Mon, 08 Oct 2001 09:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591033#M592979</guid>
      <dc:creator>John Cattanach</dc:creator>
      <dc:date>2001-10-08T09:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: 'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591034#M592980</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;I?m very curious, why do the lan swapping? What kind of app are you running that requires/needs you to swap the lan ??&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Oct 2001 10:26:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591034#M592980</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-08T10:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: 'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591035#M592981</link>
      <description>Hi,&lt;BR /&gt;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</description>
      <pubDate>Mon, 08 Oct 2001 11:00:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591035#M592981</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2001-10-08T11:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'correct' ifconfig sequence</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591036#M592982</link>
      <description>Hi,&lt;BR /&gt;Thanks again for your replies. In answer to why and what I'm doing this, here's the story:&lt;BR /&gt;&lt;BR /&gt;Have a requirement to provide network failover using 2 physically seperate (unbridged) lans.&lt;BR /&gt;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.&lt;BR /&gt;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. &lt;BR /&gt;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&lt;BR /&gt;&lt;BR /&gt;And this is where trouble starts. I'm currently doing&lt;BR /&gt;ifconfig lanX:0 down&lt;BR /&gt;ifconfig lanX:0 0&lt;BR /&gt;ifconfig lanY:1 &lt;IP&gt;&lt;BR /&gt;ifconfig lanY:1 up&lt;BR /&gt;&lt;BR /&gt;and getting occasional 'duplicate IP' at the ifconfig lanX:0 0 command.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Hope this makes things somewhat clearer,&lt;BR /&gt;John&lt;/IP&gt;</description>
      <pubDate>Thu, 11 Oct 2001 12:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/correct-ifconfig-sequence/m-p/2591036#M592982</guid>
      <dc:creator>John Cattanach</dc:creator>
      <dc:date>2001-10-11T12:38:23Z</dc:date>
    </item>
  </channel>
</rss>

