# Create VLAN on bonding interface during installation

> Learn how to create VLAN on a bonded interface during CubeCOS installation.

## Create VLAN on bonded interfaces {#create-vlan-on-bonded-interfaces}

Learn how to create VLAN on a bonded interface during CubeCOS installation.

### Configure network bonding {#configure-network-bonding}

:::warning

Do not use system reserved names such as `bond0`, `bond1`, `bondx`, or `bd0` as bonding interface names.

:::

```bash
    -- Network Bonding Settings --
    --------------------------------------------------
    Label          BusID   Driver  State    Speed
    --------------------------------------------------
        IF.1   0000:02:00.0     bnx2     UP    1000F
        IF.2   0000:02:00.1     bnx2   DOWN      N/A
        IF.3   0000:03:00.0     bnx2   DOWN      N/A
        IF.4   0000:03:00.1     bnx2   DOWN      N/A
    --------------------------------------------------
    1: Display policy
    2: Configure network bonding
    x: Exit
    p: Previous screen
    n: Next screen

    Select option: 2

    - Configure Network Bonding -
    Select action:
    1: Create
    2: Remove
    3: Update
    Enter index: 1
    Enter bonding interface name (required) [3-16 chars]: data0
    'data0' interface binds: <none>
    1: IF.1
    2: IF.2
    3: IF.3
    4: IF.4
    5: Clear
    6: Save
    Enter index: 2
    'data0' interface binds: IF.2
    1: IF.1
    2: IF.2
    3: IF.3
    4: IF.4
    5: Clear
    6: Save
    Enter index: 3
    'data0' interface binds: IF.2 IF.3
    1: IF.1
    2: IF.2
    3: IF.3
    4: IF.4
    5: Clear
    6: Save
    Enter index: 6

    binding interfaces IF.2 IF.3 to data0
    Press enter to continue:
```

### Configure VLAN {#configure-vlan}

```bash
    -- VLAN Settings --
    --------------------------------------------------
    Label          BusID   Driver  State    Speed
    --------------------------------------------------
        IF.1   0000:02:00.0     bnx2     UP    1000F
        IF.2   0000:02:00.1     bnx2   DOWN      N/A
        IF.3   0000:03:00.0     bnx2   DOWN      N/A
        IF.4   0000:03:00.1     bnx2   DOWN      N/A
    --------------------------------------------------
    1: Display policy
    2: Configure vlan network
    x: Exit
    p: Previous screen
    n: Next screen

    Select option: 2

    - Configure VLAN Network -
    Select action:
    1: Create
    2: Remove
    Enter index: 1
    Select an interface:
    1: IF.1
    2: IF.4
    3: data0
    Enter index: 3
    Enter vlan ID [1-4094]: 100
    Set vlan 100 for interface 'data0'
```

### Configure IP address on data0.100(with VLAN tag) {#configure-ip-address-on-data0100with-vlan-tag}

Make this interface the default interface?

- `Yes` for external connection with internet access (gateway/router)
- `No` for internal connection (no gateway/router)

```bash
  -- Networking Settings --
  --------------------------------------------------
  Label          BusID   Driver  State    Speed
  --------------------------------------------------
      IF.1   0000:02:00.0     bnx2     UP    1000F
      IF.2   0000:02:00.1     bnx2   DOWN      N/A
      IF.3   0000:03:00.0     bnx2   DOWN      N/A
      IF.4   0000:03:00.1     bnx2   DOWN      N/A
  --------------------------------------------------
  1: Display device status
  2: Display policy
  3: Configure IF.1
  4: Configure IF.4
  5: Configure data0
  6: Configure data0.100
  x: Exit
  p: Previous screen
  n: Next screen

  Select option: 6

  - Configure data0.100 -
  Enable this interface?
  1: Yes
  2: No
  Enter index: 1
  Make this interface the default interface?
  1: Yes
  2: No
  Enter index: 2
  Enter the IPv4 address: 192.168.100.10
  Enter the IPv4 subnet mask: 255.255.255.0
```

### Summary {#summary}

```bash
    Summary
    Password has not been modified.
    Host name: hp1
    data0:
        IF.2
        IF.3
    data0.100: vlan 100 on data0
    IF.1
        Default interface.
        IPv4 Mode: Manual
        IPv4 Address:   192.168.1.101
        IPv4 Netmask:   255.255.255.0
        IPv4 Gateway:   192.168.1.254
        IPv6 Mode: Automatic
    IF.4
        Interface disabled
    data0
        IPv4 Mode: Manual
        IPv4 Address:
        IPv4 Netmask:
        IPv6 Mode: Disabled
    data0.100
        Master interface: data0
        IPv4 Mode: Manual
        IPv4 Address: 192.168.100.10
        IPv4 Netmask: 255.255.255.0
        IPv6 Mode: Automatic
    DNS server 1: 1.1.1.1
    Time Zone: Asia/Taipei
    Date: 12/02/2020
    Time: 13:54:19
    Role: control-converged
    External IP/Domain: N/A
    Management: IF.1
    Provider: IF.1
    Overlay: data0.100
    Storage: data0.100
    Domain/Region: default/RegionOne
    Cube Secret Seed: bigstack
    Management CIDR: 10.254.0.0/16
    High Availability: disabled

    1: Accept the configuration
    2: Cancel the configuration
    3: Modify the configuration
```
