Ethernet Switching
Reply
New User
Shane.b
Posts: 1
Registered: ‎03-26-2012
0

EX3300 VLAN

Hi,

 

I'm pretty new to JunOS, and am in the process of configuring a 5x EX3300 Stack, i'm having an issue with getting my port config right. I've had a lot of experience with Brocade but cant quite work out the translation :smileyhappy:

 

What i want to do is have a port set with untagged packets on one vlan and tagged on another. In brocade land i would just do

 

vlan 10

untagged eth 47

 

vlan 20

tagged eth 47

 

 

The relevant code snippets are below for what we have on the EX3300

 ge-1/0/47 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members VLAN56;
                }
                native-vlan-id VLAN40;
            }
        }
    }

 

 

vlans {
    VLAN10 {
         vlan-id 10;
        interface {
           Userports;    <------ this interface range includes the  ge-1/0/47 as well, is that an issue?
        }
        l3-interface vlan.10;
    }
    VLAN20 {
        vlan-id 20;

Recognized Expert
ronf
Posts: 267
Registered: ‎04-04-2011
0

Re: EX3300 VLAN

In JunOS, you generally either configure the VLANs at the port level, or ports at the VLAN level, but not both. I generally configure access-ports by adding them to the respective VLAN, and trunk ports by setting them at the interface level, but that is just my convention. In your code snippet, you haven't defined the objects VLAN40 and VLAN56 (you have 10 and 20??). Is that just an oversight? Anyways, I would also remove ge-1/0/47 from the interface-range. Ron
JNCIE-SEC #127
JNCIE-ENT #489
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.