Not able to ping global zone from local zone

Hi Gurus

I am not able to ping the local zone from global zone

when i am trying to ping i am getting below

ICMP Host Unreachable from gateway zone ( 192.268.35.210)
for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210)

However i can ping local zone from global

please suggest

Thanks

give us the output of

netstat -rn
ifconfig -a

from zone and global zone...

Hi Duke,

Please find the output from global zone

#netstat -rn

Destination   Gateway          Flags    Ref   Use     Interface 
---------------------------------------------------------
192.168.35.0 192.168.35.20   U         1     20        hme0
224.0.0.0      192.168.35.20   U         1     0         hme0
127.0.0.1      127.0.0.1          UH       4     81       lo0
#ifconfig -a 

lo0: flags=2001000849<up, LOOPBACK, RUNNING, MULTICAST, IPv4,
VIRTUAL> mtu 8232 index 1 
  zone zone 
  inet 127.0.0.1 netmask ff000000

hme0: flags=1000803<up, BROADCAST, MULTICAST,  IPv4> mtu 1500 index 2
inet 192.168.35.20 netmask ffffff00 broadcast 192.168.35.255 ether 8:0:20:c5:61:68

hme0:1: flags=1000803<up, BROADCAST, MULTICAST,  IPv4> mtu 1500 index 2  zone zone 
inet 192.168.35.210 netmask ffffff00 broadcast 192.168.35.255 

Out from the local zone

#netstat -rn

Destination   Gateway          Flags    Ref   Use     Interface 
---------------------------------------------------------
192.168.35.0 192.168.35.210   U         1     0        hme0:1
224.0.0.0      192.168.35.210   U         1     0         hme0:1
127.0.0.1      127.0.0.1          UH        8     43       lo0:1
#ifconfig -a

lo0:1: flags=2001000849<up, LOOPBACK, RUNNING, MULTICAST, IPv4,
VIRTUAL> mtu 8232 index 1 
    inet 127.0.0.1 netmask ff000000
hme0:1: flags=1000803<up, BROADCAST, MULTICAST,  IPv4> mtu 1500 index 2  
inet 192.168.35.210 netmask ffffff00 broadcast 192.168.35.255

try to add a default route in /etc/defaultrouter and restart your mashine or the network...

Thanks Duke

what should i add in defaultrouter

the default router of your network? or is this a standalone mashine? no internet?

Its standalone system without internet

so use the global zone as router and enable ipv4-forwarding with svcadm... just to test if it works...

Thanks Duke,

I did enable the ipv-4 forwarding and output from routeadm is showing " IPv4 routing enabled" and i can ping gloabl zone from local zone.

However when i booting the zone i am getting the below warning message

zoneadm: zone 'zone': WARNING: hme0:1 no matching subnet found in netmask(4) for 192.168.35.210 using default of 255.255.255.0

enter a netmask for the ip in "/etc/netmasks".

Hi Duke,

Netmask is already set and its showing following entry in /etc/netmasks

192.168.1.0 255.255.255.0

I set the same in zone also however still i am getting the same waring as " zoneadm: zone 'zone': WARNING: hme0:1 no matching subnet found in netmask(4) for 192.168.35.210 using default of 255.255.255.0" .

Please suggest

That's normal. 192.168.35.210 is not in the range 192.168.1.0/255.255.255.0.

$ ipcalc 192.168.1.0/255.255.255.0
Address:   192.168.1.0          11000000.10101000.00000001. 00000000
Netmask:   255.255.255.0 = 24   11111111.11111111.11111111. 00000000
Wildcard:  0.0.0.255            00000000.00000000.00000000. 11111111
=>
Network:   192.168.1.0/24       11000000.10101000.00000001. 00000000
HostMin:   192.168.1.1          11000000.10101000.00000001. 00000001
HostMax:   192.168.1.254        11000000.10101000.00000001. 11111110
Broadcast: 192.168.1.255        11000000.10101000.00000001. 11111111
Hosts/Net: 254                   Class C, Private Internet

So, try using 192.168.35.0/255.255.255.0 (for example).

hi,

You have given the output of ifconfig output

#ifconfig -a

lo0: flags=2001000849<up, LOOPBACK, RUNNING, MULTICAST, IPv4,
VIRTUAL> mtu 8232 index 1
zone zone
inet 127.0.0.1 netmask ff000000

hme0: flags=1000803<up, BROADCAST, MULTICAST, IPv4> mtu 1500 index 2
inet 192.168.35.20 netmask ffffff00 broadcast 192.168.35.255 ether 8:0:20:c5:61:68

hme0:1: flags=1000803<up, BROADCAST, MULTICAST, IPv4> mtu 1500 index 2 zone zone
inet 192.168.35.210 netmask ffffff00 broadcast 192.168.35.255

But in this output your ip is showing in Up status, But not in running status, for this you have to add default route through command

route add default 192.168.35.1

default gatway ask your network ok it may be 192.168.35.1

add this entry in cat /etc/defaultrouter like this
default 192.168.35.1

then only you will get the status is Running then only you can ping from one zone to another zone

after adding route entry in globle zone you can see default entry automatically in non-globle zone also ok

check the link is comming in server or not in NIC card