<?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; interfaces</title> <atom:link href="http://blog.dispatched.ch/tag/interfaces/feed/" rel="self" type="application/rss+xml" /><link>http://blog.dispatched.ch</link> <description>code, life and struggles thereof</description> <lastBuildDate>Mon, 16 Jan 2012 13:44:17 +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>3</slash:comments> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              44184
Template:           tag
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: blog.dispatched.ch @ 2012-02-10 15:23:01 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: basic
Cache key:          w3tc_blog.dispatched.ch_1_page_7b92ddb7f6304622ccd1feb1b4a7947c_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.332s
Header info:
ETag:               "274915380f43058ea86f113a32d41d8b"
Last-Modified:      Mon, 16 Jan 2012 13:44:17 GMT
Vary:               Accept-Encoding, Cookie
X-Powered-By:       W3 Total Cache/0.9.2.4
Content-Encoding:   gzip
X-Pingback:         http://blog.dispatched.ch/xmlrpc.php
Content-Type:       text/xml; charset=UTF-8
-->
