Anchor | ||||
---|---|---|---|---|
|
...
Login a root. Start "ncu" utility:
#
CHARON Network Configuration Utility, STROMASYS (c) |
2016 Version 1. |
6 |
eth0 host connected to host
eth1 host connected to host
lo host unmanaged from host
|
|
bridge id |
|
STP enabled interfaces |
select action: |
Remove Bridge |
8 - Exit
|
|
Enter "3" to create a bridge between the host physical network adapter and the LINUX virtual network Interfaces (TAP) and specify the physical network interface ("eth1" in our example) and a number of the virtual network Interfaces to be created (2 in our example):
select action: |
8 - Exit
|
|
Now enter "57" to see the created virtual interfaces:
Interfaces |
|
Dedicated to |
State |
|
------------ |
----- |
|
host connected to host |
eth1 bridge disconnected |
lo host
from bridge |
tap0 CHARON |
connected to host |
tap1 bridge connected to bridge |
|
bridge id STP enabled interfaces |
br0_eth1
8000. |
22314588acac no eth1 |
|
8 - Exit
|
|
In the example above we see 2 virtual network Interfaces "tap0" and "tap1" connected to the created bridge. The physical network interface "eth1" is used for the bridge to the virtual network interfaces.
The interfaces "tap0" and "tap1" are ready to be used in CHARON configurations - they do not need to be additionally dedicated to CHARON.
Enter "68" to quit "ncu" utility.
...
- Login as "root" user.
Configure the physical network interface to run in promiscuous mode using the following command. This interface will be dedicated to the whole network bridge (created later).
# ifconfig eth<N> 0.0.0.0 promisc up
Promiscuous mode allows the physical (or virtual) network interface to accept the entire volume of incoming packets. This mode is essential for consistency of the information transfer.
In case the firewall is enabled on the host system, the following command should be executed to allow the bridge to forward IP packets:
# /sbin/iptable -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
This command can also be performed from the bridge configuration script. It has to be executed each time the iptables service is (re)started.
It is also possible to make this setting system-wide. Either:
Issue the given command from the firewall control panel.
Add the following line to the end of the "/etc/sysconfig/iptables
"
file:-I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
...
Creation of the desired number of virtual network interfaces (TAPs) can be performed in the following way:
|
where “tap<N>” is a name of an instance of the virtual network interface, i.e. “tap0”, “tap1” etc.
Once each virtual network interface instance is created it must be set to promiscuous mode:
|
...
To interconnect the physical and virtual network interfaces created in the previous step the network bridge must be introduced in the following way:
|
where “br0” stands for a name of the created bridge.
Now it is possible to add the network interfaces to the created bridge:
|
Example:
|
The proposed configuration assumes one and only one network bridge, so loops are not possible. It is required to turn off the spanning tree protocol with the following command:
|
Starting bridge
To start the created bridge “br0” use the following command:
|
Usage of the virtual interface in CHARON-VAX configuration
Once the “tap<N>” interfaces have been created, the load command maps those interfaces to CHARON-VAX:
|
...