Community discussions

MikroTik App
 
Beccara
Long time Member
Long time Member
Topic Author
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Routing Issue

Tue Apr 26, 2005 1:40 pm

Ok so i know i'm missing something here, this is a simple network

2 RouterOS routers with 2 lan cards in each

10.0.3.1/24---Router1---172.168.0.1/24------172.168.0.11/24---router2---172.168.1.1/24---172.168.1.2/24---Computer

Now i've got BGP running on both router,s and they are peered and sharing the networks 10.0.3.0/24 and 172.168.1.0/24

but i cant ping anything but 172.168.1.1 from the computer, even if i ping 172.168.0.11 i get nothing, how on earth do i get router os to route between all the networks so my windows xp computer can ping 172.168.1.0/24, 172.168.0.0/24 and 10.0.3.0/24

I'm sure its some simple option but i cant find it!!!

Help
:evil:
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Tue Apr 26, 2005 1:43 pm

Have you set the default gateway on the PC to 172.168.1.1? (Sound like not... ;) )
 
Beccara
Long time Member
Long time Member
Topic Author
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Tue Apr 26, 2005 1:48 pm

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.168.1.254
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.168.1.1


Even if i try and ping 172.168.1.1 from router1 i cant get a reply, yet if i ping 172.168.0.11 i do get a reply
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Tue Apr 26, 2005 2:02 pm

Could you provide us with some more details what your routers show regarding BPG status, peers, routing tables etc.?
 
Beccara
Long time Member
Long time Member
Topic Author
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Tue Apr 26, 2005 2:12 pm

ok this is router 1

[admin@MikroTik] > interface ethernet print
Flags: X - disabled, R - running
# NAME MTU MAC ADDRESS ARP
0 R bridge 1500 00:0C:29:5D:74:55 enabled
1 R routeros1 1500 00:0C:29:5D:74:5F enabled
2 R routeros2 1500 00:0C:29:5D:74:69 enabled
3 R routeros3 1500 00:0C:29:5D:74:73 enabled
[admin@MikroTik] >

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 D 10.0.3.9/24 10.0.3.0 10.0.3.255 bridge
1 172.168.0.1/24 172.168.0.0 172.168.0.255 routeros1
2 172.168.0.2/24 172.168.0.0 172.168.0.255 routeros2
3 172.168.0.3/24 172.168.0.0 172.168.0.255 routeros3
[admin@MikroTik] >

[admin@MikroTik] > routing bgp print
enabled: yes
as: 123
router-id: 172.168.0.1
redistribute-static: yes
redistribute-connected: yes
redistribute-rip: no
redistribute-ospf: no
state: running
[admin@MikroTik] >

[admin@MikroTik] > routing bgp peer print
# REMOTE-ADDRESS REMOTE-AS MULTIHOP ROUTE-REFLECT PREFIX-LIST-IN PREFIX-LIST-OUT
0 172.168.0.11 123 no no
[admin@MikroTik] >

This is from router2

[admin@MikroTik] > interface ethernet print
Flags: X - disabled, R - running
# NAME MTU MAC-ADDRESS ARP
0 R routeros1-main 1500 00:0C:29:59:3E:79 enabled
1 R routeros1-cpe 1500 00:0C:29:59:3E:83 enabled
2 R routeros1-routeros2 1500 00:0C:29:59:3E:8D enabled
[admin@MikroTik] >

[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 172.168.0.11/24 172.168.0.0 172.168.0.255 routeros1-main
1 172.168.0.31/24 172.168.0.0 172.168.0.255 routeros1-routeros2
2 172.168.1.1/24 172.168.1.0 172.168.1.255 routeros1-cpe
[admin@MikroTik] >

[admin@MikroTik] > routing bgp print
enabled: yes
as: 123
router-id: 172.168.0.11
redistribute-static: yes
redistribute-connected: yes
redistribute-rip: no
redistribute-ospf: no
state: running
[admin@MikroTik] >

[admin@MikroTik] > routing bgp peer print
# REMOTE-ADDRESS REMOTE-AS MULTIHOP ROUTE-REFLECT PREFIX-LIST-IN PREFIX-LIST-OUT
0 172.168.0.1 123 no no
[admin@MikroTik] >

[admin@MikroTik] > routing bgp network print
# NETWORK
0 172.168.1.0/24
[admin@MikroTik] >


Winbox says that router 1 and 2 are connected via bgp and router1 reports that 1 network has been recived from router2, as shown in the route table
 
sten
Forum Veteran
Forum Veteran
Posts: 923
Joined: Tue Jun 01, 2004 12:10 pm

Tue Apr 26, 2005 5:29 pm

Uhm, i never got IBGP to work properly either.
Perhaps you could use private AS' and EBGP configuration instead?
 
Beccara
Long time Member
Long time Member
Topic Author
Posts: 606
Joined: Fri Apr 08, 2005 3:13 am

Tue Apr 26, 2005 11:52 pm

it dosnt look like its a BGP issue tho, since the routes appare in the tables, it just looks like both routers are not routing between interface.

Could you provide more info about howto setup a private AS's and EBGP rig?
 
sten
Forum Veteran
Forum Veteran
Posts: 923
Joined: Tue Jun 01, 2004 12:10 pm

Wed Apr 27, 2005 2:26 pm

Perhaps they are flagged invalid somehow? I've had problems with IBGP since we cant use route-maps (which is a -very- necessary feature of Quagga/Zebra bgpd). I think peers are automatically configured with "next-hop-self" which is wrong for IBGP (as all routes passing through the BGP router from other routers will change next-hop).

Private AS numbers are from 64500 and up, configure different AS for all routers will effectivly make it EBGP.
 
User avatar
dwright
Member Candidate
Member Candidate
Posts: 158
Joined: Fri May 28, 2004 1:10 pm
Location: Mchenry, Il

Fri Apr 29, 2005 8:38 am

Not sure if this is the problem or not, but if you are using the 172. network for private ip addressing, the problem could be that that ip address is not a reserved network address. The 172 range goes from 172.16.0.0-172.31.255.255.

I can actually ping 172.168.0.1 from my network so it is a valid working address.

If this is truely your address range, please disregard this post.

~D