Difference between revisions of "Creating a Data and Voice Vlan with SSH access"

From WTFwiki
Jump to navigation Jump to search
Line 14: Line 14:
 
set interfaces interface-range range0 member-range ge-0/0/0 to ge-0/0/23
 
set interfaces interface-range range0 member-range ge-0/0/0 to ge-0/0/23
 
</pre>
 
</pre>
If you have a 48 port switch or don't want the full range of the 24 port you can adjust this;
+
If you have a larger switch or don't want the full range of the 24 port you can adjust this above.
  
 +
Set the switch to trunk mode;
 +
 +
<pre>
 +
set interfaces interface-range range0 unit 0 family ethernet-switching port-mode trunk
 +
</pre>
 +
 +
Set interface range to be apart of both vlans (datavlan and voicevlan) and set data as native.
 +
 +
<pre>
 +
set interfaces interface-range range0 unit 0 family ethernet-switching vlan members voicevlan
 +
set interfaces interface-range range0 unit 0 family ethernet-switching native-vlan-id datavlan
 +
</pre>
  
  

Revision as of 15:00, 29 August 2018

To set-up separate VLANS for data and voice, the process is really quite simple. This will insure traffic is somewhat segregated between the two. Polish your toes and hold onto you straps as we dive into this one;

This document will be directed towards the EX line.

Login to the switch and enable cli then configure;

First we need to create the vlans;

set vlans datavlan vlan-id 10
set vlans voicevlan vlan-d 20

Next to speed things up we need to create an interface range;

set interfaces interface-range range0 member-range ge-0/0/0 to ge-0/0/23

If you have a larger switch or don't want the full range of the 24 port you can adjust this above.

Set the switch to trunk mode;

set interfaces interface-range range0 unit 0 family ethernet-switching port-mode trunk

Set interface range to be apart of both vlans (datavlan and voicevlan) and set data as native.

set interfaces interface-range range0 unit 0 family ethernet-switching vlan members voicevlan
set interfaces interface-range range0 unit 0 family ethernet-switching native-vlan-id datavlan


Notes:

Since we will not be using the MGMT port we can turn the alarm off by;

  1. config mode:

set chassis alarm management-ethernet link-down ignore

  1. cli mode:

request system configuration rescue save