Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlecreate vlan and interface
#configuration of the interfaces
set interfaces xe-0/0/1 unit 0 family ethernet-switching interface-mode access
set interfaces xe-0/0/1 unit 0 family ethernet-switching vlan members vlan2srv11

set interfaces xe-0/0/2 unit 0 family ethernet-switching interface-mode access
set interfaces xe-0/0/2 unit 0 family ethernet-switching vlan members vlan2srv11

#create an layer 3 interface: IRB integrated Routedd & Bridging ( RVI on EX ) 
set interfaces irb unit 0 family inet address 10.10.1.1/24

#create vlan
set vlans default vlan-id 1
set vlans vlan2srv11 vlan-id 10     <<< vlan-id = none   will stop forwarding traffic!
set vlans vlan2srv11 l3-interface irb.0



Code Block
titleshow states
collapsetrue
{master:0}
vagrant@vqfx-re> show vlans brief

Routing instance        VLAN name             Tag          Interfaces
default-switch          default               1

default-switch          vlan2srv11            10
                                                           xe-0/0/1.0*
                                                           xe-0/0/2.0*


{master:0}
vagrant@vqfx-re> show vlans vlan2srv11 detail

Routing instance: default-switch
VLAN Name: vlan2srv11                     State: Active
Tag: 10
Internal index: 3, Generation Index: 4, Origin: Static
MAC aging time: 300 seconds
VXLAN Enabled : No
Interfaces:
    xe-0/0/1.0*,untagged,access
    xe-0/0/2.0*,untagged,access
Number of interfaces: Tagged 0    , Untagged 2
Total MAC count: 2

...