2 Replies Latest reply on Nov 7, 2018 7:48 AM by Nohj

    kernel zone networking not working

    Nohj

      Sorry if this post is rather long.

      I have a weird problem, in that whenever I build a kernel zone (I am new to them), the networking does not work, any attempts just hang.

      I have built zones from .uar archives, and direct from the AIP server. Same problem regardless.

      The default route is correct, and in fact everything looks fine to me. I have given some brief, what I hope are relevant, details below.

      The prompt indicates the zone they were run on, "global and "kernel-1".

      global # dladm show-link

      LINK                CLASS     MTU    STATE    OVER

      net7                phys      1500   down     --

      net6                phys      1500   up       --

      net5                phys      1500   down     --

      net4                phys      1500   up       --

      net8                phys      1500   up       --

      net3                phys      1500   unknown  --

      net1                phys      1500   unknown  --

      net2                phys      1500   unknown  --

      net0                phys      1500   unknown  --

      aggr1               aggr      1500   up       net4 net6

      aggr270001          vlan      1500   up       aggr1

      aggr90001           vlan      1500   up       aggr1

      native-1/net0        vnic      1500   up       aggr1

      native-2/net0        vnic      1500   up       aggr1

      native-3/net0        vnic      1500   up       aggr1

      native-4/net0      vnic      1500   up       aggr1

      native-5/net0     vnic      1500   up       aggr1

      native-6/net0     vnic      1500   up       aggr1

      kernel-1/net0    vnic      1500   up       aggr1

      global #

      global # ipadm show-addr

      NAME              CLASS/TYPE STATE        UNDER      ADDR

      aggr90001         ip         ok           --         --

         aggr90001/v4   static     ok           --         10.188.206.129/24

      aggr270001        ip         ok           --         --

         aggr270001/v4  static     ok           --         10.188.20.189/24

      lo0               loopback   ok           --         --

         lo0/v4         static     ok           --         127.0.0.1/8

         lo0/v6         static     ok           --         ::1/128

      net8              ip         ok           --         --

         net8/v4        static     ok           --         169.254.182.77/24

      KERNEL ZONE

      kernel-1 # dladm show-link

      LINK                CLASS     MTU    STATE    OVER

      net0                phys      1500   up       --

      kernel-1 # ipadm show-addr

      ADDROBJ           TYPE     STATE        ADDR

      lo0/v4            static   ok           127.0.0.1/8

      net0/v4           static   ok           10.188.20.154/24

      lo0/v6            static   ok           ::1/128

      net0/v6           addrconf ok           fe80::8:20ff:feb3:927d/10

      kernel-1 # route get default

         route to: default

      destination: default

             mask: default

          gateway: 10.188.20.254

        interface: net0

            flags: <UP,GATEWAY,DONE,STATIC>

      recvpipe  sendpipe  ssthresh    rtt,ms rttvar,ms  hopcount      mtu     expire

             0         0         0         0         0         0      1500         0

      kernel-1 # netstat -in

      Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis Queue

      lo0   8232 127.0.0.0     127.0.0.1      24     0     24     0     0      0

      net0  1500 10.188.20.0   10.188.20.154  0      0     324    0     0      0

       

      Name  Mtu  Net/Dest                    Address                     Ipkts  Ierrs Opkts  Oerrs Collis

      lo0   8252 ::1                         ::1                         24     0     24     0     0

      net0  1500 fe80::8:20ff:feb3:927d/10   fe80::8:20ff:feb3:927d      0      0     324    0     0

      global # ping 10.188.20.250

      10.180.20.250 is alive

      kernel-1 # ping 10.188.20.250

      <long delay>

      no answer from 10.188.20.250

       

        • 1. Re: kernel zone networking not working
          Nik

          Hi.

          Look on this information:

          aggr1               aggr      1500   up       net4 net6

          aggr270001          vlan      1500   up       aggr1

          aggr90001           vlan      1500   up       aggr1

          kernel-1/net0    vnic      1500   up       aggr1

           

          kernel-1 # ipadm show-addr

          ADDROBJ           TYPE     STATE        ADDR

          net0/v4           static   ok           10.188.20.154/24

           

          global # ipadm show-addr

          NAME              CLASS/TYPE STATE        UNDER      ADDR

          aggr90001         ip         ok           --         --

          aggr90001/v4   static     ok           --         10.188.206.129/24

           

          Aggr1 - Connected as targget VLAN port.

          Net0 for kernel-1 - Configured as untarget VLAN port. So this interface will not have access to network.

           

          So you need configure VLAN inside kernel zone (https://docs.oracle.com/cd/E53394_01/html/E54751/gqopf.html ) or configure kernel-1/net0 above  aggr90001 interface.

           

          Regards,

            Nik

          • 2. Re: kernel zone networking not working
            Nohj

            Brilliant, thanks Nik, turned out to be really simple in the end, the link you gave (page 35) gave the solution. Thanks for your help.