switch¶
configuration¶
configuration commands¶
Show the commands used to configure something:
show interfaces ge-0/0/46 | display set
vlan¶
Add a vlan
set vlans vlan-10 vlan-id 10
Set a vlan on an interface.
set interfaces ge-0/0/16 unit 0 family ethernet-switching port-mode access vlan members VLAN_NAME
Set a vlan on a trunk interface.
set interfaces ge-0/0/15 unit 0 family ethernet-switching port-mode trunk vlan members VLAN_NAME
Add an interface to a vlan.
set vlans VLAN_NAME interface ge-0/0/16
Another way:
set interfaces ge-0/0/4.0 family ethernet-switching port-mode access vlan members work
Remove a vlan:
delete interfaces ge-0/0/45 unit 0 family ethernet-switching vlan members 20
View the arp table¶
show ethernet-switching table
or for less(?) info:
show ethernet-switching table brief
also:
show arp