We have Procurves and we are moving to Juniper.
What you want is the following on the Procurve devices that connect to Juniper devices:
- Edge ports untagged for VLAN 1 (default VLAN) and tagged for all other VLANs
- Uplink ports to a Juniper swtich are untagged for VLAN 1 and tagged for all other VLANs
- Uplink ports to another Procurve switch must match the settings on the interface that the switch is connected to (obvious, but worth mentioning)
On a Juniper device that connects to a Procurve:
- All ports are trunk ports
- Edge ports must be VLAN members of the default VLAN and additional VLANs (see below)
- Uplink ports must be members of all VLANs that you with to traverse the uplink port
- The default VLAN ID must be 1
- The default VLAN must be added to uplink ports
Junos VLANs work like this:
- Access ports - ports that are members of 1 and only 1 VLAN, do not carry 802.1q VLAN tagged traffic
- Trunk ports - carry multiple VLANs via 802.1q VLAN tagged traffic
By default a Juniper switch port is an access port. If you need more than 1 VLAN or if you need tagged VLANs you must make the port a trunk port.
Note that the default VLAN only carries untagged traffic by default which means that you cannot send this VLAN over a trunk port without a little help.
Suppose you have a Procurve with VLAN 1 (default VLAN, untagged) for a PC and VLAN 10 (tagged) for a VoIP phone.You want to replace the Procurve with a Juniper switch and have it work with an upstream Procurve switch.
On the Juniper you would do this:
Create VLAN 10:
set vlans <vlan name> vlan-id 10
Set Default VLAN ID:
set vlans default vlan-id 1
Assign Trunk Ports:
set interfaces <your edge interface> unit 0 faminly ethernet-switching port-mode trunk
set interfaces <your uplink interface> unit 0 family ethernet-switching port-mode trunk
Assign VLAN Membership:
set interfaces <your edge interface> unit 0 family ethernet-switching vlan members 10
set interfaces <your uplink interface> unit 0 family ethernet-switching vlan members 10
Assign Default VLAN to Trunk Ports
set interfaces <your edge interface> unit 0 family ethernet-switching native-vlan-id default
set interfaces <your uplink interface> unit 0 family ethernet-switching native-vlan-id default
Commit and you are ready for action once the Procurve uplink port connected to the Juniper uplink port is untagged for VLAN 1 and tagged for VLAN 10.