Can two networks with the same subnet be connected to the same router in different VRF?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















Let's say I have the following four networks:



  • Network A: 10.0.1.0/24

  • Network B: 10.0.0.0/24

  • Network C: 10.0.1.0/24

  • Network D: 10.0.0.0/24

I would like to connect networks A and B together, and do the same between C and D (while A/B can't access C/D). With only a single router, could this be configured by setting two different VRF as shown below ?



enter image description here



If yes, what would happens if I set up BGP to exchange route between the two VRF, like in the following link: https://www.cisco.com/c/en/us/support/docs/multiprotocol-label-switching-mpls/multiprotocol-label-switching-vpns-mpls-vpns/47807-routeleaking.html#diffvrfs










share|improve this question
























  • For overlapping networks to communicate, you would need to use NAT. See this question and answers about that

    – Ron Maupin
    Mar 5 at 19:44















1















Let's say I have the following four networks:



  • Network A: 10.0.1.0/24

  • Network B: 10.0.0.0/24

  • Network C: 10.0.1.0/24

  • Network D: 10.0.0.0/24

I would like to connect networks A and B together, and do the same between C and D (while A/B can't access C/D). With only a single router, could this be configured by setting two different VRF as shown below ?



enter image description here



If yes, what would happens if I set up BGP to exchange route between the two VRF, like in the following link: https://www.cisco.com/c/en/us/support/docs/multiprotocol-label-switching-mpls/multiprotocol-label-switching-vpns-mpls-vpns/47807-routeleaking.html#diffvrfs










share|improve this question
























  • For overlapping networks to communicate, you would need to use NAT. See this question and answers about that

    – Ron Maupin
    Mar 5 at 19:44













1












1








1








Let's say I have the following four networks:



  • Network A: 10.0.1.0/24

  • Network B: 10.0.0.0/24

  • Network C: 10.0.1.0/24

  • Network D: 10.0.0.0/24

I would like to connect networks A and B together, and do the same between C and D (while A/B can't access C/D). With only a single router, could this be configured by setting two different VRF as shown below ?



enter image description here



If yes, what would happens if I set up BGP to exchange route between the two VRF, like in the following link: https://www.cisco.com/c/en/us/support/docs/multiprotocol-label-switching-mpls/multiprotocol-label-switching-vpns-mpls-vpns/47807-routeleaking.html#diffvrfs










share|improve this question
















Let's say I have the following four networks:



  • Network A: 10.0.1.0/24

  • Network B: 10.0.0.0/24

  • Network C: 10.0.1.0/24

  • Network D: 10.0.0.0/24

I would like to connect networks A and B together, and do the same between C and D (while A/B can't access C/D). With only a single router, could this be configured by setting two different VRF as shown below ?



enter image description here



If yes, what would happens if I set up BGP to exchange route between the two VRF, like in the following link: https://www.cisco.com/c/en/us/support/docs/multiprotocol-label-switching-mpls/multiprotocol-label-switching-vpns-mpls-vpns/47807-routeleaking.html#diffvrfs







bgp vrf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 5 at 16:24







Nakrule

















asked Mar 5 at 15:53









NakruleNakrule

20926




20926












  • For overlapping networks to communicate, you would need to use NAT. See this question and answers about that

    – Ron Maupin
    Mar 5 at 19:44

















  • For overlapping networks to communicate, you would need to use NAT. See this question and answers about that

    – Ron Maupin
    Mar 5 at 19:44
















For overlapping networks to communicate, you would need to use NAT. See this question and answers about that

– Ron Maupin
Mar 5 at 19:44





For overlapping networks to communicate, you would need to use NAT. See this question and answers about that

– Ron Maupin
Mar 5 at 19:44










1 Answer
1






active

oldest

votes


















6














You have two questions here.




Can two networks with the same subnet be connected to the same router
in different VRF?




Yes, as long as the two domains (VRF A and VRF B) do not communicate with each other. Think of a VRF as a virtual router.




What would happens if I set up BGP to exchange route between the two
VRF?




Things will not work, because hosts on Net A will never see hosts on C, and vice versa. Same for B and D.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "496"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57418%2fcan-two-networks-with-the-same-subnet-be-connected-to-the-same-router-in-differe%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    You have two questions here.




    Can two networks with the same subnet be connected to the same router
    in different VRF?




    Yes, as long as the two domains (VRF A and VRF B) do not communicate with each other. Think of a VRF as a virtual router.




    What would happens if I set up BGP to exchange route between the two
    VRF?




    Things will not work, because hosts on Net A will never see hosts on C, and vice versa. Same for B and D.






    share|improve this answer



























      6














      You have two questions here.




      Can two networks with the same subnet be connected to the same router
      in different VRF?




      Yes, as long as the two domains (VRF A and VRF B) do not communicate with each other. Think of a VRF as a virtual router.




      What would happens if I set up BGP to exchange route between the two
      VRF?




      Things will not work, because hosts on Net A will never see hosts on C, and vice versa. Same for B and D.






      share|improve this answer

























        6












        6








        6







        You have two questions here.




        Can two networks with the same subnet be connected to the same router
        in different VRF?




        Yes, as long as the two domains (VRF A and VRF B) do not communicate with each other. Think of a VRF as a virtual router.




        What would happens if I set up BGP to exchange route between the two
        VRF?




        Things will not work, because hosts on Net A will never see hosts on C, and vice versa. Same for B and D.






        share|improve this answer













        You have two questions here.




        Can two networks with the same subnet be connected to the same router
        in different VRF?




        Yes, as long as the two domains (VRF A and VRF B) do not communicate with each other. Think of a VRF as a virtual router.




        What would happens if I set up BGP to exchange route between the two
        VRF?




        Things will not work, because hosts on Net A will never see hosts on C, and vice versa. Same for B and D.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 5 at 16:57









        Ron TrunkRon Trunk

        39.5k33780




        39.5k33780



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Network Engineering Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57418%2fcan-two-networks-with-the-same-subnet-be-connected-to-the-same-router-in-differe%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown






            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?