binding two IP to one NIC on solaris

binding two IP to one NIC on solaris

Post by King How » Tue, 22 Aug 2000 04:00:00



 Does anyone know is it possible to bind two IPs to one NIC on Solaris
2.6.

On Linux, I can do that with ifcfg-eth0 for 172.1.1.1 and ifcfg-eth0:0
for 192.168.1.1 and with same hostname

Does anyone know this!!

--
+--------------------------------------------------------+

|American Direct Mail(ADM) 350 Hudson Street, NY 11014   |
+--------------------------------------------------------+

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

binding two IP to one NIC on solaris

Post by van » Tue, 22 Aug 2000 04:00:00



> Does anyone know is it possible to bind two IPs to one NIC on Solaris
> 2.6.

> On Linux, I can do that with ifcfg-eth0 for 172.1.1.1 and ifcfg-eth0:0
> for 192.168.1.1 and with same hostname

> Does anyone know this!!

> --
> +--------------------------------------------------------+

> |American Direct Mail(ADM) 350 Hudson Street, NY 11014   |
> +--------------------------------------------------------+

simply set up another /etc/hostname.adaptor:[1-n] file (n <=256, i think).
e.g. /etc/hostname.qfe0:2.  In the file, set up either the actual ip address
you wish to use or a symbolic name, then plumb and configure it
    ifconfig qfe0:2 plumb
    ifconfig qfe0:2 inet 42.42.42.42 up

van

 
 
 

binding two IP to one NIC on solaris

Post by Steve Ka » Tue, 22 Aug 2000 04:00:00


ifconfig hme0:1 123.456.789.012 up

Just put hostname in /etc/hostname.hme0:1 and so on.

Steve


> Does anyone know is it possible to bind two IPs to one NIC on Solaris
> 2.6.

> On Linux, I can do that with ifcfg-eth0 for 172.1.1.1 and ifcfg-eth0:0
> for 192.168.1.1 and with same hostname

> Does anyone know this!!

> --
> +--------------------------------------------------------+

> |American Direct Mail(ADM) 350 Hudson Street, NY 11014   |
> +--------------------------------------------------------+

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

binding two IP to one NIC on solaris

Post by Stefaan A Eecke » Tue, 22 Aug 2000 04:00:00




Quote:>  Does anyone know is it possible to bind two IPs to one NIC on Solaris
> 2.6.

> On Linux, I can do that with ifcfg-eth0 for 172.1.1.1 and ifcfg-eth0:0
> for 192.168.1.1 and with same hostname

> Does anyone know this!!

Well, how about doing it the same way as in Linux ;-)

ifconfig le0:1 192.168.1.22 netmask 255.255.255.0 up

or hme0:1 if you've got fast Ethernet, and are on a
SPARC machine.
On an Intel box, substitute the name of your NIC
(like elx0 on my box).

Take care,

--
Stefaan
--
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.

 
 
 

binding two IP to one NIC on solaris

Post by Steve Menar » Wed, 23 Aug 2000 10:29:38


In theory you can assign up to 254 ips to a single NIC.

Steve




> > Does anyone know is it possible to bind two IPs to one NIC on Solaris
> > 2.6.

> > On Linux, I can do that with ifcfg-eth0 for 172.1.1.1 and ifcfg-eth0:0
> > for 192.168.1.1 and with same hostname

> > Does anyone know this!!

> > --
> > +--------------------------------------------------------+

> > |American Direct Mail(ADM) 350 Hudson Street, NY 11014   |
> > +--------------------------------------------------------+

> simply set up another /etc/hostname.adaptor:[1-n] file (n <=256, i
think).
> e.g. /etc/hostname.qfe0:2.  In the file, set up either the actual ip
address
> you wish to use or a symbolic name, then plumb and configure it
>     ifconfig qfe0:2 plumb
>     ifconfig qfe0:2 inet 42.42.42.42 up

> van

--
Posted via CNET Help.com
http://www.help.com/
 
 
 

binding two IP to one NIC on solaris

Post by King How » Wed, 23 Aug 2000 04:00:00


Thanks for all the responses, I am going to try tonight.





> >  Does anyone know is it possible to bind two IPs to one NIC on
Solaris
> > 2.6.

> > On Linux, I can do that with ifcfg-eth0 for 172.1.1.1 and
ifcfg-eth0:0
> > for 192.168.1.1 and with same hostname

> > Does anyone know this!!
> Well, how about doing it the same way as in Linux ;-)

> ifconfig le0:1 192.168.1.22 netmask 255.255.255.0 up

> or hme0:1 if you've got fast Ethernet, and are on a
> SPARC machine.
> On an Intel box, substitute the name of your NIC
> (like elx0 on my box).

> Take care,

> --
> Stefaan
> --
> Ninety-Ninety Rule of Project Schedules:
>         The first ninety percent of the task takes ninety percent of
> the time, and the last ten percent takes the other ninety percent.

--
+--------------------------------------------------------+

|American Direct Mail(ADM) 350 Hudson Street, NY 11014   |
+--------------------------------------------------------+

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

binding two IP to one NIC on solaris

Post by Tony Walto » Wed, 30 Aug 2000 04:00:00



> In theory you can assign up to 254 ips to a single NIC.

That's true as a fixed limit for Solaris N where N < 2.6

For 2.6 and above the number of IPs per NIC is set by an ndd parameter

# ndd /dev/ip
name to get/set ? ip_addrs_per_if
value ?
length ?
256

This defaults to 256 but can be set to values as high as 8192

--
Tony