Running IPCOP Virtualised
Many people want to ’test’ IPCOP before installing on a stand along computer or test addons before applying to a production environment. Testing IPCOP in a virtual machine, such as VMware, allow you to install IPCOP on another computer for testing purposes.
When installing IPCOP in VMware, you must make sure that you have correctly configured VMware. When you install VMware, it will install a number of virtual interfaces. Each of these interfaces is treated as a separate network with all computers attached via a switch. These different virtual network are what allow you to test IPCOP in a virtual environment. To correctly test your setup, you will need to run virtual machines, such as DSL, to test IPCOP.
Instructions for installing IPCOP in VMware are as follows and assume that you have already installed VMware Server with the default virtual network settings. If you try to change your setup (i.e. go from a Red-Green to Red-Blue-Green), you will have to change your settings to match the below guides (due to how IPCOP recognizes each NIC).
VMware general setup
Create a new virtual machine
- Goto ’File’
- Select ’New’
- Select ’Virtual Machine’
At the Welcome Screen
- Select ’Next’
At the Select the Appropriate Configuration screen
- Select ’Custom’
- Press ’Next’
At the Select a Guest Operating System screen
- Select ’Linux’ under ’Guest Operating system’
- Select ’Other Linux 2.4.x kernel’ under ’Version’
- Press ’Next’
At the Name the Virtual Machine screen
- Enter ’IPCOP’ in ’Virtual Machine Name’
- Leave ’Location’ to the default
- Press ’Next’
At the Set Access Rights screen
- Uncheck ’Make this virtual machine private’
- Press ’Next’
At the Startup / Shutdown Options screen
- Press ’Next’
At the Processor Configuration screen
- Press ’Next’
At the memory for the Virtual Machine screen
- Press ’Next’
At the Network Type screen
- Select ’Do not use a network connection’ We will set the network connections later
- Press ’Next’
At the Select I/O Adapter Types screen
- Press ’Next’
At the Select a Disk screen
- Press ’Next’
At the Select a Disk Type screen
- Select ’IDE’
- Press ’Next’
At the Specify Disk Capacity screen
- Enter ’0.5’ under ’Disk size (GB)’
- Uncheck ’Allocate all disk space now’
- Press ’Next’
At the Specify Disk File screen
- Press ’Next’
Network specific configuration
Now that you have a general VMware setup, you must configure it specific to the network type you want (i.e. Red-Green). Do not skip steps because the order in which each NIC is assigned will change the order IPCOP recognizes the interfaces.
This setup will result in the following networks being used:
- Red
- Is connected to VMnet0 (your LAN)
- Use DHCP or Static for Red network settings
- Orange
- Is connected to VMnet3 (if used)
- Use a network setting of 10.200.200.1 with a subnet mask of 255.255.255.0
- Blue
- Is connected to VMnet2 (if used)
- Use a network setting of 10.200.201.1 with a subnet mask of 255.255.255.0
- Green
- Is connect to VMnet1 (you can access from your host computer)
- Use a network setting of 192.168.59.2 with a subnet mask of 255.255.255.0 This network setting is the default VMnet1 subnet
IPCOP Red-Green setup in VMware
Edit the Virtual Host settings
- Under ’Commands’ click on ’Edit virtual machine settings’
Edit the CD-ROM settings to load the IPCOP ISO
- Under the Hardware tab click on ’CD-ROM’
- Under ’Connection’, select ’Use ISO Image’
- Click ’Browse’
- Select the IPCOP ISO and click ’Open’
Add the Green NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet1 (Host-only)’
- Click ’Finish’
Add the Red NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet0 (default Bridged)’
- Click ’Finish’
Click ’OK’
IPCOP Red-Blue-Green setup in VMware
Edit the Virtual Host settings
- Under ’Commands’ click on ’Edit virtual machine settings’
Edit the CD-ROM settings to load the IPCOP ISO
- Under the Hardware tab click on ’CD-ROM’
- Under ’Connection’, select ’Use ISO Image’
- Click ’Browse’
- Select the IPCOP ISO and click ’Open’
Add the Green NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet1 (Host-only)’
- Click ’Finish’
Add the Blue NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet2’
- Click ’Finish’
Add the Red NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet0 (default Bridged)’
- Click ’Finish’
Click ’OK’
When installing, assign your NICs in the following order:
- Blue
- Red
IPCOP Red-Orange-Green setup in VMware
Edit the Virtual Host settings
- Under ’Commands’ click on ’Edit virtual machine settings’
Edit the CD-ROM settings to load the IPCOP ISO
- Under the Hardware tab click on ’CD-ROM’
- Under ’Connection’, select ’Use ISO Image’
- Click ’Browse’
- Select the IPCOP ISO and click ’Open’
Add the Green NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet1 (Host-only)’
- Click ’Finish’
Add the Orange NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet3’
- Click ’Finish’
Add the Red NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet0 (default Bridged)’
- Click ’Finish’
Click ’OK’
When installing, assign your NICs in the following order:
- Orange
- Red
IPCOP Red-Orange-Blue-Green setup in VMware
Edit the Virtual Host settings
- Under ’Commands’ click on ’Edit virtual machine settings’
Edit the CD-ROM settings to load the IPCOP ISO
- Under the Hardware tab click on ’CD-ROM’
- Under ’Connection’, select ’Use ISO Image’
- Click ’Browse’
- Select the IPCOP ISO and click ’Open’
Add the Green NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet1 (Host-only)’
- Click ’Finish’
Add the Blue NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet2’
- Click ’Finish’
Add the Orange NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet3’
- Click ’Finish’
Add the Red NIC
- Under the Hardware tab click ’Add’
- At the Welcome screen
- Click ’Next’
- At the Hardware type screen
- Select ’Ethernet Adapter’ under ’Hardware type’
- Click ’Next
- At the Network Type screen
- Select ’Custom’ under ’Network connection’
- Select ’VMnet0 (default Bridged)’
- Click ’Finish’
Click ’OK’
When installing, assign your NICs in the following order:
- Blue
- Orange
- Red
Installing IPCOP in VMware
Installation of IPCOP in VMware works the same way as if it was a stand alone computer. When assigning your NICs, assign them in the following order:
- Blue (if installed)
- Orange (if installed)
- Red
To start your virtual machine:
- Goto ’Power’
- Select ’Power On’
