Automatic configuration example

This example shows a sample configuration and the files used for the configuration.

Scenario

In this example, there are two DNCAs and three packet forwarders:
  • Master DNCA - IP address 1.1.1.1
  • Secondary DNCA - IP address 1.1.1.2
  • Packet forwarder 1 - IP address 2.2.2.1
  • Packet forwarder 2 - 2.2.2.2
  • Packet forwarder 3 - 2.2.2.3

All of the Packet Forwarders initially connect to the Master DNCA to receive their config files. When the Auto-configuration script sees the new Packet Forwarders it assigns them to the available DNCAs as defined in the pfconf-conf.xml file. Each packet forwarder has it's own fwdr-conf.xml file

Example pfconf-conf.xml

In this example the pfconf-conf.xml file would look like:

<?xml version="1.0" encoding="UTF-8"?>
<Conf>
    <PfservPort>
        <Port>1880</Port>
    </PfservPort>
    <PFOptions>
        <NIC>
            <SetNIC>true</SetNIC>
            <PrimaryInterface>eth0</PrimaryInterface>
        </NIC>
        <BasePort>
            <SetPort>true</SetPort>
            <Port>1888</Port>
        </BasePort>
        <FwdrConfig>
            <ConfigFile>fwdr-conf-defaults.xml</ConfigFile>
        </FwdrConfig>
    </PFOptions>
	<DNCA>
            		<Address>1.1.1.1</Address>
            		<MaxPeers>3</MaxPeers>
	</DNCA>
	<DNCA>
            		<Address>1.1.1.2</Address>
           		 <MaxPeers>3</MaxPeers>
	</DNCA>
</Conf>

Example fwdr-conf.xml files

Each packet forwarder has it's own fwdr-conf. xml file.

In this example, the Packed Forwarder 1 fwdr-conf.xml would be:

<Conf>
    <Capture>
        <PrimaryInterface>eth0</PrimaryInterface>
    </Capture>

    <Delivery>
        <Peers>
            <Peer>
                <Address>1.1.1.1</Address>
                <Port>1888</Port>
            </Peer>
        </Peers>
    </Delivery>
</Conf>
In this example, the Packed Forwarder 2 fwdr-conf.xml would be:
	
<Conf>
    <Capture>
        <PrimaryInterface>eth0</PrimaryInterface>
    </Capture>

    <Delivery>
        <Peers>
            <Peer>
                <Address>1.1.1.2</Address>
                <Port>1888</Port>
            </Peer>
        </Peers>
    </Delivery>
</Conf>
In this example, the Packed Forwarder 3 fwdr-conf.xml would be:
	
<Conf>
    <Capture>
        <PrimaryInterface>eth0</PrimaryInterface>
    </Capture>

    <Delivery>
        <Peers>
            <Peer>
                <Address>1.1.1.1</Address>
                <Port>1889</Port>
            </Peer>
        </Peers>
    </Delivery>
</Conf>