Comment 0 for bug 232361

Revision history for this message
Kevin_Traas (kevin-traas) wrote : Option --net fails (other than for Class C)

Binary package hint: ubuntu-vm-builder

$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04

$ dpkg --status ubuntu-vm-builder | grep -e Status -e Version
Status: install ok installed
Version: 0.4-0ubuntu0.1

Problem:
When attempting to specify network settings with an IP in a class B range, the script responds with "setting network to VALUE" where VALUE is an auto-determined (Class C, 24 bit) value based on the IP address that was specified - not the value that was specified via the --net command line option. For instance, --ip 10.5.20.57 --mask 255.255.0.0 --net 10.5.0.0 --bcast 10.5.255.255 will produce a response of "setting network to 10.5.20.0".

Cause:
Everywhere within the script, the Network address is referenced as $NET; however, line 287 sets the value of NETWORK when the --net command line option is passed.

Solution:
Remove the characters WORK from line 287 of the script.