Multiple IP addresses on one interface (Solaris)

Like we mentioned earlier we are in the middle of configuring a Fire 280R server for our needs. Yesterday we finally were able to patch some real Internet addresses on the NICs, as well as new local addresses, so now we finally are online^^
While configuring we figured that there are at least three potential needs to assign multiple IP addresses to a single interface.

1. To do a quick test where the configuration won’t have to survive a reboot
2. On an interface in a global zone
3. On an interface in a non-global zone

These are the solutions we used:

1

$ ifconfig abrX:Y plumb

while “abrX” is the abbreviation for an installed interface.
Now you can use the new interface abrX:Y as you want.

2
We needed it to have an an external(Internet) and an internal address. So we made an entry in /etc/hosts for the primary address in the old fashioned way(we do not yet use NWAM):

10.5.250.100    fire

while we put the other addresses in /etc/hostname.abrX:

fire
addif 141.72.100.100/24

where /24 implies: netmask ffffff00 broadcast 141.72.100.255

3
We wanted the interfaces to be visible from the global zone via a local address while being available from the Internet. Therefore we defined a local address as in 2 via /etc/hosts and /etc/hostname.abrX, but we also included the Internet address in the zone configuration:

$ zonecfg -z zone1
zonecfg:zone1> select net physical=abrX
zonecfg:zone1:net> set address= 141.72.100.101/24
zonecfg:zone1:net> end
zonecfg:zone1> commit
zonecfg:zone1> exit

We will now take a look at IP instances, because using them we can achieve to only have the non-global zones visible in the Internet, while the global zone is only vulnerable in the local subnet.

Category: articles | Tags: , , , , 3 comments »

3 Responses to “Multiple IP addresses on one interface (Solaris)”

  1. Erick Philabaum

    I realize I’m a bit late in contributing my strategies but this particular submit developed me feel. It is an absorbing blog post. I have turn out to be a normal reader of one’s net site since I stumbled on your web site a although back once again. I cannot say which I agree with every little thing you said nonetheless it is emphatically enlightening! I could in all probability be back again again once again quickly.

  2. Jennefer Cowlin

    In searching for sites associated to web hosting and specifically comparison internet hosting linux strategy internet,
    your website came up.
    You are a incredibly smart individual!

  3. Cindi Mcgurk

    My spouse and i have to say, throughout your look via lots of blogs every single week, the real topic of your respective internet site is distinguishable (for the ideal factors). Except if you mind me personally requesting, what is the model on that theme and may it be the custom-designed extramarital relationship? It really is greater than the particular themes I consider advantage of for a lot of my weblogs ;-)