2 IP for a NIC with Solaris 8
Hi, i would like to know if it's possible to assign 2 IP to a NIC with Solaris 8?
I looked high and low and can't find the answer to my question...
Please can someone help me?
If you guys got any good website (English / French) that explain how to do that it would be really appreciated.
Thx
# 1
> Hi, i would like to know if it's possible to assign 2
> IP to a NIC with Solaris 8?
>
> I looked high and low and can't find the answer to my
> question...
The 'ifconfig' man page has details. If you don't care about the interface created, use 'addif'.
addif address
Create the next unused logical interface on the speci-
fied physical interface.
ifconfig <int> addif <IP>
--
Darren
# 3
> ISTR you could also go about it another way --
> "ifconfig hme0:1 plumb" (for example).
Yes, absolutely.
> addif is probably the more graceful way, to avoid
> name collisions.
In this case I picked it just because I thought the man page could explain 'addif' more easily than the entire concept of virtual interfaces (which you then have to plumb..).
Of course I also think that the configuration of the virtual interface is simpler
echo "xx.xx.xx.xx" > /etc/hostname.<int>:1
To do it with addif, you have to make additional changes to /etc/hostname.<int> that makes it a little less nice.
--
Darren