Routing

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  OSPF on Reth interface with vlan-tagging

    Posted 01-28-2022 09:36
    Hello Guys,

    On my srx i have a reth interface configured with vlan-tagging for multiple vlans and i want  to enable OSPF. What is best practice to do this. Is it wise to add  only reth1 in ospf area 0, or do i need to add each of the interfaces (reth1.10, reth1.20 and reth1.30) in the vlan for them to begin sending and responding to OSPF hello packets. Please se below a snippet configuration. Can someone verify my configuration.


    thanks


    Snippet configuration:

    reth1 {
    description "ospf on reth interface";
    vlan-tagging;
    redundant-ether-options {
    redundancy-group 1;
    lacp {
    active;
    periodic slow;
    }
    }
    unit 10 {
    description "test10";
    vlan-id 10;
    family inet {
    address 192.168.10.0/24;
    }
    }
    unit 20 {
    description "test20";
    vlan-id 20;
    family inet {
    address 192.168.20.0/24;
    }
    }
    unit 30 {
    description "test30";
    vlan-id 30;
    family inet {
    address 192.168.30.0/24;
    }

    set interfaces ge-0/0/8 gigether-options redundant-parent reth1
    set interfaces ge-0/0/8 description "towards switch1"

    set interfaces ge-5/0/8 gigether-options redundant-parent reth1
    set interfaces ge-5/0/8 description "towards switch2"

    set security zones security-zone test10 host-inbound-traffic protocols all
    set security zones security-zone test10 host-inbound-traffic system-services all

    set security zones security-zone test20 host-inbound-traffic protocols all
    set security zones security-zone test20 host-inbound-traffic system-services all

    set security zones security-zone test30 host-inbound-traffic protocols all
    set security zones security-zone test30 host-inbound-traffic system-services all

    set protocols ospf export ospf-export
    set routing-options router-id 172.22.104.1
    set protocols ospf area 0.0.0.0 interface reth1 authentication md5 1 key ******
    set protocols ospf area 0.0.0.0 interface ge-0/0/8 authentication md5 1 key ******
    set protocols ospf area 0.0.0.0 interface ge-5/0/8 authentication md5 1 key ******

    or

    set protocols ospf area 0.0.0.0 interface reth1.10 authentication md5 1 key ******
    set protocols ospf area 0.0.0.0 interface reth1.20 authentication md5 1 key ******
    set protocols ospf area 0.0.0.0 interface reth1.30 authentication md5 1 key ******
    set protocols ospf area 0.0.0.0 interface ge-0/0/8 authentication md5 1 key ******
    set protocols ospf area 0.0.0.0 interface ge-5/0/8 authentication md5 1 key ******

    set policy-options policy-statement ospf-export term backoffice from route-filter 10.0.0.0/8 exact
    set policy-options policy-statement ospf-export term backoffice from route-filter 172.16.0.0/12 exact
    set policy-options policy-statement ospf-export term backoffice from route-filter 192.168.0.0/16 exact
    set policy-options policy-statement ospf-export term backoffice then accept
    set policy-options policy-statement ospf-export term direct from protocol direct
    set policy-options policy-statement ospf-export term direct then accept
    set policy-options policy-statement ospf-export term static from protocol static
    set policy-options policy-statement ospf-export term static then accept

    set routing-options rib inet.0 static route 0.0.0.0/0 next-hop 31.56.56.23 no-readvertise

    Regards,
    Sul


  • 2.  RE: OSPF on Reth interface with vlan-tagging

    Posted 01-30-2022 15:44
    The ospf neighbor configuration is a layer 3 connection between two or more routers in that broadcast domain.  So you will add the interface plus sub-interface of the layer 3 interface that will become the ospf neighbor only to the appropriate area to establish the neighbor.

    But if you are only looking to advertise the three subnets of these interfaces into ospf and not have another router neighbor, you would just add them to the area as passive interfaces for each of the layer 3 subinterfaces.  This will add those local subnets to the neighbor broadcasts of other neighbors configured in that area.

    ------------------------------
    Steve Puluka BSEET - Juniper Ambassador
    IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP)
    http://puluka.com/home
    ------------------------------



  • 3.  RE: OSPF on Reth interface with vlan-tagging

    Posted 02-11-2022 12:38
    Hi Spuluka,

    Thank you fo the explanation. Throug the explanation i was aible to use the right configuration.

    Regards,
    Sul