VLANS & port modes on Juniper EX series

ex4300-48

root> configure

CREATE THE VLAN

root# set vlans MYVLAN vlan-id 100

ADD THE VLAN TO AN ACCESS PORT

root# set interfaces xe-0/0/0 unit 0 family ethernet-switching port-mode access vlan members MYVLAN

root# commit

ADD THE VLAN TO A TRUNK (TAGGED) PORT

root# set interfaces xe-0/0/0 unit 0 family ethernet-switching port-mode trunk vlan members MYVLAN

root# commit

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: