Community discussions

MikroTik App
 
chshawkn
just joined
Topic Author
Posts: 1
Joined: Wed Aug 16, 2017 9:56 pm

static route issue

Wed Aug 16, 2017 10:24 pm

I bought a RB962 few days ago.

My RB962's ip is 192.168.1.1
I have a rancher/k8s cluster on virtualbox vm that has bridged network (ip: 192.168.1.101-192.168.1.103) .
There is a vxlan SDN (10.42.0.0/16) created for rancher/k8s cluster.

I can get direct access to all host (docker container) on vxlan by set any host in 192.168.1.101-192.168.1.103 as gateway.
e.g. on macos `sudo route -n add -net 10.42.0.0/16 192.168.1.101` or on windows `route ADD 10.42.0.0 MASK 255.255.0.0 192.168.1.101`

In company, I asked admin to add static route on cisco device so we can access vxlan on any host in office, I don't know what he did.
I want to have same effect at home on my private small cluster, so I bought a RB962 and hope it works.

But after I add route by `ip route` and `add dst-address=10.42.0.0/16 gateway=192.168.1.101`
I got a entry like this:
|       |      |  Dst. Address | Gateway                                        | Distance |   Routing Mark | Pref. Source |
| - D | AS |  10.42.0.0/16 | 192.168.1.101 reachable bridge2 | 1              |                         |                      |
When I ping host on 10.42.0.0/16, I got a ICMP redirect and request timeout like this:
PING 10.42.60.194 (10.42.60.194): 56 data bytes
Request timeout for icmp_seq 0
92 bytes from 192.168.1.1: Redirect Host(New addr: 192.168.1.101)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 9b0d   0 0000  3f  01 1140 192.168.1.19  10.42.60.194
Please help, Thanks!
 
User avatar
acruhl
Member
Member
Posts: 371
Joined: Fri Jul 03, 2015 7:22 pm

Re: static route issue

Sat Aug 19, 2017 6:06 am

Probably 192.168.1.101 thinks there is a better route to the 10.42.0.0/16 network. Have you looked at that?

Try other addresses in on the openstack machine to see if one works.

You might need to study what's going on in the openstack machines at work. Look at physical connectivity.

Who is online

Users browsing this forum: GoogleOther [Bot], holvoetn, mtkvvv, Rendy and 64 guests