Additional Interfaces Tutorial
Hardware:
Compaq DL360 as my IPcop 2 built-in 1-/100 NICs (intel based) Set up a GREEN/BLUE/ORANGE/RED Network
Objective
More interfaces via a Compaq QUAD 10/100 NIC. These all used the e100 driver (intel).
Software used
XTIFACE v0.5.4 (set up) and everything worked correctly.
Problem
Replaced the QUAD Compaq 10/100 NIC with a QUAD Gigabit NIC (Broadcom -Tgz driver variant). The Broadcom NIC enumerated on the PCI bus BEFORE the on board 10/100 NICs!
This meant that since IPCop setup only recognizes the first 4 interfaces, ETH0, ETH1, ETH2, ETH3 (ALL on the Broadcom NIC), gigabit interfaces are used for both RED and BLUE networks (gigabit was not needed or required on these interfaces).
Upon inspection (using ifconfig) I only had ETH0, ETH1, ETH2, ETH3 to work with, NO ONBOARD NICS! (only Broadcom)
I knew I could re-order interfaces by editing /var/ipcop/ethernet/settings
but remember I wanted RED and BLUE on ETH4 and ETH5, and when I put these in this file, I got the error on reboot when trying to bring up the RED interface.
’unrecognized option ’eth4”
Editing /etc/rc.d/rc.network, you need to change the line that reads
for NIC in 0 1 2 3; do
and change to
for NIC in 0 1 2 3 4 5; do
for 6 nics.
Now I can use the /SETTINGS file I mentioned before to order the interfaces the way I want!
My extra interfaces (XTIFACE v0.5.4) were overwriting my intended use for the interfaces 4 and 5.
Before, XIFACE was actually ON ETH4 and ETH5 as the 4th and 5th networks.
It was now blowing up the use of the onboard NICS and the RED/BLUE networks now that THEY were 4 and 5.
I loaded the web admin interface and disabled the xiface interfaces.
ANOTHER REBOOT…and on that reboot, all was well!!!
The RED and BLUE nics were on the ETH4 and ETH5 interfaces without an argument from XIFACE.
I returned to the web admin console and re-enabled them on the (now visible) eth2 and eth3 interfaces.
BOOM! Setup is now working.
