Can I announce prefix 161.117.25.0/24 even though I don't have all of /24 IPs?Basic network setup for...

Early credit roll before the end of the film

Airplane generations - how does it work?

Why does magnet wire need to be insulated?

Why would space fleets be aligned?

Why avoid shared user accounts?

Which communication protocol is used in AdLib sound card?

Issues resetting the ledger HWM

"on its way" vs. "in its way"

Potential client has a problematic employee I can't work with

What to look for when criticizing poetry?

Why publish a research paper when a blog post or a lecture slide can have more citation count than a journal paper?

Has any human ever had the choice to leave Earth permanently?

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

Can you tell from a blurry photo if focus was too close or too far?

Can I announce prefix 161.117.25.0/24 even though I don't have all of /24 IPs?

Why is Agricola named as such?

GRASS not working with QGIS 3.6

A Missing Symbol for This Logo

How can I play a serial killer in a party of good PCs?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

How much mayhem could I cause as a sentient fish?

Play Zip, Zap, Zop

Do "fields" always combine by addition?

Crontab: Ubuntu running script (noob)



Can I announce prefix 161.117.25.0/24 even though I don't have all of /24 IPs?


Basic network setup for colocation / several cabinets and related questionsSetup the BGP + ospf networkWhen is BGP needed?BGP loadbalancing: full bgp table vs default route onlyBGP - how does IGP know the right route?BGP - use prefix on 2 locationsPreferred anycast paths for DNS with Quagga BGPProblem with ibgp configurationDefining hierarchical BGP route-mapsQuagga - Configure 3 routers using OSPF













4















I'm managing one BGP router, under the router I'm trying to announce the following IP prefix:161.117.25.0/24. But the problem is that some of the IP addresses were borrowed by other AS(Autonomous System), for example the IP address 161.117.25.100 and 161.117.25.200 were borrowed by other AS. So how should I announce the remaining IP addresses please.



Following questions please:




  1. Can I announce 161.117.25.0/30?

  2. Is it possible that two Autonomous Systems announce or have the same IP prefix?










share|improve this question




















  • 1





    ISPs will only advertise /24 or shorter IPv4 prefixes. You need to ask your ISP if you can announce a longer prefix to it, but it will not advertise it to the Internet. No, two ASes advertising the same prefix will break things, and likely get both blocked.

    – Ron Maupin
    16 hours ago











  • Is the prefix yours or not? It does not appear to be publicly assigned to you. It should go without saying that if the prefix is not yours, you can't announce it.

    – David Schwartz
    13 hours ago


















4















I'm managing one BGP router, under the router I'm trying to announce the following IP prefix:161.117.25.0/24. But the problem is that some of the IP addresses were borrowed by other AS(Autonomous System), for example the IP address 161.117.25.100 and 161.117.25.200 were borrowed by other AS. So how should I announce the remaining IP addresses please.



Following questions please:




  1. Can I announce 161.117.25.0/30?

  2. Is it possible that two Autonomous Systems announce or have the same IP prefix?










share|improve this question




















  • 1





    ISPs will only advertise /24 or shorter IPv4 prefixes. You need to ask your ISP if you can announce a longer prefix to it, but it will not advertise it to the Internet. No, two ASes advertising the same prefix will break things, and likely get both blocked.

    – Ron Maupin
    16 hours ago











  • Is the prefix yours or not? It does not appear to be publicly assigned to you. It should go without saying that if the prefix is not yours, you can't announce it.

    – David Schwartz
    13 hours ago
















4












4








4








I'm managing one BGP router, under the router I'm trying to announce the following IP prefix:161.117.25.0/24. But the problem is that some of the IP addresses were borrowed by other AS(Autonomous System), for example the IP address 161.117.25.100 and 161.117.25.200 were borrowed by other AS. So how should I announce the remaining IP addresses please.



Following questions please:




  1. Can I announce 161.117.25.0/30?

  2. Is it possible that two Autonomous Systems announce or have the same IP prefix?










share|improve this question
















I'm managing one BGP router, under the router I'm trying to announce the following IP prefix:161.117.25.0/24. But the problem is that some of the IP addresses were borrowed by other AS(Autonomous System), for example the IP address 161.117.25.100 and 161.117.25.200 were borrowed by other AS. So how should I announce the remaining IP addresses please.



Following questions please:




  1. Can I announce 161.117.25.0/30?

  2. Is it possible that two Autonomous Systems announce or have the same IP prefix?







router bgp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 hours ago









Community

1




1










asked 18 hours ago









JackJack

1716




1716








  • 1





    ISPs will only advertise /24 or shorter IPv4 prefixes. You need to ask your ISP if you can announce a longer prefix to it, but it will not advertise it to the Internet. No, two ASes advertising the same prefix will break things, and likely get both blocked.

    – Ron Maupin
    16 hours ago











  • Is the prefix yours or not? It does not appear to be publicly assigned to you. It should go without saying that if the prefix is not yours, you can't announce it.

    – David Schwartz
    13 hours ago
















  • 1





    ISPs will only advertise /24 or shorter IPv4 prefixes. You need to ask your ISP if you can announce a longer prefix to it, but it will not advertise it to the Internet. No, two ASes advertising the same prefix will break things, and likely get both blocked.

    – Ron Maupin
    16 hours ago











  • Is the prefix yours or not? It does not appear to be publicly assigned to you. It should go without saying that if the prefix is not yours, you can't announce it.

    – David Schwartz
    13 hours ago










1




1





ISPs will only advertise /24 or shorter IPv4 prefixes. You need to ask your ISP if you can announce a longer prefix to it, but it will not advertise it to the Internet. No, two ASes advertising the same prefix will break things, and likely get both blocked.

– Ron Maupin
16 hours ago





ISPs will only advertise /24 or shorter IPv4 prefixes. You need to ask your ISP if you can announce a longer prefix to it, but it will not advertise it to the Internet. No, two ASes advertising the same prefix will break things, and likely get both blocked.

– Ron Maupin
16 hours ago













Is the prefix yours or not? It does not appear to be publicly assigned to you. It should go without saying that if the prefix is not yours, you can't announce it.

– David Schwartz
13 hours ago







Is the prefix yours or not? It does not appear to be publicly assigned to you. It should go without saying that if the prefix is not yours, you can't announce it.

– David Schwartz
13 hours ago












3 Answers
3






active

oldest

votes


















13














That /24 is part of a larger block (161.117.0.0/16) which is assigned to Alibabacom Singapore and announced by AS45102 (which is Alibaba again). My guess is that you're a customer of them and have been assigned a number of IP addresses to use from that /24. However, that does not give you the right to advertise them under your own ASN in BGP. If you do so, it would be considered a BGP Hijack.



Hopefully, it wouldn't work very well due to filters in place at upstream networks, but if it would, IP addresses in that /24 used by others would become unreachable.



The conclusion here is: you don't announce the /24 unless you're authorized to do so.






share|improve this answer































    3















    Is it possible that two Autonomous Systems announce or have the same ip prefix?




    It is entirely possible for multiple ASNs to announce the same prefix -- the shortest AS-PATH from any given perspective "wins". However, it's a poor practice that will trigger warnings in any BGP monitoring systems. (see also: route hijacking) If AS1 and AS2 both announce the same prefix, those closest to AS1 will prefer AS1; those closest to AS2 will prefer AS2. As long as you are connected to both ASNs it will usually work, but you've create a very fragile arrangement.



    Beyond BGP (once routes are in the FIB), IP routing uses a longest-match algorithm. The /32 routes for 100 and 200 will match before the /24 (which will match before the /16, etc.) As others have already said, one cannot announce [BGP] anything more specific than /24 globally, so it would be up to you and/or your ISP(s) to make sure those two specific addresses are handled appropriately.






    share|improve this answer































      1














      Just to be concrete, you advertise the blocks you do have. Given a "/24 without .100 and .200", the minimal number of blocks is 14:



      A.B.C.0/26
      A.B.C.64/27
      A.B.C.96/30
      A.B.C.101/32
      A.B.C.102/31
      A.B.C.104/29
      A.B.C.112/28
      A.B.C.128/26
      A.B.C.192/29
      A.B.C.201/32
      A.B.C.202/31
      A.B.C.204/30
      A.B.C.208/28
      A.B.C.224/27


      enter image description here



      Whether your ISP or other organisation will accept such long prefixes is a matter to take up with them: most ISPs have a limit shorter than /24/



      Other, non-minimal, groupings are also possible in principle, up to the limiting case of 254 blocks each /32.






      share|improve this answer


























      • If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

        – Ricky Beam
        13 hours ago











      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%2f57231%2fcan-i-announce-prefix-161-117-25-0-24-even-though-i-dont-have-all-of-24-ips%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      13














      That /24 is part of a larger block (161.117.0.0/16) which is assigned to Alibabacom Singapore and announced by AS45102 (which is Alibaba again). My guess is that you're a customer of them and have been assigned a number of IP addresses to use from that /24. However, that does not give you the right to advertise them under your own ASN in BGP. If you do so, it would be considered a BGP Hijack.



      Hopefully, it wouldn't work very well due to filters in place at upstream networks, but if it would, IP addresses in that /24 used by others would become unreachable.



      The conclusion here is: you don't announce the /24 unless you're authorized to do so.






      share|improve this answer




























        13














        That /24 is part of a larger block (161.117.0.0/16) which is assigned to Alibabacom Singapore and announced by AS45102 (which is Alibaba again). My guess is that you're a customer of them and have been assigned a number of IP addresses to use from that /24. However, that does not give you the right to advertise them under your own ASN in BGP. If you do so, it would be considered a BGP Hijack.



        Hopefully, it wouldn't work very well due to filters in place at upstream networks, but if it would, IP addresses in that /24 used by others would become unreachable.



        The conclusion here is: you don't announce the /24 unless you're authorized to do so.






        share|improve this answer


























          13












          13








          13







          That /24 is part of a larger block (161.117.0.0/16) which is assigned to Alibabacom Singapore and announced by AS45102 (which is Alibaba again). My guess is that you're a customer of them and have been assigned a number of IP addresses to use from that /24. However, that does not give you the right to advertise them under your own ASN in BGP. If you do so, it would be considered a BGP Hijack.



          Hopefully, it wouldn't work very well due to filters in place at upstream networks, but if it would, IP addresses in that /24 used by others would become unreachable.



          The conclusion here is: you don't announce the /24 unless you're authorized to do so.






          share|improve this answer













          That /24 is part of a larger block (161.117.0.0/16) which is assigned to Alibabacom Singapore and announced by AS45102 (which is Alibaba again). My guess is that you're a customer of them and have been assigned a number of IP addresses to use from that /24. However, that does not give you the right to advertise them under your own ASN in BGP. If you do so, it would be considered a BGP Hijack.



          Hopefully, it wouldn't work very well due to filters in place at upstream networks, but if it would, IP addresses in that /24 used by others would become unreachable.



          The conclusion here is: you don't announce the /24 unless you're authorized to do so.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 18 hours ago









          Teun VinkTeun Vink

          11.7k53154




          11.7k53154























              3















              Is it possible that two Autonomous Systems announce or have the same ip prefix?




              It is entirely possible for multiple ASNs to announce the same prefix -- the shortest AS-PATH from any given perspective "wins". However, it's a poor practice that will trigger warnings in any BGP monitoring systems. (see also: route hijacking) If AS1 and AS2 both announce the same prefix, those closest to AS1 will prefer AS1; those closest to AS2 will prefer AS2. As long as you are connected to both ASNs it will usually work, but you've create a very fragile arrangement.



              Beyond BGP (once routes are in the FIB), IP routing uses a longest-match algorithm. The /32 routes for 100 and 200 will match before the /24 (which will match before the /16, etc.) As others have already said, one cannot announce [BGP] anything more specific than /24 globally, so it would be up to you and/or your ISP(s) to make sure those two specific addresses are handled appropriately.






              share|improve this answer




























                3















                Is it possible that two Autonomous Systems announce or have the same ip prefix?




                It is entirely possible for multiple ASNs to announce the same prefix -- the shortest AS-PATH from any given perspective "wins". However, it's a poor practice that will trigger warnings in any BGP monitoring systems. (see also: route hijacking) If AS1 and AS2 both announce the same prefix, those closest to AS1 will prefer AS1; those closest to AS2 will prefer AS2. As long as you are connected to both ASNs it will usually work, but you've create a very fragile arrangement.



                Beyond BGP (once routes are in the FIB), IP routing uses a longest-match algorithm. The /32 routes for 100 and 200 will match before the /24 (which will match before the /16, etc.) As others have already said, one cannot announce [BGP] anything more specific than /24 globally, so it would be up to you and/or your ISP(s) to make sure those two specific addresses are handled appropriately.






                share|improve this answer


























                  3












                  3








                  3








                  Is it possible that two Autonomous Systems announce or have the same ip prefix?




                  It is entirely possible for multiple ASNs to announce the same prefix -- the shortest AS-PATH from any given perspective "wins". However, it's a poor practice that will trigger warnings in any BGP monitoring systems. (see also: route hijacking) If AS1 and AS2 both announce the same prefix, those closest to AS1 will prefer AS1; those closest to AS2 will prefer AS2. As long as you are connected to both ASNs it will usually work, but you've create a very fragile arrangement.



                  Beyond BGP (once routes are in the FIB), IP routing uses a longest-match algorithm. The /32 routes for 100 and 200 will match before the /24 (which will match before the /16, etc.) As others have already said, one cannot announce [BGP] anything more specific than /24 globally, so it would be up to you and/or your ISP(s) to make sure those two specific addresses are handled appropriately.






                  share|improve this answer














                  Is it possible that two Autonomous Systems announce or have the same ip prefix?




                  It is entirely possible for multiple ASNs to announce the same prefix -- the shortest AS-PATH from any given perspective "wins". However, it's a poor practice that will trigger warnings in any BGP monitoring systems. (see also: route hijacking) If AS1 and AS2 both announce the same prefix, those closest to AS1 will prefer AS1; those closest to AS2 will prefer AS2. As long as you are connected to both ASNs it will usually work, but you've create a very fragile arrangement.



                  Beyond BGP (once routes are in the FIB), IP routing uses a longest-match algorithm. The /32 routes for 100 and 200 will match before the /24 (which will match before the /16, etc.) As others have already said, one cannot announce [BGP] anything more specific than /24 globally, so it would be up to you and/or your ISP(s) to make sure those two specific addresses are handled appropriately.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 13 hours ago









                  Ricky BeamRicky Beam

                  21.9k22961




                  21.9k22961























                      1














                      Just to be concrete, you advertise the blocks you do have. Given a "/24 without .100 and .200", the minimal number of blocks is 14:



                      A.B.C.0/26
                      A.B.C.64/27
                      A.B.C.96/30
                      A.B.C.101/32
                      A.B.C.102/31
                      A.B.C.104/29
                      A.B.C.112/28
                      A.B.C.128/26
                      A.B.C.192/29
                      A.B.C.201/32
                      A.B.C.202/31
                      A.B.C.204/30
                      A.B.C.208/28
                      A.B.C.224/27


                      enter image description here



                      Whether your ISP or other organisation will accept such long prefixes is a matter to take up with them: most ISPs have a limit shorter than /24/



                      Other, non-minimal, groupings are also possible in principle, up to the limiting case of 254 blocks each /32.






                      share|improve this answer


























                      • If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

                        – Ricky Beam
                        13 hours ago
















                      1














                      Just to be concrete, you advertise the blocks you do have. Given a "/24 without .100 and .200", the minimal number of blocks is 14:



                      A.B.C.0/26
                      A.B.C.64/27
                      A.B.C.96/30
                      A.B.C.101/32
                      A.B.C.102/31
                      A.B.C.104/29
                      A.B.C.112/28
                      A.B.C.128/26
                      A.B.C.192/29
                      A.B.C.201/32
                      A.B.C.202/31
                      A.B.C.204/30
                      A.B.C.208/28
                      A.B.C.224/27


                      enter image description here



                      Whether your ISP or other organisation will accept such long prefixes is a matter to take up with them: most ISPs have a limit shorter than /24/



                      Other, non-minimal, groupings are also possible in principle, up to the limiting case of 254 blocks each /32.






                      share|improve this answer


























                      • If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

                        – Ricky Beam
                        13 hours ago














                      1












                      1








                      1







                      Just to be concrete, you advertise the blocks you do have. Given a "/24 without .100 and .200", the minimal number of blocks is 14:



                      A.B.C.0/26
                      A.B.C.64/27
                      A.B.C.96/30
                      A.B.C.101/32
                      A.B.C.102/31
                      A.B.C.104/29
                      A.B.C.112/28
                      A.B.C.128/26
                      A.B.C.192/29
                      A.B.C.201/32
                      A.B.C.202/31
                      A.B.C.204/30
                      A.B.C.208/28
                      A.B.C.224/27


                      enter image description here



                      Whether your ISP or other organisation will accept such long prefixes is a matter to take up with them: most ISPs have a limit shorter than /24/



                      Other, non-minimal, groupings are also possible in principle, up to the limiting case of 254 blocks each /32.






                      share|improve this answer















                      Just to be concrete, you advertise the blocks you do have. Given a "/24 without .100 and .200", the minimal number of blocks is 14:



                      A.B.C.0/26
                      A.B.C.64/27
                      A.B.C.96/30
                      A.B.C.101/32
                      A.B.C.102/31
                      A.B.C.104/29
                      A.B.C.112/28
                      A.B.C.128/26
                      A.B.C.192/29
                      A.B.C.201/32
                      A.B.C.202/31
                      A.B.C.204/30
                      A.B.C.208/28
                      A.B.C.224/27


                      enter image description here



                      Whether your ISP or other organisation will accept such long prefixes is a matter to take up with them: most ISPs have a limit shorter than /24/



                      Other, non-minimal, groupings are also possible in principle, up to the limiting case of 254 blocks each /32.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited 15 hours ago

























                      answered 15 hours ago









                      jonathanjojonathanjo

                      11.7k1935




                      11.7k1935













                      • If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

                        – Ricky Beam
                        13 hours ago



















                      • If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

                        – Ricky Beam
                        13 hours ago

















                      If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

                      – Ricky Beam
                      13 hours ago





                      If 161.117.25.0/24 is assigned to a LAN, some trickery would be necessary to put 100 and 200 somewhere else. (I've done this very thing.) From a route table perspective, 161.117.25.0/24, 161.117.25.100/32, 161.117.25.200/32 do not create a conflict.

                      – Ricky Beam
                      13 hours ago


















                      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%2f57231%2fcan-i-announce-prefix-161-117-25-0-24-even-though-i-dont-have-all-of-24-ips%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

                      Benedict Cumberbatch Contingut Inicis Debut professional Premis Filmografia bàsica Premis i...

                      Monticle de plataforma Contingut Est de Nord Amèrica Interpretacions Altres cultures Vegeu...

                      Escacs Janus Enllaços externs Menú de navegacióEscacs JanusJanusschachBrainKing.comChessV