cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2943
Views
10
Helpful
7
Replies

How to connect branch router via Internet?

SubnetWarrior
Level 1
Level 1

Hai experts!

In my work, i have experience to config connecting branches offices to data center edge router via BGP (with Metro E and MPLS media). But i curious about how to connect dc edge router to branch router vice versa via internet. Any idea? Do i have to advertise company public ip address in branch router to internet? What kind of configuration i have to do in my branch and edge router if they are connected via internet?

Fyi, i have configured site to site vpn, but it is between our company asr/inet router and company ip public to our third party partner's ip public. But still have no idea how to connect brnach to dc via internet.

Thank you for your enlighment.

1 Accepted Solution

Accepted Solutions

The routers would have an Internet IP on their interface that connects to the Internet. This IP is not "shared" internally. The inside facing interface, and the VPN interface, would have an internal/private IP, like your example of using 192.168.10.10.

Yes, if you have 300 branches, you'll need 300 public IPs. These IPs are provided by your ISP(s).

To make management of 300 branches "easier", with DMVPN (mentioned by Giuseppe), it only needs to "know" the hub's public IP, it then use NHRP to inform the hub what the branch's public IP is. Further, I recall (?) the branch can use DHCP to obtain its public IP from the ISP it connects to.

The branch internal IP assignments, you'll need to allocate IPs for.

 

"I'm sorry for my lack of knowledge and experience sir, i still can not understand how to connect dc - branch via internet."

 

Nothing to be sorry for.  You did the right thing, you asked for further information.

View solution in original post

7 Replies 7

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello @SubnetWarrior ,

connecting to an HQ over the public Internet is usually done using an IPSec LAN to LAN VPN or other variants of this technology like DMVPN ( Cisco proprietary) or GET VPN. The last two are used when the number of remote site / spokes is high instead of using point to point IPSec tunnels.

Specially with Cisco routers there is an advantage on using p2p GRE tunnels that are then protected by IPSec: the main advantages are the following two:

- ability to run a routing protocol like IGP (OSPF, EIGRP or even IS-IS) over the GRE tunnels to advertise remote subnets dynamically

- ability to support multicast traffic flows over GRE tunnels.

 

Actually DMVPN uses a special type of GRE tunnel called mGRE multipoint GRE in combination with NHRP.

 

Hope to help

Giuseppe

 

"Specially with Cisco routers there is an advantage on using p2p GRE tunnels that are then protected by IPSec: . . ."

BTW, later IOS versions also support IPSec VTI tunnels. You can do dynamic routing protocols across them too (I believe [?] multicast too), but they don't have the additional overhead of GRE.

You can also do ordinary GRE (i.e. no IPSec), but then your traffic isn't encrypted. This, of course, is less secure, but not quite as much as many think. (Mostly because, Internet security hacks are aimed more at the end-points than transit traffic.)

Lastly, using the Internet for private business connections is often much, much less expensive than "private" WAN clouds (MetroE, MPLS, etc.) Such connections are often much easier to obtain in many parts of the world. Some features of private clouds, like MPLS, is "guaranteed" bandwidth and/or QoS vs. Internet. However, those aspects aren't quite like the private WAN vendors would like you to believe.

Thank you so much for your englighment sir.
Could you please explain a little bit technical? Because i can't grasp the idea how to advertise branch network to the internet and how the HQ edge router receive the branch prefix from the internet.
For the comparison, my company also use get vpn to secure the branches network. We use two routers as key server. The key server can connect to the branch router via BGP and MPLS. The bgp configuration is my edge router (ce) advertise and receitve prefix via bgp to the isp router (pe), as well as my branch router advertise and receive prefix via bgp to the isp router.
If we use internet, how we advertise and receive prefix with bgp?

When you create a VPN across the Internet, using something like tunnels, you normally make those logical "links" part of your internal network. Depending upon the "kind" of VPN, you can pass L2 or L3 across it, just as you might within your LAN or a private MAN/WAN. I.e. you can route across some VPN using an IGP or something like BGP.

I'm sorry for my lack of knowledge and experience sir, i still can not understand how to connect dc - branch via internet.

This is my current understanding :
If we want to establish vpn, branch router (lets say BR) and dc (lets say DR) have to know eacH other ip address for keyring or for pre share key target. Lets make a scenarion with BR interface is 192.168.10.10 and DR is 172.16.10.10. In my understanding, if they use internet, they topology become :

DR - internet - BR.

How DR know BR's 192.168.10.10 address? In theory BR have to advertise 192.168.10.10 to internet, but also in theory we can not advertise private ip address to internet. Yes we can use company public address on BR and nat the 192.168.10.10 to that public ip address, but if we have 300 brances, it's impossible to assign public ip address per branch.

In summary, yes we need vpn on branch - dc connection, but before vpn established, branch - dc have to know each other ip addresses, how they know each other ip addresss (beofre vpn established)?

Once again, thank you, thank you very much for your time.

The routers would have an Internet IP on their interface that connects to the Internet. This IP is not "shared" internally. The inside facing interface, and the VPN interface, would have an internal/private IP, like your example of using 192.168.10.10.

Yes, if you have 300 branches, you'll need 300 public IPs. These IPs are provided by your ISP(s).

To make management of 300 branches "easier", with DMVPN (mentioned by Giuseppe), it only needs to "know" the hub's public IP, it then use NHRP to inform the hub what the branch's public IP is. Further, I recall (?) the branch can use DHCP to obtain its public IP from the ISP it connects to.

The branch internal IP assignments, you'll need to allocate IPs for.

 

"I'm sorry for my lack of knowledge and experience sir, i still can not understand how to connect dc - branch via internet."

 

Nothing to be sorry for.  You did the right thing, you asked for further information.

Wow, that explanation is an "aha moment" for me, i finally understand, once again thank you very much sir.

I wish you all the successs and please keep inspiring junior network engineer like me!