Re: Subnet Size for BGP peers.

2009-07-30 Thread Mikael Abrahamsson

On Thu, 30 Jul 2009, Mikael Abrahamsson wrote:

I don't remember if you have to do local-proxy-arp or not, but if you're 
running bgp you could always do next-hop-self to be sure it hops via the 
gateway.


I did remember that this is identical to the behaviour described in 
RFC3069.


--
Mikael Abrahamssonemail: swm...@swm.pp.se



Re: Subnet Size for BGP peers.

2009-07-30 Thread Adrian Minta
Shared link for BGP connectivity is a bad idea. Imagine that one of your 
customer leave proxy-arp on his interface, or imagine that he makes a 
Layer2 loop. Then all other customers will be affected. Usually a 
customer with BGP is on another level, so a gain of some IP's doesn't  
worth the trouble IMHO.


--
Best regards,
Adrian Minta






Re: Subnet Size for BGP peers.

2009-07-30 Thread Doug McIntyre
On Thu, Jul 30, 2009 at 12:22:27AM -0400, Barton F Bruce wrote:
 So what is wrong with a /31? We use /30s but if you are short on IP space, 
 look at using /31 rather than /30 links. Cuts your space usage in half.

/31's are only defined for point-to-point links. 

Ethernet isn't considered PtP in general..

Many devices won't accept a /31 on anything but a PtP WAN media type link.
(or not at all). 





Re: Subnet Size for BGP peers.

2009-07-30 Thread Roy

Doug McIntyre wrote:

On Thu, Jul 30, 2009 at 12:22:27AM -0400, Barton F Bruce wrote:
  
So what is wrong with a /31? We use /30s but if you are short on IP space, 
look at using /31 rather than /30 links. Cuts your space usage in half.



/31's are only defined for point-to-point links. 


Ethernet isn't considered PtP in general..

Many devices won't accept a /31 on anything but a PtP WAN media type link.
(or not at all). 

  
Since it isn't PtP, one also has to allow the customer to connect 
multiple devices.





Re: Subnet Size for BGP peers.

2009-07-29 Thread Nathan Ward

On 30/07/2009, at 7:59 AM, Jim Wininger wrote:

I have a question about the subnet size for BGP peers. Typically  
when we


turn up a new BGP customer we turn them up on a /29 or a /30. That  
seems to


be the norm.


We connect to many of our BGP peers with ethernet. It would be a  
simple


matter to allocate a /24 for connectivity to the customer on a  
shared link.


This would help save on some address space.


My question is, is this in general good or bad idea? Have others  
been down


this path and found that it was a bad idea? I can see some of the  
pothols on


this path (BGP session hijacking, incorrectly configured customer  
routers


etc). These issues could be at least partially mitigated. Are there  
larger


issues when doing something like this or is it a practical idea?



What is your access network? Do you have a switch port per customer?
If so, look in to private VLANs on Cisco, or whatever similar feature  
exists for your vendor.


--
Nathan Ward




RE: Subnet Size for BGP peers.

2009-07-29 Thread Paul Stewart
/29's here for everyone great for troubleshooting and any future
additions typically required...;)

-Original Message-
From: Jim Wininger [mailto:jbot...@gmail.com]
Sent: July 29, 2009 4:00 PM
To: nanog@nanog.org
Subject: Subnet Size for BGP peers.

I have a question about the subnet size for BGP peers. Typically when we

turn up a new BGP customer we turn them up on a /29 or a /30. That seems
to

be the norm.


We connect to many of our BGP peers with ethernet. It would be a simple

matter to allocate a /24 for connectivity to the customer on a shared
link.

This would help save on some address space.


My question is, is this in general good or bad idea? Have others been
down

this path and found that it was a bad idea? I can see some of the
pothols on

this path (BGP session hijacking, incorrectly configured customer
routers

etc). These issues could be at least partially mitigated. Are there
larger

issues when doing something like this or is it a practical idea?

--

Jim Wininger

--
Jim Wininger
jbot...@gmail.com






The information transmitted is intended only for the person or entity to which 
it is addressed and contains confidential and/or privileged material. If you 
received this in error, please contact the sender immediately and then destroy 
this transmission, including all attachments, without copying, distributing or 
disclosing same. Thank you.



Re: Subnet Size for BGP peers.

2009-07-29 Thread Benjamin Billon
Imagine two of your clients are competitors, they probably don't want to 
be on the same IP range. And yes, when you sell your service to several 
customers, you don't want one of them blowing up all the other's SLA.


IXs use /24, as far as I know, and peers connected there can usually use 
md5 password if they want to. But in that case, some troubles like arp 
broadcast storm could happen, coming from any of the connected network.


I guess it's not the same level of service, but I agree, many /30 or /29 
are a big loss of addresses.


It reminds me GLBP with two gateways: on 10.0.0.0/29, you got
10.0.0.0 : network
10.0.0.7 : broadcast
10.0.0.1 : gw1
10.0.0.2 : gw2
10.0.0.6 : virtual gw
only 3, 4 and 5 for other equipments.

Who knows any other good way to lose IP addresses?


Jim Wininger a écrit :

I have a question about the subnet size for BGP peers. Typically when we

turn up a new BGP customer we turn them up on a /29 or a /30. That seems to

be the norm.


We connect to many of our BGP peers with ethernet. It would be a simple

matter to allocate a /24 for connectivity to the customer on a shared link.

This would help save on some address space.


My question is, is this in general good or bad idea? Have others been down

this path and found that it was a bad idea? I can see some of the pothols on

this path (BGP session hijacking, incorrectly configured customer routers

etc). These issues could be at least partially mitigated. Are there larger

issues when doing something like this or is it a practical idea?

  




Re: Subnet Size for BGP peers.

2009-07-29 Thread Barton F Bruce


- Original Message - 
From: Jim Wininger jbot...@gmail.com

To: nanog@nanog.org
Sent: Wednesday, July 29, 2009 3:59 PM
Subject: Subnet Size for BGP peers.


I have a question about the subnet size for BGP peers. Typically when we

turn up a new BGP customer we turn them up on a /29 or a /30. That seems 
to


be the norm.



We connect to many of our BGP peers with ethernet. It would be a simple


So what is wrong with a /31? We use /30s but if you are short on IP space, 
look at using /31 rather than /30 links. Cuts your space usage in half.


If I remember correctly, the BIG problem with using /31s when they first 
became legal was to decide if the customer still gets the higher numbered 
IP address (or you the lower one), or if you still get the ODD number. No 
kidding, it is a problem for some!


Where you are on ethernet, use a seperate 802.1q vlan per customer and have 
your switch give the customer untagged packets. If you have downstreams in 
your COLO, and either free or as a paid service, offer to setup private 
vlans in your switch for any pair or group of customers that need to also 
connect to each other privately for whatever they are doing. In that latter 
case, they will be getting tagged packets but their routers or switches 
should have no problem dealing with them.


We don't charge for physical crossconnects, so this has saved us having to 
do physical crossconnects between customers, and has saved customers router 
ports.








Re: Subnet Size for BGP peers.

2009-07-29 Thread Mikael Abrahamsson

On Thu, 30 Jul 2009, Benjamin Billon wrote:


Who knows any other good way to lose IP addresses?


I know how to not lose them:

int lo30
ip address 192.168.0.1 255.255.255.0

int gi2.10
encap dot1q 10
desc cust 1
ip address unnumbered lo30

int gi2.11
encap dot1q 11
desc cust 2
ip address unnumbered lo30

ip route 192.168.0.2 255.255.255.255 gi2.10
ip route 192.168.0.3 255.255.255.255 gi2.11

etc. Now you can have one customer per vlan but still have them share the 
same IP subnet. This works with vlan interfaces as well.


I don't remember if you have to do local-proxy-arp or not, but if you're 
running bgp you could always do next-hop-self to be sure it hops via the 
gateway.


--
Mikael Abrahamssonemail: swm...@swm.pp.se