Juniper (JunOS)

Another popular brand of switches is Juniper. These switches offer the same functionality of Cisco ones just with different syntax.
Note: Anything in this
fonts
or
fonts
means that you’ll be typing in the terminal or what you’ll be seeing in the terminal.

Commands to create VLAN:

Edit vlan
Edit <vlan name>
Set vlan-id <#>
Commands to allow the VLAN on a port:
Edit interfaces
Edit ge-0/0/<port #>
Edit unit 0
Edit family ethernet-switching
Edit vlan
Set member <vlan id or vlan name>
For the edit commands, you can also make it one long line instead of typing each individual line if you know where you want to edit. For example, instead of typing it like this:
Edit interfaces
Edit ge-0/0/<port #>
Edit unit 0
Edit family ethernet-switching
Edit vlan
Set member <vlan id or vlan name>
You can type it in like this:
edit interfaces ge-0/0/<port #> unit 0 family ether-switching vlan
set member <vlan id or vlan name>
Note: To delete lines that aren’t working/have errors use the delete command followed by the exact line or section that you would like to delete (“delete” functions similar to the “no” command in Cisco).