Code: Select all
ROS1>/ip add address=13.0.0.1/24 interface=vlan3013
ROS1>/ip add address=12.0.0.1/24 interface=vlan3012
ROS2>/ip add address=12.0.0.2/24 interface=vlan3012
ROS2>/ip add address=20.0.0.1/24 interface=vlan3020 (gateway for pc 20.0.0.2)
ROS3>/ip add address=13.0.0.3/24 interface=vlan3013
ROS3>/ip add address=30.0.0.1/24 interface=vlan3030 (gateway for pc 30.0.0.2)
If could not add PCs route to the routing-table, we just can ues the policy-route to do “source in source out”
Code: Select all
ROS1>/ip f m add chain=prerouting action=mark-connection in-interface=vlan3013 new-connection-mark=conn_vlan3013
ROS1>/ip f m add chain=prerouting action=mark-connection in-interface=vlan3012 new-connection-mark=conn_vlan3012
ROS1>/ip f m add chain=output action=mark-routing connection-mark=conn_vlan3013 new-routing-mark=routing_vlan3013
ROS1>/ip f m add chain=output action=mark-routing connection-mark=conn_vlan3012 new-routing-mark=routing_vlan3012
ROS1>/ip rou add gateway=13.0.0.3 routing-mark=routing_vlan3013
ROS1>/ip rou add gateway=12.0.0.2 routing-mark=routing_vlan3012
but I use other ros (other netwok) to do this test , it has no problem !!!
the config is the same , I spend a lot of time to test , the end I found a bug:
if I set a default route in the ROS1 , Even this route does not really exist
Code: Select all
ROS1>/int vlan add name=test vlan-id=2 interface=ether5
ROS1>/ip add address=1.2.3.4/24
ROS1>/ip rou add gw=1.2.3.1
It makes me feel incredible
This is not in line with normal logical thinking
Is this a bug ?