<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://joaquina.unc.edu.ar/index.php?action=history&amp;feed=atom&amp;title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris</id>
	<title>Asignar direccion IP estática en Opensolaris - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://joaquina.unc.edu.ar/index.php?action=history&amp;feed=atom&amp;title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris"/>
	<link rel="alternate" type="text/html" href="https://joaquina.unc.edu.ar/index.php?title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris&amp;action=history"/>
	<updated>2026-11-28T07:33:27Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://joaquina.unc.edu.ar/index.php?title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris&amp;diff=8&amp;oldid=prev</id>
		<title>Admin en 03:29 17 mar 2009</title>
		<link rel="alternate" type="text/html" href="https://joaquina.unc.edu.ar/index.php?title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris&amp;diff=8&amp;oldid=prev"/>
		<updated>2009-03-17T03:29:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 03:29 17 mar 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l91&quot;&gt;Línea 91:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 91:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;links&lt;/del&gt;: [[http://blogs.sun.com/observatory/entry/beyond_dhcp_with_dns_and]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Fuente&lt;/ins&gt;: [[http://blogs.sun.com/observatory/entry/beyond_dhcp_with_dns_and]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Autor: Ary&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Autor: Ary&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://joaquina.unc.edu.ar/index.php?title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris&amp;diff=5&amp;oldid=prev</id>
		<title>Admin: Created page with &#039;En este instructivo se explica rápidamente la configuración estática de red en Opensolaris. La misma fue probada y funcionó correctamente en un Opensolaris 2008.11 y en Solar...&#039;</title>
		<link rel="alternate" type="text/html" href="https://joaquina.unc.edu.ar/index.php?title=Asignar_direccion_IP_est%C3%A1tica_en_Opensolaris&amp;diff=5&amp;oldid=prev"/>
		<updated>2009-03-17T03:17:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;En este instructivo se explica rápidamente la configuración estática de red en Opensolaris. La misma fue probada y funcionó correctamente en un Opensolaris 2008.11 y en Solar...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;En este instructivo se explica rápidamente la configuración estática de red en Opensolaris.&lt;br /&gt;
La misma fue probada y funcionó correctamente en un Opensolaris 2008.11 y en Solaris 10&lt;br /&gt;
&lt;br /&gt;
==Beyond DHCP with DNS and Routing in OpenSolaris==&lt;br /&gt;
&lt;br /&gt;
I&amp;#039;ve finally had time to install OpenSolaris on bare metal.  Previously I&amp;#039;ve installed it under VirtualBox on my Mac and Linux machines.  The networking configuration really had me pulling out my hair.  If you knew me, you&amp;#039;d know I don&amp;#039;t have much hair so this means I was really desperate.   Here&amp;#039;s some helpful pointers to get started with networking beyond the default DHCP settings for DNS hostname resolution and routing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Background==&lt;br /&gt;
&lt;br /&gt;
First, I should provide some background.   My office (home office) networking scheme includes a cable modem, 3 non-commercial routers (networks), and a switch.  I&amp;#039;m running &amp;quot;Bind&amp;quot; on a Kubuntu machine as my DNS server.  I know, I&amp;#039;ll convert all this over to OpenSolaris when I learn more about it.  So each machine on my networks has an assigned IP address and hostname mapped by the DNS server.  Naturally, when I run my OpenSolaris machine, I want it to have a static IP address and a hostname.  In the future I&amp;#039;m going to look into MultiCast DNS.  But for now, I just wanted to add my new OpenSolaris machine to my network.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Changing From a DHCP assigned IP Address to a Static IP Address ==&lt;br /&gt;
&lt;br /&gt;
The first step is to configure NWAM (Network Auto-Magic) so my wired ethernet interface is used instead of my wireless interface.  I also need to tell it to use a static IP address for the wired interface.  To do this, I edited the NWAM config file &amp;quot;llP&amp;quot; like this:&lt;br /&gt;
&lt;br /&gt;
    pfexec vi /etc/nwam/llp&lt;br /&gt;
&lt;br /&gt;
I changed it to look like this:&lt;br /&gt;
&lt;br /&gt;
    e1000g0 static 192.168.1.17&lt;br /&gt;
&lt;br /&gt;
    ath0 dhcp&lt;br /&gt;
&lt;br /&gt;
Notice that the wired interface is before the wireless interface.  This is how NWAM determines which interface to use first.  Note - the nwamd man page states, &amp;quot;Note, however, that this interface is Volatile and may change in a future release.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Since I changed NWAM, I have to restart nwamd (the NWAM daemon).&lt;br /&gt;
&lt;br /&gt;
    pfexec svcadm restart nwam&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--------------------------&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Comentario extra (de Ary):&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Otra forma de cambiar de DHCP a IP estática es deshabilitar el servicio nwam (configuración automática de red) y habilitar el default:&lt;br /&gt;
&lt;br /&gt;
svcadm disable svc:/network/physical:nwam&lt;br /&gt;
&lt;br /&gt;
svcadm enable svc:/network/physical:default&lt;br /&gt;
&lt;br /&gt;
luego se crea un archivo llamado /etc/hostname.[driver_de_placa_de_red] y dentro de ese archivo se coloca una sola linea con dirección IP y máscara de red&lt;br /&gt;
&lt;br /&gt;
En mi caso:&lt;br /&gt;
&lt;br /&gt;
    #echo 10.0.0.6/24 &amp;gt; /etc/hostname.rge0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fin comentario (de Ary)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
--------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Getting DNS to Work Correctly==&lt;br /&gt;
&lt;br /&gt;
Since I went to all that work when I setup Bind (DNS), I really wanted to use it.  My DNS server does forwarding so if the hostname lookup fails, the request is forwarded to &amp;quot;real&amp;quot; DNS servers somewhere in the ether to get IP addresses for hostnames like &amp;quot;yahoo.com&amp;quot; and &amp;quot;davidbotterill.com&amp;quot; (couldn&amp;#039;t resist the plug :) ).&lt;br /&gt;
&lt;br /&gt;
OpenSolaris by default uses NIS (Network Information Service) AKA YellowPages.   So I had to tell NIS to use DNS for hostname resolution.  This is a fairly simple task.  I simply had to copy the provided nsswitch file like this.&lt;br /&gt;
&lt;br /&gt;
    pfexec cp /etc/nsswitch.dns /etc/nsswitch.conf &lt;br /&gt;
&lt;br /&gt;
The DNS client is already running.  I know this because I ran this command.&lt;br /&gt;
&lt;br /&gt;
    svcs -a | grep dns &lt;br /&gt;
&lt;br /&gt;
and saw this result&lt;br /&gt;
&lt;br /&gt;
    online   14:17:45 svc:/network/dns/client:default&lt;br /&gt;
&lt;br /&gt;
If you remember from networking 101, the DNS client uses &amp;quot;/etc/resolv.conf&amp;quot; to find the &amp;quot;nameserver&amp;quot;.  So I ran&lt;br /&gt;
&lt;br /&gt;
    pfexec vi /etc/resolv.conf&lt;br /&gt;
&lt;br /&gt;
made sure I had this entry in there.&lt;br /&gt;
&lt;br /&gt;
    nameserver 192.168.1.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Routing==&lt;br /&gt;
&lt;br /&gt;
So now I had a static IP.  Doing &amp;quot;dig yahoo.com&amp;quot; returned valid IP addresses.  But, I could still not &amp;quot;ping yahoo.com&amp;quot;.  You guessed it.  There was a routing problem.  I dug around in some of the service configuration files, particularly &amp;quot;/lib/svc/method/net-routing-setup&amp;quot; and found that without DHCP,  OpenSolaris routing checks for this static route file.&lt;br /&gt;
&lt;br /&gt;
    /etc/defaultrouter&lt;br /&gt;
&lt;br /&gt;
Apparently, if I had real routers that supported RIP (Routing Information Protocol), OpenSolaris would discover the route out to the internet automatically.  But remember, I&amp;#039;m running home routers not Cisco routers. :)  I think some of them support RIP but I&amp;#039;ll save that for another day.&lt;br /&gt;
&lt;br /&gt;
In the &amp;quot;/etc/defaultrouter&amp;quot; file I put the IP address of my gateway (the router IP address) for the network my OpenSolaris machine is on.  In my case this is &amp;quot;192.168.1.1&amp;quot;.  Now I need to restart the routing by running the following command.&lt;br /&gt;
&lt;br /&gt;
    pfexec svcadm restart network/routing-setup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
links: [[http://blogs.sun.com/observatory/entry/beyond_dhcp_with_dns_and]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Autor: Ary&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>