Unix Technical Forum

Two NIC's, one primary, one standby??

This is a discussion on Two NIC's, one primary, one standby?? within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I am having trouble parsing how to use the two NIC's (hme0 and hme1) as primary and standby so ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 08:52 AM
Nick Ellson
 
Posts: n/a
Default Two NIC's, one primary, one standby??

I am having trouble parsing how to use the two NIC's (hme0 and hme1)
as primary and standby so that I burn as few IP's on a subnet as
possible.

/etc/hostname.hme0

dns02 netmask + broadcast + failover up \
group production


/etc/hostname.hme1
dns02s netmask + broadcast + deprecated -failover standby up \
group production

root@dns02 / # ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index
1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500
index 2
inet xxx.xxx.241.53 netmask ffffff00 broadcast xxx.xxx.241.255
groupname production
ether 8:0:20:c2:15:6e
hme1: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPR ECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE>
mtu 1500 index 3
inet xxx.xxx.241.207 netmask ffffff00 broadcast
xxx.xxx.241.255
groupname production
ether 8:0:20:c2:15:6f

This all looked good, but when I killed the switchport that held hme0,
the primary IP just stayed dead... I waited 5 mins. When I brought the
switchport back online, it worked again.

Nick
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 08:52 AM
Rytis Sileika
 
Posts: n/a
Default Re: Two NIC's, one primary, one standby??

You're almost there, but no cigar...

Here's what you have to do (theory):

- assign a probing address to each interface, and make them no failover
addresses
- assign a failover address to one of the interfaces (primary)

Practice (from the top of my herad, so don't expect it to work straigh
away):

/etc/hostname.hme0:
dns02prob1 netmask + broadcast + group ipmpgrp deprecated -failover up \
addif dns02 netmask + broadcast + failover up

/etc/hostname.hme1:
dns02prob2 netmask + broadcast + group ipmpgrp deprecated -f1ailover
standby up

Nick Ellson wrote:
> I am having trouble parsing how to use the two NIC's (hme0 and hme1)
> as primary and standby so that I burn as few IP's on a subnet as
> possible.
>
> /etc/hostname.hme0
>
> dns02 netmask + broadcast + failover up \
> group production
>
>
> /etc/hostname.hme1
> dns02s netmask + broadcast + deprecated -failover standby up \
> group production
>
> root@dns02 / # ifconfig -a
> lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index
> 1
> inet 127.0.0.1 netmask ff000000
> hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500
> index 2
> inet xxx.xxx.241.53 netmask ffffff00 broadcast xxx.xxx.241.255
> groupname production
> ether 8:0:20:c2:15:6e
> hme1: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPR ECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE>
> mtu 1500 index 3
> inet xxx.xxx.241.207 netmask ffffff00 broadcast
> xxx.xxx.241.255
> groupname production
> ether 8:0:20:c2:15:6f
>
> This all looked good, but when I killed the switchport that held hme0,
> the primary IP just stayed dead... I waited 5 mins. When I brought the
> switchport back online, it worked again.
>
> Nick

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:14 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com