Re: 2 subnet on 1 physical interface

From: jean-françois suret (jf.suret@gmail.com)
Date: Wed May 03 2006 - 04:16:33 EDT


Thanks to all, It's on a good way to work I just need to see if IPMP is
working using a server with 2 interfaces ^_^

for information conf files look like that :

*/etc/netmasks*
10.0.0.0 255.255.252.0
192.168.0.0 255.255.255.0

*/etc/hosts*
10.0.0.1 test1
10.0.0.2 test2
192.168.0.1 toto1
192.168.0.2 toto2

*/etc/inet/ipnodes*
::1 localhost
127.0.0.1 localhost loopback
10.0.0.1 test1
10.0.0.2 test2
192.168.0.1 toto1
192.168.0.2 toto2

*/etc/hostname.ce0*
test1 -failover deprecated netmask + broadcast + group prod up <-- this is
the IPMP test IP (not used for traffic)

*/etc/hostname.ce0:1*
test2 netmask + broadcast + up

*/etc/hostname.ce0:2*
toto1 netmask + broadcast + up

*/etc/hostname.ce0:3*
toto2 netmask + broadcast + up

Thanks again !

JF

2006/5/3, Hudes, Dana <hudesd@hra.nyc.gov>:
>
> As someone else said, use sub-interfaces for this. If you have hme0 then
> your 1st secondary is on hme0:1 and you can have a hme0:2 as well.
> It does not matter whether same subnet or VLAN. Solaris knows not cares
> not. ARP has to work and you better specify the router IP addresses.
> Obviously you can only have *1* default gateway at any time (you can
> configure others so that if the interface to 1st one goes away you still
> have another path).
>
>
> =================
> Dana Hudes
> UNIX and Imaging group
> NYC-HRA
> +1 718 510 8586
> =================
>
> -----Original Message-----
> From: sunmanagers-bounces@sunmanagers.org [mailto:
> sunmanagers-bounces@sunmanagers.org] On Behalf Of jean-frangois suret
> Sent: Wednesday, April 26, 2006 10:05 AM
> To: Brad_Morrison@capgroup.com; sunmanagers@sunmanagers.org
> Subject: Re: 2 subnet on 1 physical interface
>
> Hello,
>
> in fact on the network side there are no troubles I have done similar
> things during migration (IP is layer 3 VLAN is layer 2) ;-)
>
> But what I am looking for is a clue on secondary IP support on sun
> systems.
>
> example :
>
> A is in sub SA
> B is in sub SA
> A and B access to C in sub SA
>
> A B C are in VLAN V1
>
> I want to change IP subnet SA to SB :
>
> migration :
> C listen on SA and SB on VLAN V1
> B change of sub SA to SB
> Test to see if B and A are accessing C
>
> A change of sub SA to SB
> Test to see if B and A are accessing C
> Then delete IP addresses from SA on C
>
> JF
>
>
> 2006/4/26, Brad_Morrison@capgroup.com <Brad_Morrison@capgroup.com>:
> >
> >
> > Nope. Use /etc/hostname.ce0.0, /etc/hostname.ce0.1, ...
> > *Brad Morrison* <Brad_Morrison@capgroup.com> | The Capital Group
> > Companies
> > Location: SNO | x43199 | (210) 474-3199 | Cell: (281) 704-5375
> > E-mail: Brad_Morrison@capgroup.com
> > [ Mailing: *3500 Wiseman
> Blvd*<
> http://maps.yahoo.com/py/maps.py?BFCat=&Pyt=Tmap&newFL=Use+Address+Belo
> w&addr=3500+Wiseman+Blvd&csz=78251-4320&Country=us&Get%A0Map=Get+Map> San
> Antonio, TX 78251-4320 USA ]
> >
> >
> >
> >
> > *"jean-frangois suret" < jf.suret@gmail.com>*
> > Sent by: sunmanagers-bounces@sunmanagers.org
> >
> > 04/26/2006 07:40 AM
> > To
> > sunmanagers@sunmanagers.org cc
> > Subject
> > 2 subnet on 1 physical interface
> >
> >
> >
> >
> >
> > Hello,
>
> I am looking for a solution to put 2 IP adresses of 2 different subnet on
> the same physical interface :
>
> etc/hostname.ce0
> 192.168.0.1 netmask + broadcast + up
> addif 10.0.0.1 netmask + broadcast + up
>
> Is this going to work ?
>
> If yes can I do something like :
>
> */etc/hostname.ce0*
>
> *192.178.1.119 netmask + broadcast + group prod -failover deprecated up*
>
> *addif* 192.178.1.120 netmask + broadcast + up
>
> addif 192.178.1.121* netmask + broadcast + up*
>
> *addif 10.98.7.224 netmask + broadcast + group prod2 -failover deprecated
> up
> *
>
> *addif 10.98.7.220 netmask + broadcast + up*
>
> *addif 10.98.7.222 netmask + broadcast + up*
>
> **
>
> */etc/hostname.qfe0*
>
> *192.178.1.78 netmask + broadcast + group prod -failover deprecated
> standby
> up*
>
> *addif 10.98.7.226 netmask + broadcast + group prod2 -failover deprecated
> standby up*
>
> **
>
> *Thanks !*
>
> **
>
> *JF*
>
> * *
>
> **
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:46 EDT