Wpar network,i'm confused

Hi.
I've setup a wpar on aix

 mkwpar -h ibmunix2  -i -r -N  interface=en0 address=10.6.0.1 netmask=255.255.255.0 -n ibmunix2

When i log into ibmunix2 it can't ping any external host,include the ibm host.
How to set route for network please?
I've set ibmunix2 with a different subnet.

---------- Post updated at 07:25 PM ---------- Previous update was at 04:34 PM ----------

I have found a temporary solution using a ip in the same subnet
But if i want a different subnet for wpars?
I have to use an alias?
Thanks

you have to write routing table. look at smitty mkroute

Thanks

I have tried manually
Setting ip for wpar

chwpar -N address=192.168.4.76 interface=en0 netmask=255.255.255.0 ibmunix2

Then add route

 chwpar -i -I rtdest=192.168.4.0  rtnetmask=255.255.255.0 rtgateway=192.168.0.44 rtinterface=en0 ibmunix2
chwpar -i -I rtdest=192.168.0.0  rtnetmask=255.255.255.0 rtgateway=192.168.0.44 rtinterface=en0 ibmunix2

192.168.0.44 is the address of host wpar
i tried also 192.168.0.1 wich is the router but
doesn't work,the ping for 192.168.0.0/24 are dropped
and outside(4.4.4.4 or any internet address) said "network unreachable"
Where is wrong?

I suspect that if you are going to use the hosting partition as a router it will need to be configured as one - an address the WPAR can ping directly - maybe another alias on the 'host' and also set ipforwarding using
no -o ipforwarding=1 (as root in the host/global AIX area).

p.s. when wparname is resolveable to a hostname AND the hostname is in the same IP network as the global (single-homed/single-IP network) environment mkwpar will fill the WPAR netstat info with a copy of the global partition routing information. When you have a multi-homed global partition you must fill this yourself. Historically (i.e., back in 2007 when WPAR first saw light of day) WPAR's had to be in the same network as the global partition. The flexibility of being able to configure to any network means you have to setup your own routing tables - as mentioned above by agent.kgb

1 Like

Of course i have enabled ip forwarding on aix box
But doesn't work
Work only with the same netmask and subnet of real router

When I have more time I will setup a test.

FYI - I was playing around a few weeks with WPAR routing - using Application WPAR. Maybe you get some ideas from looking at this: ROOTVG - AIX, LinuxOnPower & POWER Systems Portal - WPAR - revisited - Network Configuration and then search for
Application WPAR - who am I in a network sense?

Hope this helps.

as I see, you have wrong network configuration.

your WPAR has IP address 192.168.4.76/24.
you set the routing for the network 192.168.4.0/24 through gw 192.168.0.44 - it will never work, because the network 192.168.4.0/24 is directly connected.
then you set another route to the network 192.168.0.0/24 through gw 192.168.0.44 - it will never work, because the WPAR doesn't know how to reach 192.168.0.44.