Community discussions

MikroTik App
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Wed Oct 07, 2015 10:43 am

Hi..
my ISP has given one /30 WAN IP.
I gave them two blocks of /24 and asked them to advertise it in their network and they said, its done.

Now I connected one port of my microtik to my laptop and entered my IP as gateway and static IP, but there is no internet

What does that mean ?

Do I need to do any special configuration for BGP or something inside my core router ??
 
User avatar
shaoranrch
Member Candidate
Member Candidate
Posts: 184
Joined: Thu Feb 13, 2014 8:03 pm

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 2:22 am

Hello,

You're not giving enough information about this in order to help you.

You say you're sending prefixes to your ISP. is your ISP sending prefixes to you or a default route?

Try to give more details
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 7:51 am

The ISP said, their BGP is correctly done.
I have done the BGP now in my router.

Now, I have connected one laptop to ether1 and set it to my IP and gateway.

Internet is working!! :D :D

But when I do whats my ip, it shows the ISP's IP instead of mine.

Why is it so ??

I have a NAT rule on my firewall. If I switch it off, then internet goes from my IP.

If its enabled, then internet is there.
But IP shows of ISP.

What am I missing ?
 
onnoossendrijver
Member
Member
Posts: 487
Joined: Mon Jul 14, 2008 11:10 am
Location: The Netherlands

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 9:51 am

NAT translates your locally used IP addresses to your WAN IP. That's not what you want, so disable NAT.

Because you are running BGP you need to make sure that you announce the addresses that you want to be reachable from the internet to your ISP.

One way to do that is to enable "Redistribute connected" in your BGP instance. Beware! This way you redistribute ALL your connected subnets to your ISP!
You really want to create a filter which only accepts your ISP assigned subnet and enable that filter in your BGP instance on "Out Filter".
Last edited by onnoossendrijver on Thu Oct 08, 2015 10:02 am, edited 1 time in total.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 9:57 am

NAT translates your locally used IP addresses to your WAN IP. That's not what you want, so disable NAT.

Because you are running BGP you need to make sure that you announce the addresses that you want to be reachable from the internet to your ISP.

One way to do that is to enable "Redistribute connected" in your BGP instance. Beware! This wat you redistribute ALL your connected subnets to your ISP!
You really want to create a filter which only accepts your ISP assigned subnet and enable that filter in your BGP instance on "Out Filter".

1. Okay switched off the NAT entry in firewall.

2. Yes, the address is reachable I guess. As in my Routing - BGP, it shows established and advertisements two entries are also done. How do I check who is at fault ?
Me or my ISP ?

Do you need any screenshots or team viewer login to see or test something ?

3. If I enable redistribute, what can I test ?
 
onnoossendrijver
Member
Member
Posts: 487
Joined: Mon Jul 14, 2008 11:10 am
Location: The Netherlands

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 10:06 am

You say that you see your subnet on the Advertisements tab? That's good!
You can do a traceroute from your PC to an internetaddress (8.8.8.8 from google for instance) and see where it ends.
You can also do a traceroute from a different internet connection to your own subnet and see where that ends.

This might explain what's going wrong.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 10:38 am

You say that you see your subnet on the Advertisements tab? That's good!
You can do a traceroute from your PC to an internetaddress (8.8.8.8 from google for instance) and see where it ends.
You can also do a traceroute from a different internet connection to your own subnet and see where that ends.

This might explain what's going wrong.
You say that you see your subnet on the Advertisements tab? That's good!
You can do a traceroute from your PC to an internetaddress (8.8.8.8 from google for instance) and see where it ends.
You can also do a traceroute from a different internet connection to your own subnet and see where that ends.

This might explain what's going wrong.
1. I have a PC connected to the router and it has my IP set as gateway and static IP.
Pinging to 8.8.8.8 works, but internet is not opening. No websites open up.
I will do a trace route and show you screenshot in 15 mins.

2. And if I trace route my IP from another network, I get this
http://prntscr.com/8p06vl


So, where is the issue ?
My end or ISP end ?
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 10:42 am

Im in India.
And Im sitting in another network and did a trace route of my IP and it resolves well.

See http://prntscr.com/8p0d1l

But the same IP if I do a trace route from USA or some other country which is outside India, then it doesnt resolve.

See attached,
http://prntscr.com/8p0dfl

So, can this be a error from the ISP end ?
Is it an routing error from their side, for which my IP blocks are not routed globally ?

As I can see, the trace route within India, it resolves, but it doesnt resolve from outside India.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Thu Oct 08, 2015 11:05 am

Okay, I think I found the problem.

I called my ISP and asked, if the RADB entry is done or not for my AS number and they said NO.

Now, they are doing it.

After entering it, how much time does it take normally to propagate and show up ?

I think, thats the reason, my IP traceroute works within India but doesnt work outside India.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Fri Oct 09, 2015 7:07 am

Its still not working.

What did I leave ?

Can someone please help ???

Isn't BGP works with 1 WAN ?
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Fri Oct 09, 2015 9:56 am

Okay now the IP is resolving and internet is working.

But bgp.he.net is still not showing my info on their website for my AS number.
Also, Speedtest.net is not showing my name.
It shows, UNKNOWN.
 
soamz
Member
Member
Topic Author
Posts: 430
Joined: Thu Mar 19, 2015 7:19 am

Re: BGIP Routing in CCR1009, ISP given WAN, my /24 needs to work

Fri Oct 09, 2015 9:57 am

I contacted one of my friend, who is a ISP in Colorado and runs a data center and he replied this,

Well, because you are not announcing the prefixes from AS134325 directly, you won't see the status you are looking for. Right now, the prefixes are being announced by AS18101, which is your upstream provider. If you want them to show up from AS134325, you need to make the announcement yourself, and have your upstream provider accept the announcements from you.

It's something YOU need to set up. I'm not familiar with the Microtik CCR1009 so I can't give you specific examples. Basically though, you need to announce the prefix from your Microtik, and let your ISP know to accept the prefixes you are announcing, and to stop announcing them for you. If you were running Cisco, Juniper, or Brocade I would be able to tell you exactly how to do it.

Who is online

Users browsing this forum: No registered users and 53 guests