<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alain M. Lafon &#187; interface</title>
	<atom:link href="http://blog.dispatched.ch/tag/interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dispatched.ch</link>
	<description>code, life and struggles thereof</description>
	<lastBuildDate>Wed, 18 Aug 2010 14:58:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multiple IP addresses on one interface (Solaris)</title>
		<link>http://blog.dispatched.ch/2008/10/04/multiple-ip-addresses-on-one-interface-solaris/</link>
		<comments>http://blog.dispatched.ch/2008/10/04/multiple-ip-addresses-on-one-interface-solaris/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:20:53 +0000</pubDate>
		<dc:creator>Alain M. Lafon</dc:creator>
				<category><![CDATA[articles]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[interfaces]]></category>
		<category><![CDATA[ip adress]]></category>
		<category><![CDATA[multiple ip adresses]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://gefechtsdienst.de/?p=98</guid>
		<description><![CDATA[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 [...]]]></description>
			<content:encoded><![CDATA[<p>	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^^<br />
While configuring we figured that there are at least three potential needs to assign multiple IP addresses to a single interface.</p>
<p>1. To do a quick test where the configuration won&#8217;t have to survive a reboot<br />
2. On an interface in a global zone<br />
3. On an interface in a non-global zone</p>
<p>These are the solutions we used:</p>
<p><b>1</b></p>
<pre class="box">
$ ifconfig abrX:Y plumb
</pre>
<p>while &#8220;abrX&#8221; is the abbreviation for an installed interface.<br />
Now you can use the new interface abrX:Y as you want.</p>
<p><b>2</b><br />
We needed it to have an an external(Internet) and an internal address. So we made an entry in <em>/etc/hosts</em> for the primary address in the old fashioned way(we do not yet use NWAM):</p>
<pre class="box">
10.5.250.100    fire
</pre>
<p>while we put the other addresses in <em>/etc/hostname.abrX</em>:</p>
<pre class="box">
fire
addif 141.72.100.100/24
</pre>
<p>where /24 implies: netmask ffffff00 broadcast 141.72.100.255</p>
<p><b>3</b><br />
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 <em>2</em> via /etc/hosts and /etc/hostname.abrX, but we also included the Internet address in the zone configuration:</p>
<pre class="box">
$ 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
</pre>
<p>
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.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dispatched.ch/2008/10/04/multiple-ip-addresses-on-one-interface-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
