The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ifconfig: ce401001: bad address sag71155 IP Networking 2 06-19-2008 11:08 AM
setting primary dns user23 Linux 2 12-05-2007 01:56 PM
ifconfig bad address ppass SUN Solaris 2 03-11-2005 07:59 AM
setting ip address on UnixWare7 jalburger IP Networking 1 02-26-2004 12:09 PM
Must they be installed in Primary partition? HOUSCOUS UNIX for Dummies Questions & Answers 4 09-29-2003 03:49 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-28-2006
pmichner pmichner is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 9
Setting primary ip address with ifconfig

Hello,
I have a server with two ip addresses. I need to make the ip address that's currently the secondary the primary. How do I use the ifconfig command and primary option?
Thanks.
  #2 (permalink)  
Old 08-28-2006
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
OS ?

Persistent or temporary change?
  #3 (permalink)  
Old 08-29-2006
pmichner pmichner is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 9
Re: Setting primary ip address with ifconfig

Solaris 9 and persistent.
  #4 (permalink)  
Old 08-29-2006
pmichner pmichner is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 9
Solved

I solved my own problem. (pretty rare, huh? ) Since I didn't know the correct usage of the primary option with ifconfig, I went onto the box through the currently primary interface which I wanted to be the secondary and did an ifconfig interface down. Then I went in on the secondary interface which I wanted to be the primary and brought the other back up. Seems logical that if there are two interfaces and one goes down, the remaining one becomes the primary. Hope this helps someone else in the world
  #5 (permalink)  
Old 08-29-2006
reborg's Avatar
reborg reborg is online now Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
That's the best way to learn.

Actually that is exactly what IPMP is for. However there are several ways to use it. In your case you want active-passive, in some scenarios active-active is also used.

You should note however that manual interventions with ifconfig are non-persistent, in addition to the ifconfig, you swap the contents of /etc/hostname.<ifname> files.

Post back if you want the steps for the active-passive IPMP configuration, to do this automagically, or if you'd prefer to have a go yourself then I think it's in the "system administration collection" on http://docs.sun.com
  #6 (permalink)  
Old 08-30-2006
pmichner pmichner is offline
Registered User
  
 

Join Date: Aug 2006
Posts: 9
Thanks, I'll check out docs.sun.com.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0