I see what you mean about the IOS to Junos translation tool...it came up with the following:
interfaces {
ge-3/0/31 {
description "F1-P13-11 - 205";
hold-time up 0 down 2000;
unit 0 {
proxy-arp;
family ethernet-switching {
port-mode access;
}
}
}
}
ethernet-switching-options {
secure-access-port {
interface ge-3/0/31.0 {
mac-limit 2 action drop;
So, lets create the VLAN's first:
set vlans DATA vlan-id 15
set vlans VOICE vlan-id 55
Then we set the interface as an Access port using the following command:
set ge-3/0/31.0 family ethernet-switching port-mode access
then to assign the interface to the vlan DATA, you enter:
set vlans DATA interface ge-3/0/31.0
In order to add the interface to the vlan VOICE, you enter the following:
set ethernet-switching-options voip interface ge-3/0/31.0 vlan VOICE
Once we have done this, we can tell the switch to apply Class of Service to all VoIP traffic originating from that interface:
set ethernet-switching-options voip interface ge-3/0/31.0 forwarding-class assured-forwarding
If you want to specify all access ports as VoIP ports, you can also add the following:
set ethernet-switching-options voip interface access-ports forwarding-class assured-forwarding
To check our work, we can run
show vlans
Name Tag Interfaces
DATA 15
ge-3/0/31.0
VOICE 55
ge-3/0/31.0
Once done, we then need to do port security and setting the portfast alternative...