Switching

last person joined: yesterday 

Ask questions and share experiences about EX and QFX portfolios and all switching solutions across your data center, campus, and branch locations.
Expand all | Collapse all

Eliminate using STP?

  • 1.  Eliminate using STP?

    Posted 09-21-2010 00:25

    Hi all expertise,

     

     

     

    I need your advise regarding my new design. Currently I have EX4200 VC at each floor (Floor 1-34). At each VC have 4 VLAN. All of EX4200 will be connected to both Core Switch EX8208 (VC). For my new design i don't want to use STP. I want use OSPF. My Question now where i will configure default gateway for each VLAN? Is it at Core Switch or at Edge Switch itself. Currently if we using STP method default gateway will be configure at Core Switch right? How about if we use OSPF only? Can some explain with some example config. Thanks.....



  • 2.  RE: Eliminate using STP?

    Posted 09-21-2010 02:29

    Hello,

    If you are currently using STP to eliminate loops, this means to me that all your links are L2.

    To use OSPF for the same purpose, you have to convert all your links to L3.

    This is the basic difference between STP and OSPF: STP works with L2 links and OSPF works with L3 links.

    HTH

    Regards
    Alex

     



  • 3.  RE: Eliminate using STP?

    Posted 09-21-2010 05:41

    Hi

     



  • 4.  RE: Eliminate using STP?

    Posted 09-21-2010 06:37

    Hello,

    If you make all links between your EX switches L3-links then setting default GW to be the IP address on core EX8200 will not work for client PCs.

    As for the configurations, I am afraid, without knowing your network inside out it is impossible to write a working config. Please contact your Juniper Account team to see if Juniper Professional Services can help.

    Regards

    Alex



  • 5.  RE: Eliminate using STP?

    Posted 09-21-2010 07:25

    Hi ,

     

    Thanks for reply. I already email to Juniper Professional Service but currently their feedback is too slow. So it's difficult to me for prepare documentation purpose. Why in juniper it dont provide the sample config like Cisco. Currently all the equipment already arrived at my warehouse. So i need a guide to make some simulation. Is there any person in this forum can give some sample config. Thanks...



  • 6.  RE: Eliminate using STP?
    Best Answer

    Posted 09-21-2010 18:37

    The default gateway would be configured as a vlan interface on the access-layer switches.  Then the uplinks would be configured as layer-3 routed interfaces.  You could also use multiple routing-instances to keep traffic segmented back to the core from the edge switches.  A simple config would look like this:

     

    #Access Switch config

    interfaces {
        ge-0/0/0 {
            unit 0 {
                family ethernet-switching;
            }
        }
        ge-0/0/1 {
            unit 0 {
                family ethernet-switching;
            }
        }
        ge-0/1/0 {
            vlan-tagging;
            unit 500 {
                vlan-id 500;
                family inet {
                    address 10.1.1.1/31;
                }
            }
        }
        lo0 {
            unit 500 {
                family inet {
                    address 10.1.2.1/32;
                }
            }
        }
        vlan {
            unit 100 {
                family inet {
                    address 192.168.100.1/24;
                }
            }
        }
    }

    protocols {
        ospf {
            area 0.0.0.0 {
                interface lo0.500;
                interface ge-0/1/0.500 {
                    bfd-liveness-detection {
                        minimum-interval 100;
                        multiplier 3;
                        full-neighbors-only;
                    }
                }
                interface vlan.100 {
                    passive;
                }
            }
        }
    }

    vlans {
        corp_vlan {
            vlan-id 100;
            interface {
                ge-0/0/0.0;
                ge-0/0/1.0;
            }
            l3-interface vlan.100;
        }
    }


    #Core Switch Config
    interfaces {
        ge-0/1/0 {
            vlan-tagging;
            unit 500 {
                vlan-id 500;
                family inet {
                    address 10.1.1.0/31;
                }
            }
        }
        lo0 {
            unit 500 {
                family inet {
                    address 10.1.2.0/32;
                }
            }
        }
    }

    protocols {
        ospf {
            area 0.0.0.0 {
                interface lo0.500;
                interface ge-0/1/0.500 {
                    bfd-liveness-detection {
                        minimum-interval 100;
                        multiplier 3;
                        full-neighbors-only;
                    }
                }
            }
        }
    }

     

    Of course you would need to inject default route into the core switch from somewhere (your firewall perhaps?)

     

    Ron



  • 7.  RE: Eliminate using STP?

    Posted 09-21-2010 19:06

    Hi  rfrederick,

     

     

    I'm very appreciate you reply. Thanks for that sample config. So the default gateway we will configure at Access Switch right? Can we make default gateway at CoreSwitch. Thanks...



  • 8.  RE: Eliminate using STP?

    Posted 09-21-2010 20:01

    You configure your hosts in the VLAN on the access switch to have their default gateway as the L3 vlan interface on the access switch.  You cannot configure them to have their default gateway at the core.  OSPF propagates the routes down to the access switch so that it has the route to forward traffic to the core.  This is the way that a layer-3 design works.

     

    Ron



  • 9.  RE: Eliminate using STP?

    Posted 09-21-2010 20:06

    Hi  rfrederick,

     

     

    Thanks for your feedback. So do u have exprience regarding this kind of design?



  • 10.  RE: Eliminate using STP?

    Posted 09-21-2010 20:19

    I do, it is the standard way that we recommend configuring switches unless there is a hard requirement for L2 VLANs trunked out to an edge location.

     

    Ron



  • 11.  RE: Eliminate using STP?

    Posted 09-21-2010 20:39

    Hi  rfrederick

     

     

    Thank u so much. Now i take u as my teacher. So the DHCP Server IP i also pun in Access switch right?

     

    IP helper



  • 12.  RE: Eliminate using STP?

    Posted 09-21-2010 20:51

    Yes, you would configure the boot helper in the access-layer switch to forward requests to the appropriate DHCP server, which would need to have a scope for the subnet in question.

     

    Ron



  • 13.  RE: Eliminate using STP?

    Posted 09-21-2010 21:00

    Hi  rfrederick

     

     

    Do u have YM ID or Skype ID. So next time easy if i want u to guide me because Juniper Enterpsrie is new to me. Also in my project it's  will involve SRX3600, IDP800, SSG550M. I'm very2 appericiate reagrding your help. Thanks again.

     

    my YM ID: kronicklez_79

    Skype ID: kronicklez_79



  • 14.  RE: Eliminate using STP?

    Posted 09-21-2010 21:22

    Skype ID is ron_frederick



  • 15.  RE: Eliminate using STP?

    Posted 09-21-2010 21:37

    Hi frederick,

     

     

    I already add u in my skype.  Thanks...