Hello all,

  I am trying to get the following with NWAM: a physical NIC
is connected to whatever network is available, usually with
DHCP. Also there is a VNIC on an internal etherstub which
serves local zones with tests, etc. The VNIC has a fixed IP
address.

  This all works nicely with legacy configuration via files
or ipadm, except that for the latter I can not set the
interface/address enabled not-temporarily (i.e. it is down
after reboots).

  Now I am trying to configure the same with NWAM, and the
vnic interface remains in "offline*" state (nwamadm list)
after the service restart. According to ifconfig, it is not
even plumbed (and becomes unplumbed if I had it set up before
restarting the SMF service).

  Any ideas on what am I doing wrong? Disclaimer: I am pretty
new to NWAM indeed :)

Screenshots:

root@n54l:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
tun0: flags=10011008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,ROUTER,IPv4,FIXEDMTU> mtu 1500 index 4
        inet 192.168.131.50 --> 192.168.131.49 netmask ffffffff
        ether 90:c1:21:f6:4:ff
bge0: flags=1104843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,ROUTER,IPv4> mtu 1500 index 9
        inet 192.168.1.111 netmask ffffff00 broadcast 192.168.1.255
        ether 28:92:4a:36:b:c8
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128
bge0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 9
        inet6 fe80::2a92:4aff:fe36:bc8/10
        ether 28:92:4a:36:b:c8


root@n54l:~# ipadm show-if
IFNAME     STATE    CURRENT      PERSISTENT
lo0        ok       -m-v------46 ---
tun0       ok       -mp-------4- ---
bge0       ok       bm--------46 ---
vnic127001 disabled ------------ -46


root@n54l:~# ipadm show-addr
ADDROBJ           TYPE     STATE        ADDR
lo0/v4            static   ok           127.0.0.1/8
tun0/_a           static   ok           192.168.131.50->192.168.131.49
bge0/_b           dhcp     ok           192.168.1.111/24
lo0/v6            static   ok           ::1/128
bge0/_a           addrconf ok           fe80::2a92:4aff:fe36:bc8/10
vnic127001/v4     static   disabled     192.168.127.1


root@n54l:~# ipadm show-addrprop
ADDROBJ PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE lo0/v4 broadcast r- -- -- -- -- lo0/v4 deprecated rw off -- off on,off lo0/v4 prefixlen rw 8 -- 8 1-30,32 lo0/v4 private rw off -- off on,off lo0/v4 transmit rw on -- on on,off lo0/v4 zone rw global -- global -- tun0/_a broadcast r- -- -- -- -- tun0/_a deprecated rw off -- off on,off tun0/_a prefixlen rw -- -- -- -- tun0/_a private rw off -- off on,off tun0/_a transmit rw on -- on on,off tun0/_a zone rw global -- global -- bge0/_b broadcast r- 192.168.1.255 -- 192.168.1.255 -- bge0/_b deprecated rw off -- off on,off bge0/_b prefixlen rw 24 -- 24 1-30,32 bge0/_b private rw off -- off on,off bge0/_b transmit rw on -- on on,off bge0/_b zone rw global -- global -- lo0/v6 broadcast r- -- -- -- -- lo0/v6 deprecated rw off -- off on,off lo0/v6 prefixlen rw 128 -- 64 1-126,128 lo0/v6 private rw off -- off on,off lo0/v6 transmit rw on -- on on,off lo0/v6 zone rw global -- global -- ADDROBJ PROPERTY PERM CURRENT PERSISTENT DEFAULT POSSIBLE
ipadm: warning: no such object 'vnic127001/v4'Object not found
vnic127001/v4 broadcast ? ? ? ? ?



root@n54l:~# nwamadm list
TYPE        PROFILE        STATE
ncp         Automatic      online
ncu:phys    bge0           online
ncu:ip      bge0           online
ncu:phys    vnic127001     online
ncu:ip      vnic127001     offline*
loc         Automatic      online
loc         NoNet          offline
loc         User           disabled


root@n54l:~# nwamadm list
TYPE        PROFILE        STATE
ncp         Automatic      online
ncu:phys    bge0           online
ncu:ip      bge0           online
ncu:phys    vnic127001     online
ncu:ip      vnic127001     offline*
loc         Automatic      online
loc         NoNet          offline
loc         User           disabled


root@n54l:~# nwamcfg
nwamcfg> select ncp Automatic
nwamcfg:ncp:Automatic> list
NCUs:
        phys    bge0
        ip      bge0
        phys    vnic127001
        ip      vnic127001
nwamcfg:ncp:Automatic> select ncu phys bge0
nwamcfg:ncp:Automatic:ncu:bge0> list
ncu:bge0
        type                    link
        class                   phys
        parent                  "Automatic"
        activation-mode         prioritized
        enabled                 true
        priority-group          0
        priority-mode           shared
nwamcfg:ncp:Automatic:ncu:bge0> end
nwamcfg:ncp:Automatic> select ncu ip bge0
nwamcfg:ncp:Automatic:ncu:bge0> list
ncu:bge0
        type                    interface
        class                   ip
        parent                  "Automatic"
        enabled                 true
        ip-version              ipv4,ipv6
        ipv4-addrsrc            dhcp
        ipv6-addrsrc            dhcp,autoconf
nwamcfg:ncp:Automatic:ncu:bge0> end
nwamcfg:ncp:Automatic> select ncu phys vnic127001
nwamcfg:ncp:Automatic:ncu:vnic127001> list
ncu:vnic127001
        type                    link
        class                   phys
        parent                  "Automatic"
        activation-mode         prioritized
        enabled                 true
        priority-group          0
        priority-mode           shared
nwamcfg:ncp:Automatic:ncu:vnic127001> end
nwamcfg:ncp:Automatic> select ncu ip vnic127001
nwamcfg:ncp:Automatic:ncu:vnic127001> list
ncu:vnic127001
        type                    interface
        class                   ip
        parent                  "Automatic"
        enabled                 true
        ip-version              ipv4
        ipv4-addrsrc            static
        ipv4-addr               "192.168.127.1"
        ipv6-addrsrc            dhcp,autoconf
nwamcfg:ncp:Automatic:ncu:vnic127001> end
nwamcfg:ncp:Automatic>


root@n54l:~# tail /var/svc/log/*nwam*
[ Dec 19 16:27:38 Executing refresh method ("/lib/svc/method/net-nwam refresh"). ]
[ Dec 19 16:27:38 Method "refresh" exited with status 0. ]
[ Dec 19 16:32:03 Stopping because service restarting. ]
[ Dec 19 16:32:03 Executing stop method ("/lib/svc/method/net-nwam stop"). ]
[ Dec 19 16:32:04 Method "stop" exited with status 0. ]
[ Dec 19 16:32:04 Executing start method ("/lib/svc/method/net-nwam start"). ]
[ Dec 19 16:32:04 Method "start" exited with status 0. ]
[ Dec 19 16:32:04 Rereading configuration. ]
[ Dec 19 16:32:04 Executing refresh method ("/lib/svc/method/net-nwam refresh"). ]
[ Dec 19 16:32:04 Method "refresh" exited with status 0. ]

root@n54l:~# date
Thu Dec 19 16:33:33 MSK 2013



Thanks for ideas,
//Jim Klimov


_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to