Project

General

Profile

Actions

Feature #17626

open

Support 'manual' iface type in debian based systems

Added by Ron Valente over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Currently 'dhcp' or 'static' are supported, allow for an interface to come online and have an IP assigned. In the case where you would want to instantiate a bond and tag it on a VLAN, but not have an IP address assigned, you would use `iface bond0 inet manual`.

A complex example would be setting up interfaces to bonds

auto enp6s0f0
iface enp6s0f0 inet manual
    bond-master bond0

auto enp129s0f0
iface enp129s0f0 inet manual
    bond-master bond0

auto enp6s0f1
iface enp6s0f1 inet manual
    bond-master bond1

auto enp129s0f1
iface enp129s0f1 inet manual
    bond-master bond1

Then configuring the bonds

auto bond0
iface bond0 inet manual
    bond-mode 4
    bond-miimon 100
    bond-lacp-rate 1
    bond-slaves enp6s0f0 enp129s0f0

auto bond1
iface bond1 inet manual
    bond-mode 4
    bond-miimon 100
    bond-lacp-rate 1
    bond-slaves enp6s0f1 enp129s0f1

Then adding tagged sub-interfaces to these bonds

auto bond0.10
iface bond0.10 inet manual
    vlan-raw-device bond0

auto bond1.20
iface bond1.20 inet manual
    vlan-raw-device bond1

Then setup bridges to host container networks

# Control Plane Traffic
auto mgmt
iface mgmt inet static
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports bond0.10
    address 192.168.1.2
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameservers 8.8.8.8 8.8.4.4

# Allow Containers to TAG traffic
auto vlan
iface br-vlan inet manual
    bridge_stp off
    bridge_waitport 0
    bridge_fd 0
    bridge_ports bond1
Actions

Also available in: Atom PDF