Alain Durand wrote:
> Thanks for your answer, I might be missing something obvious, but how  
> can I add this route ?
> 
> (global zone) # route add default xx.121.41.254
> add net default: gateway xx.121.41.254: Network is unreachable

Probably because the global zone does not have an IP address on that 
subnet. You will need to configure one long enough to add the route.

If your zone does not autoboot, maybe use the IP address you later give 
to the zone, then delete the IP address, then boot the zone. zones on 
different subnets than the global zone is one reason for exclusive IP 
instances. It isolates some of the routing challenges.

BTW, this only works for default routes. Static ones don't work. at 
least that is my/others' experience.

Steffen

> 
> Regards,
> Alain
> 
> On Jun 4, 2008, at 8:02 AM, Erik Nordmark wrote:
> 
>> Alain Durand wrote:
>>> Hi Ben,
>>> Thanks for your answer, there is indeed something different in the  
>>> routing tables :
>>> - With the IP alias :
>>> Routing Table: IPv4
>>>  Destination           Gateway           Flags  Ref     Use      
>>> Interface -------------------- -------------------- ----- -----  
>>> ---------- --------- default              xx.121.24.254         
>>> UG        1        309           xx.121.24.0          xx. 
>>> 121.24.211        U         1         15 vfe0      xx. 
>>> 121.41.77         xx.121.41.77         UH        1          0  
>>> vfe0:1    224.0.0.0            xx.121.24.211        U          
>>> 1          0 vfe0      127.0.0.1            127.0.0.1             
>>> UH        1          0 lo0    - With the zone :
>>> Routing Table: IPv4
>>>  Destination           Gateway           Flags  Ref     Use      
>>> Interface -------------------- -------------------- ----- -----  
>>> ---------- --------- default              xx.121.24.254         
>>> UG        1        314           xx.121.24.0          xx. 
>>> 121.24.211        U         1         15 vfe0       
>>> 224.0.0.0            xx.121.24.211        U         1          0  
>>> vfe0      127.0.0.1            127.0.0.1            UH         
>>> 1          0 lo0
>> That is netstat -rn in the global zone, I assume.
>>
>> If you do netstat -rn in the non-global zone you will see that the  
>> xx.121.41.77 is indeed there. BUT that zone will not see a default  
>> route. This is because the only default route is for the 24 subnet.  
>> You need to add an additional default route in the global zone which  
>> has a gateway in the 41 subnet.
>>
>>   Erik
> 
> _______________________________________________
> zones-discuss mailing list
> zones-discuss@opensolaris.org

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to