Page 1 of 1

Routing Issue

Posted: Tue Apr 26, 2005 1:40 pm
by Beccara
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:

Posted: Tue Apr 26, 2005 1:43 pm
by cmit
Have you set the default gateway on the PC to 172.168.1.1? (Sound like not... ;) )

Posted: Tue Apr 26, 2005 1:48 pm
by Beccara
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

Posted: Tue Apr 26, 2005 2:02 pm
by cmit
Could you provide us with some more details what your routers show regarding BPG status, peers, routing tables etc.?

Posted: Tue Apr 26, 2005 2:12 pm
by Beccara
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

Posted: Tue Apr 26, 2005 5:29 pm
by sten
Uhm, i never got IBGP to work properly either.
Perhaps you could use private AS' and EBGP configuration instead?

Posted: Tue Apr 26, 2005 11:52 pm
by Beccara
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?

Posted: Wed Apr 27, 2005 2:26 pm
by sten
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.

Posted: Fri Apr 29, 2005 8:38 am
by dwright
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