On Thu, 09 Jul 2009 10:06:23 -0500, Alex <[email protected]> wrote: > Good Morning! > > I am trying to get a branded zone set up with a virtual NIC and things are > not going very well. I have a machine with two available ip addresses and > one nic. I have 64.85.164.140 and 64.85.164.141 > > a...@machine:~$ dladm show-link > LINK CLASS MTU STATE OVER > iprb0 phys 1500 up -- > vnic0 vnic 1500 up iprb0 > > a...@machine:~$ dladm show-vnic > LINK OVER SPEED MACADDRESS MACADDRTYPE > VID > vnic0 iprb0 10 2:8:20:d:bb:25 random 0 > > a...@machine:~$ ifconfig -a > lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 > index 1 > inet 127.0.0.1 netmask ff000000 > lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu > 8232 index 1 > zone buildz > inet 127.0.0.1 netmask ff000000 > iprb0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 > inet 64.85.164.140 netmask fffff000 broadcast 64.85.175.255 > vnic0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3 > inet 0.0.0.0 netmask 0 > vnic0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index > 3 > zone buildz > inet 64.85.164.141 netmask fffff000 broadcast 64.85.175.255 > lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 > index 1 > inet6 ::1/128 > lo0:1: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu > 8252 index 1 > zone buildz > inet6 ::1/128 > iprb0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2 > inet6 fe80::21c:c0ff:fe84:7e0d/10 > > > a...@machine:~$ pfexec zonecfg -z buildz > zonecfg:buildz> export > create -b > set zonepath=/export/zones/buildz > set brand=lx > set autoboot=false > set ip-type=shared > add net > set address=64.85.164.141/20 > set physical=vnic0 > set defrouter=64.85.160.1 > end > zonecfg:buildz> exit > > > network connectivity is not working at all, although the interface does > show up in the zone. > > ideas? Once I get it working I'm going to document it in full on my > website for other lost souls trying to do the same, it seems like there is > a lot of outdated information about crossbow out there ;). > > > Thanks! > -- Alex > _______________________________________________ > zones-discuss mailing list > [email protected]
Just a quick FYI, I was able to get this working. There is no need to use dladm to get virtual ip addresses working in Solaris Zones. zonecfg:buildz> export create -b set zonepath=/export/zones/buildz set brand=lx set autoboot=false set ip-type=shared add net set address=64.85.164.141/20 set physical=iprb0 set defrouter=64.85.160.1 end The usage of " set ip-type=shared " seems to be what I was missing to use virtual ip addresses. zoneadm did the rest! Thanks! _______________________________________________ zones-discuss mailing list [email protected]
