Create a new VLAN interface on each node of the EFA install. The following example shows the creation of a sub-interface with the name “sub1”. It is a child interface of the default management interface, “eth0”. EFA adds a prefix “efa-“ to the VLAN interface name, meaning it is instantiated as “efa-sub1”. EFA manages these interfaces, and does not rely on Linux network managers such as NetworkManager and systemd-networkd (no files are changed under /etc/network/interfaces.d).
$ ip addr show type vlan 25: efa-sub2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:90:b3:da brd ff:ff:ff:ff:ff:ff inet 20.20.20.2/24 scope global efa-sub2 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe90:b3da/64 scope link valid_lft forever preferred_lft forever 26: efa-sub1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 52:54:00:90:b3:da brd ff:ff:ff:ff:ff:ff inet 50.50.50.2/24 scope global efa-sub1 valid_lft forever preferred_lft forever inet6 fe80::5054:ff:fe90:b3da/64 scope link valid_lft forever preferred_lft forever
Use the following command to list all the VLANs:
$ ip addr show type vlan