qacafe - ip test solutions
Knowledge Base > Installation > How should I configure my Ethernet interfaces for CDRouter?

How should I configure my Ethernet interfaces for CDRouter?

CDRouter requires at least two network interfaces and relies on the IP configuration information contained in the CDRouter configuration file, not on the Linux host. Any two available network interfaces may be used, although it is recommended that all connections to corporate or lab networks be established on interfaces separate from those reserved for CDRouter. A typical system running CDRouter utilizes three network interfaces with two allocated to CDRouter and one allocated to a corporate or lab network connection.

It is recommended that all network interfaces used for CDRouter be configured with an IP address of 0.0.0.0 and a subnet mask of 0.0.0.0. Network interface configuration varies by distribution; example configurations for Fedora and Ubuntu systems are provided below.

Fedora Operating Systems

On Fedora systems, create a ifcfg-* file for each network interface. The ifcfg-* files are located in the /etc/sysconfig/network-scripts directory. Example start up files for eth1 and eth2 are:

    % cd /etc/sysconfig/network-scripts
    
    % cat ifcfg-eth1
    DEVICE=eth1
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    TYPE=Ethernet
    
    % cat ifcfg-eth2
    DEVICE=eth2
    ONBOOT=yes
    BOOTPROTO=none
    USERCTL=no
    TYPE=Ethernet
    
    

Ubuntu Operating Systems

On Ubuntu systems, modify the file /etc/network/interfaces. Example entries for eth1 and eth2 are:

    # more /etc/network/interfaces
    
    auto eth1
    iface eth1 inet static
    address 0.0.0.0
    netmask 0.0.0.0
    
    auto eth2
    iface eth2 inet static
    address 0.0.0.0
    netmask 0.0.0.0
    

It is also possible to edit network interface settings using the Network Settings GUI provided by Fedora or Ubuntu in the System > Administration menu. The IP address for each network interface used by CDRouter can be set to 0.0.0.0 with a subnet mask of 0.0.0.0.

Note that it is possible to run CDRouter using interfaces that have Linux IP addresses configured. However, care must be taken to make sure that the IP addresses do not conflict with any of the IP addresses used by CDRouter. Also, other networking services should not be active on these interfaces. For example, you would not want to run your own DHCP server on an interface being used for CDRouter.

By default, CDRouter will stop running if it detects an IP address on an interface that will be used for CDRouter testing. This check can be skipped for some configurations, as outlined in this Knowledge Base article.