Switching

Expand all | Collapse all

Configuring logical layer 2 and local layer 3 interfaces on a single physical port

Jump to Best Answer
  • 1.  Configuring logical layer 2 and local layer 3 interfaces on a single physical port

    Posted 08-29-2019 07:21

    Hello,

     

    I am trying to configure logical layer 2 and logical layer three interfaces on a same physical port on EX4300. Following is my configuration.

     

    Switch 1

    set vlans Test1 vlan-id 200
    set vlans Test2 vlan-id 220
    set vlans Test3 vlan-id 230
     
    set interfaces irb unit 220 family inet address 172.31.1.2/24
    set vlans Test2 l3-interface irb.220
     
     
    set interfaces ge-0/0/2 vlan-tagging
    set interfaces ge-0/0/2 unit 200 vlan-id 200
    set interfaces ge-0/0/2 unit 200 family inet address 172.31.0.2/24
    set interfaces ge-0/0/2 unit 201 family ethernet-switching interface-mode trunk
    set interfaces ge-0/0/2 unit 201 family ethernet-switching vlan members Test2
    set interfaces ge-0/0/2 unit 201 family ethernet-switching vlan members Test3

    SWITCH 2

    set vlans Test1 vlan-id 200
    set vlans Test2 vlan-id 220
    set vlans Test3 vlan-id 230
     
    set interfaces irb unit 220 family inet address 172.31.1.1/24
    set vlans Test2 l3-interface irb.220
     
     
    set interfaces ge-0/0/2 vlan-tagging
    set interfaces ge-0/0/2 unit 200 vlan-id 200
    set interfaces ge-0/0/2 unit 200 family inet address 172.31.0.1/24
    set interfaces ge-0/0/2 unit 201 family ethernet-switching interface-mode trunk
    set interfaces ge-0/0/2 unit 201 family ethernet-switching vlan members Test2
    set interfaces ge-0/0/2 unit 201 family ethernet-switching vlan members Test3

    If I do a show interface terse than I can see the interface is up so as the irb.220. But I try to ping addresses from one switch from another then  can only ping the routed IP addresses not the IP address configured on the irb.220

     

    For example from switch 1 to switch 2 I can ping 172.31.0.1 but not 172.31.1.1. 

     

    Can someone please guide me on what I have done wrong here.

     

     

     



  • 2.  RE: Configuring logical layer 2 and local layer 3 interfaces on a single physical port
    Best Answer

     
    Posted 08-29-2019 08:37

    Hi Jam,

     

    To configure both L2/L3 (family inet/ethernet-switching) on the same port, we need a feature called "flexible-ethernet-switches".  Please read here: 

    https://www.juniper.net/documentation/en_US/junos/topics/topic-map/switches-interface-flexible.html

     

    As of now, I don't see this supported on the EX4300:

    https://apps.juniper.net/feature-explorer/feature-info.html?fKey=3602&fn=Flexible%20Ethernet%20services

     

    Similar query answered here as well, so please look out for the alternative options suggested.

    https://forums.juniper.net/t5/Ethernet-Switching/Mixing-families-inet-Ethernet-switching-on-AE-interface/td-p/252666

     

    Hope this helps.

    Regards,
    -r.

    --------------------------------------------------

    If this solves your problem, please mark this post as "Accepted Solution."
    Kudos are always appreciated :).



  • 3.  RE: Configuring logical layer 2 and local layer 3 interfaces on a single physical port

    Posted 08-29-2019 09:01

    Thanks mriyaz