I have a non global-zone which runs on a virtual etherstub device vnic0:2 at 
10.0.0.3 and should use 10.0.0.1 as gateway to access to internet. The gateway 
has IPNAT enabled.

On my non-global zone I have the following routing table:
# netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              10.0.0.1             UG        1          0 vnic0     
10.0.0.0             10.0.0.3             U         1          0 vnic0:2   
127.0.0.1            127.0.0.1            UH        1          0 lo0:4     

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If   
--------------------------- --------------------------- ----- --- ------- ----- 
::1                         ::1                         UH      1       0 lo0:4 

When I do a ping to 209.85.227.105 I get the following:

# ping 209.85.227.105
ICMP Host Unreachable from gateway trashmail-mysql (10.0.0.3)
 for icmp from trashmail-mysql (10.0.0.3) to 209.85.227.105
ICMP Host Unreachable from gateway trashmail-mysql (10.0.0.3)
 for icmp from trashmail-mysql (10.0.0.3) to 209.85.227.105
^C

A traceroute fails too:
# traceroute -v 209.85.227.105
traceroute to 209.85.227.105 (209.85.227.105), 30 hops max, 40 byte packets
 1  trashmail-mysql (10.0.0.3) 68 bytes to 10.0.0.3  0.066 ms !H  0.079 ms !H  
0.025 ms !H

It should be written at point 1 10.0.0.1 instead of 10.0.0.3.

This is my zone configuration:
# cat /etc/zones/trashmail.net_mysql.xml 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" 
"file:///usr/share/lib/xml/dtd/zonecfg.dtd.1">
<!--
    DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
-->
<zone name="trashmail.net_mysql" zonepath="/export/zones/trashmail.net_mysql" 
autoboot="true" brand="ipkg">
  <network address="10.0.0.3/8" defrouter="10.0.0.1" physical="vnic0"/>
  <filesystem special="/share" directory="/share" type="lofs"/>
</zone>

Why my zone ignores to use the gateway 10.0.0.1? It seems that it does not read 
the routing table?
Does I need to run a command or change a flag to enable to use the routing 
table?
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-help mailing list
opensolaris-help@opensolaris.org

Reply via email to