Switching

last person joined: 18 hours ago 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
  • 1.  VLAN under routing-instance

    Posted 02-08-2012 04:04

    Hello

     

    I try apply same philosophy from L3 switch Cisco 3750 to EX4200 as following:

    !

    Interface vlan 555

     ip add 10.1.1.1/24

    !

     

     switchport mode access

     switchport access vlan 555

    !

     

    So when connecting server in g1/0/1 with same network (10.1.1.0/24), it can ping 10.1.1.1.

     

    When i try do same with EX4200, it seems OK, when configuring ge0/0/0 and ge-0/0/1 in vlan access:

     

    ge-0/0/0 {
        unit 0 {
            family ethernet-switching;
        }
    }  

    ge-0/0/1 {
        unit 0 {
            family ethernet-switching;
        }
    }

     

    VLAN555 {
        vlan-id 555;
        interface {
              ge-0/0/0.0;

              ge-0/0/1.0;
       }

     l3-interface vlan.555;

    }

     

    >show vlans
    Name           Tag     Interfaces
    VLAN201        201
                           ge-0/0/0.0, ge-0/0/1.0

     

     

    unless i create routing-instance and add these interfaces on the roiting-instance:

     

    # show routing-instances
    instance-XXX {
        instance-type virtual-router;
        interface ge-0/0/0.0;
        interface ge-0/0/1.0;
    }

     

    Since then, EX4200, change configuration by removing vlan from interfaces ge-0/0/0 and ge-0/0/1:

     

    # run show vlans
    Name           Tag     Interfaces
    <empty>
     on the same time, vlan 555 disappear from these interfaces on j-web.

     

    So my question :

    as VLAN555 is still present on configuration  with interfaces (sh vlan), but not anymore on run show vlan, are these interfaces STILL configured as vlan access? or because using VLAN is not allowed on routing-instance ?

     

    Thanks

     

    Techint



  • 2.  RE: VLAN under routing-instance

    Posted 02-08-2012 06:03

    Hi Techint,

     

    You don't add the physical interfaces to a virtual-router, you add the RVI.  Remove interfaces ge-0/0/0.0 and ge-0/0/1.0

    from your VR and add vlan.555

     

    I'm surprised your config actually commits - when I try to do the same thing on my lab switch I get the following:

    [edit]
    bdale@EX3200-A# show interfaces ge-0/0/15.0 
    family ethernet-switching {
        vlan {
            members MYVLAN;
        }
    }
    bdale@EX3200-A# show routing-instances          
    TESTVR {
        instance-type virtual-router;
        ##
        ## Warning: interface with 'family ethernet-switching' is not allowed in a routing instance
        ## Warning: The interface with 'family' ethernet-switching cannot be added at routing-instance
        ##
        interface ge-0/0/15.0;
    }
    
    [edit routing-instances TESTVR interface]
    'ge-0/0/15.0' The interface with 'family' ethernet-switching cannot be added at routing-instance
    error: commit failed: (statements constraint check failed)


  • 3.  RE: VLAN under routing-instance

    Posted 02-10-2012 04:28

    To qualify what dfex has said here, you add the IP interface (be it RVI or physical interface, or VLAN-tagged sub-interface) to the routing instance, not an ethernet-switching family enabled port to the routing-instance.  We are doing this quite extensively with several customers to keep traffic isolated throughout a WAN without resorting to full-blown MPLS.  We put RVI interfaces into one of several routing-instances on the switches at a site for local gateway, then we use VLAN-tagged sub-interfaces on the uplink port to the WAN, one in each routing-instance.

     

    Ron



  • 4.  RE: VLAN under routing-instance

    Posted 02-12-2012 01:46

    hello dfex

     

    you are right. i don't konw why but it does accept the command.

    after default-factory, it sound better.

    Thanks for your help. It seems fine  now.

     

    Techint