On Tuesday, 10/25/2011 at 07:40 EDT, Agblad Tore <[email protected]> wrote: > We are planning to change into Layer2, include MAC just as a normal x86 server > does. > But now we don't get the IP-addresses from that VM command: q vswitch detail > anymore :( > > Is there any way to get it ?
In general, no. In layer 2, the IP addresses are not registered with the OSA. CP *will* look for gratuitous ARP responses the guest will issue when activating the network device, but they are only held for "IPtimeout" minutes (DEFINE VSWITCH). > The main reason is that we have a table(in a mysqldatabase actually) that holds > all our available IPaddresses. > This includes not used ones, which have blank in servername. > This table is the base info source for a web admin interface we have. > Built into it is an auto-update function, using the output from the VM cmd q > vswitch detail, and update the row > with that IPaddress in the table with the right servername(VMuserid) . I would suggest that this is more properly done with reserved IP addresses in DHCP, just as you would do for other server platforms. Rather than the user ID, you would use the hardcoded virtual MAC addresss (MACPREFIX in SYSTEM CONFIG + MACID in NICDEF). The DHCP server can be located anywhere in the LAN; it doesn't have to live on z. Alan Altmark Senior Managing z/VM and Linux Consultant IBM System Lab Services and Training ibm.com/systems/services/labservices office: 607.429.3323 mobile; 607.321.7556 [email protected] IBM Endicott ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
