Community discussions

MikroTik App
 
daitea
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Sun May 03, 2009 3:17 pm

how do i keep 2 internet source in the same base station

Thu Jan 21, 2010 8:24 pm

i have two source of internet at the same base station and are connected to the same rb.
i want to pass them to different client radios.
how do i do that.

ie client A group has ip 10.1.45.0/24 with internet gateway 192.168.1.1
client B group has ip 10.1.46.0/24 with internet gateway 10.0.97.2

Pls how do i get the sources to their respective client ip by route?
 
netrat
Member
Member
Posts: 402
Joined: Thu Jun 07, 2007 1:16 pm
Location: Virginia

Re: how do i keep 2 internet source in the same base station

Thu Jan 21, 2010 8:29 pm

 
daitea
Member Candidate
Member Candidate
Topic Author
Posts: 118
Joined: Sun May 03, 2009 3:17 pm

Re: how do i keep 2 internet source in the same base station

Thu Jan 21, 2010 8:59 pm

this policy is fine but what i am looking for is for 2 different internet source going to two different client who connect to the same base station
 
netrat
Member
Member
Posts: 402
Joined: Thu Jun 07, 2007 1:16 pm
Location: Virginia

Re: how do i keep 2 internet source in the same base station

Thu Jan 21, 2010 9:10 pm

First you need to make an effort to figure things out on your own. I guess you are looking for someone to paste a configuration for you....


This should work, but I haven't tested it. Also make sure you have the proper NAT rules in place.
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 \
    routing-mark=groupa scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.97.2 \
    routing-mark=groupb scope=30 target-scope=10
/ip route rule
add action=lookup comment="" disabled=no src-address=\
    10.1.45.0/24 table=groupa
add action=lookup comment="" disabled=no src-address=\
    10.1.46.0/24 table=groupb