Switching

Expand all | Collapse all

EX 3400 Configuring Vlans question

Jump to Best Answer
  • 1.  EX 3400 Configuring Vlans question

    Posted 05-26-2017 06:57

    I've attmpted to follow the documentation but I found 3 different documents stating 3 different ways to create them.  I haven't had luck with any of them.  I'm to a point where I believe it created virtual Interfaces:

     

    Interface               Admin Link Proto    Local                 Remote
    ge-0/0/0                up    down
    ge-0/0/0.0              up    down eth-switch
    pfe-0/0/0               up    up
    pfe-0/0/0.16383         up    up   inet
                                       inet6
    pfh-0/0/0               up    up
    pfh-0/0/0.16383         up    up   inet
    ge-0/0/1                up    down
    ge-0/0/1.0              up    down eth-switch
    ge-0/0/2                up    down
    ge-0/0/2.0              up    down eth-switch
    ge-0/0/3                up    down
    ge-0/0/3.0              up    down eth-switch
    ge-0/0/4                up    down
    ge-0/0/4.0              up    down eth-switch
    ge-0/0/5                up    down
    ge-0/0/5.0              up    down eth-switch
    ge-0/0/6                up    down
    ge-0/0/6.0              up    down eth-switch
    ge-0/0/7                up    down
    ge-0/0/7.0              up    down eth-switch
    ge-0/0/8                up    down
    ge-0/0/8.0              up    down eth-switch
    ge-0/0/9                up    down
    ge-0/0/9.0              up    down eth-switch
    ge-0/0/10               up    down
    ge-0/0/10.0             up    down eth-switch
    ge-0/0/11               up    down
    ge-0/0/11.0             up    down eth-switch
    ge-0/0/12               up    down
    ge-0/0/12.0             up    down eth-switch
    ge-0/0/13               up    down
    ge-0/0/13.0             up    down eth-switch
    ge-0/0/14               up    down
    ge-0/0/14.0             up    down eth-switch
    ge-0/0/15               up    down
    ge-0/0/15.0             up    down eth-switch
    ge-0/0/16               up    down
    ge-0/0/16.0             up    down eth-switch
    ge-0/0/17               up    down
    ge-0/0/17.0             up    down eth-switch
    ge-0/0/18               up    down
    ge-0/0/18.0             up    down eth-switch
    ge-0/0/19               up    down
    ge-0/0/19.0             up    down eth-switch
    ge-0/0/20               up    down
    ge-0/0/20.0             up    down eth-switch
    ge-0/0/21               up    down
    ge-0/0/21.0             up    down eth-switch
    ge-0/0/22               up    down
    ge-0/0/22.0             up    down eth-switch
    ge-0/0/23               up    down
    ge-0/0/23.0             up    down eth-switch
    xe-0/2/0                up    down
    xe-0/2/0.0              up    down eth-switch
    xe-0/2/1                up    down
    xe-0/2/1.0              up    down eth-switch
    xe-0/2/2                up    down
    xe-0/2/2.0              up    down eth-switch
    xe-0/2/3                up    down
    xe-0/2/3.0              up    down eth-switch
    bme0                    up    up
    bme0.0                  up    up   inet     128.0.0.1/2
                                                128.0.0.4/2
                                                128.0.0.16/2
                                                128.0.0.63/2
    cbp0                    up    up
    dsc                     up    up
    esi                     up    up
    gre                     up    up
    ipip                    up    up
    irb                     up    up
    jsrv                    up    up
    jsrv.1                  up    up   inet     128.0.0.127/2
    lo0                     up    up
    lo0.16385               up    up   inet
    lsi                     up    up
    me0                     up    up
    me0.0                   up    up   inet     192.168.100.1/24
    mtun                    up    up
    pimd                    up    up
    pime                    up    up
    pip0                    up    up
    tap                     up    up
    vme                     up    down
    vtep                    up    up
    

    Im getting [edit protocols rstp]
    'interface'
    XSTP : Interface ge-0/0/0.0 is not enabled for Ethernet Switching
    error: configuration check-out failed.

    How do I wipe out what I've done and create 3 vlans 1 vlan being the management vlan that has a IP attached to it?

     

    I'm not sure of the command to show the the config that while in the configure mode.

     

    Thank You

    Bryan



  • 2.  RE: EX 3400 Configuring Vlans question

     
    Posted 05-27-2017 05:56

    BryanP wrote:

    How do I wipe out what I've done and create 3 vlans 1 vlan being the management vlan that has a IP attached to it? 


     

    set interfaces irb unit 100 description "management int"
    set interfaces irb unit 100 family inet address 10.0.0.1/24
    set vlans management vlan-id 100
    set vlans management l3-interface irb.100
    set vlans data1 vlan-id 200
    set vlans data2 vlan-id 300

     


    BryanP wrote:

    I'm not sure of the command to show the the config that while in the configure mode. 



    show



  • 3.  RE: EX 3400 Configuring Vlans question

    Posted 05-27-2017 06:47

    Smiker,

     

    After doing a rollback, I tried that setup, along with adding physical ports to the vlan.  Any time I set the unit to anything other then 0 it fails with a smiliar error that I posted above.



  • 4.  RE: EX 3400 Configuring Vlans question
    Best Answer

    Posted 05-28-2017 16:50

    @BryanP wrote:

    Smiker,

     

    After doing a rollback, I tried that setup, along with adding physical ports to the vlan.  Any time I set the unit to anything other then 0 it fails with a smiliar error that I posted above.


    You cannot use any other unit number other than 0 when configuring ethernet-switching for layer 2 support.

    If you want to enable sub-interfaces and use IP address, then configure vlan-tagging at the physical interface level.



  • 5.  RE: EX 3400 Configuring Vlans question

    Posted 05-30-2017 12:11

    This is where the documention became fuzzy.  I read numerous times that the Vlan-ID should match the Unit ID to keep things organized.  So if I create a trunk port and include all the vlans that are on the untagged ports, does the unit ID change.  I will have Unit 0 for the switch ports then Unit X for the same vlan on a Trunk port?



  • 6.  RE: EX 3400 Configuring Vlans question

     
    Posted 05-30-2017 14:26

    Unit number on the interface is just a label that is only locally significant on that interface.  The only configuration requirement is that you cannot repeat the unit number on the same interface.

     

    There is no requirement that the unit number and vlan id match but on trunk ports many companies do that as a matter of convention.

     

    I've seen automated provisioning system assign sequential unit numbers and then configure whatever vlan id is needed on that unit.

     

    And since the unit is only significant on the specific interface, there is no requirement for the same unit number to be used for the vlan on different ports or different switches.

     

    As you noticed, there are multiple ways to create a trunk port.  You can use whichever method or methods you like.



  • 7.  RE: EX 3400 Configuring Vlans question

     
    Posted 05-27-2017 07:09
    Can you post your whole config?


  • 8.  RE: EX 3400 Configuring Vlans question

    Posted 05-27-2017 07:26

    I currently don't have a config.  I have learned that doing a rollback to the fartherst available number (10 for me) caused the switch to dump its intial config and basically return to factory default.  The switch is in a remote site so I have to wait until tuesday before I can have someone console into it.  

     

    What does the "unit" do?  



  • 9.  RE: EX 3400 Configuring Vlans question

    Posted 05-28-2017 16:47

    Multiple ways to wipe config. 

    1- >request system zeroize

    2 #load override factory-default and tweak from scratch

    3 if you are logged in to the console port, delete all interfaces, delete all vlans, all protocols, polices and firewall filters , commit them start from scratch

    unit represents a . so you can add a subinterface. Basically you can logically partition an interface like you would a harddrive. In this case only a single unit is valid and is used for ethernet-switching and that is unit 0. If you load the factory default, you have to rename switch, set root password, add your user accounts and then create your vlans and add interfaces to vlans. Create trunk ports and add vlans, set up our management interface for oob management.

    When you add interfaces to vlans, you can add the interface under the vlan heirarchy or add the vlan to the interface interface-mode. Chose one and use it.

    If you chose to add interfaces to ethernet-switching manually, you can use configuration groups, but if you do, then it it best to standardize this throughout the network.

    You can add interfaces one at a time or use interface-range or a combination

    You can save the config from either config or operational mode.

    In config you can simply save from the top of heirarchy to a filename of your choice and to the path you want to save the file. In config mode, you can also use: show | display set | save <filename>

    Pick your poison.



  • 10.  RE: EX 3400 Configuring Vlans question

     
    Posted 05-29-2017 07:15

    When working on remote devices, another feature you should be aware of is "commit confirmed"

     

    If you add "comfirmed" to the commit, your changes will be applied (or the rollback in your case) and if you do not confirm the change within 10 minutes the original configuration will be automaticaly rolled back and restored.

     

    When working remotely this can prevent you being accidently disconnected from the device by your own configuration changes.

     

    https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/junos-cli-configuration-activating-after-confirming.html



  • 11.  RE: EX 3400 Configuring Vlans question

    Posted 05-30-2017 12:15

    Thanks for the heads up on the commit confirmed command.  Man would that have came in handy!  Along with not allowing the rollback command to roll past the initial config.  Thats what "load factory defaults" is for..