Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring IRB and VLAN with Members Across Two Nodes (CLI)

Requirements

No special configuration beyond device initialization is required before configuring this feature.

Overview

This example shows configuration of IRB and configuration of VLAN with members across node 0 and node 1.

Configuration

Step-by-Step Procedure

To configure VLAN, follow the steps from 1 to 4 and then commit the configuration. To configure IRB, follow the steps from 1 to 8.

  1. Configure Ethernet switching on the node0 interface.
    {primary:node0} [edit]user@host# set interfaces ge-2/0/0 unit 0 family ethernet-switching
  2. Configure Ethernet switching on the node1 interface.
    {primary:node0} [edit]user@host# set interfaces ge-11/0/0 unit 0 family ethernet-switching
  3. Create VLAN vlan10 with vlan-id 10.
    {primary:node0} [edit]user@host# set vlans vlan10 vlan-id 10
  4. Add ports from both nodes to the VLAN.
    {primary:node0} [edit]user@host# set vlans vlan10 interface ge-2/0/0user@host# set vlans vlan10 interface ge-11/0/0
  5. Assign an IP address to the VLAN.
    {primary:node0} [edit]user@host# set interfaces vlan unit 10 family inet address 45.45.45.1/24
  6. Associate Layer 3 VLAN interface to vlan10.
    {primary:node0} [edit]user@host# set vlans vlan10 l3-interface vlan.10
  7. Check the configuration by entering the show vlans and show interfaces commands.
    user@host# show vlans
    vlan10 {
        vlan-id 10;
        interface {
            ge-2/0/0.0;
            ge-11/0/0.0;
        }
        l3-interface vlan.10;
    }
    
    user@host# show interfaces
    ge-2/0/0 {
        unit 0 {
            family ethernet-switching;
        }
    }
    ge-11/0/0 {
        unit 0 {
            family ethernet-switching;
        }
    }
    vlan {
        unit 10 {
            family inet {
                address 45.45.45.1/24;
            }
        }
    }
    
  8. If you are done configuring the device, commit the configuration.
    [edit]user@host# commit

Verification

Purpose

To verify that the configurations of VLAN and IRB are working properly.

Action

From configuration mode, enter the show interfaces terse ge-2/0/0 command to view the node 0 interface.

user@host# run show interfaces terse ge-2/0/0
Interface               Admin Link Proto    Local                 Remote
ge-2/0/0                up    up
ge-2/0/0.0              up    up   eth-switch

From configuration mode, enter the show interfaces terse ge-11/0/0 command to view the node 1 interface.

user@host# run show interfaces terse ge-11/0/0
Interface               Admin Link Proto    Local                 Remote
ge-11/0/0               up    up
ge-11/0/0.0             up    up   eth-switch

From configuration mode, enter the show vlans command to view the VLAN interface.

user@host# run show vlans
Name           Tag     Interfaces
default         1      None
vlan10          10     ge-2/0/0.0*, ge-11/0/0.0*

Published: 2013-11-11

Published: 2013-11-11