Community discussions

MikroTik App
 
catalan63
just joined
Topic Author
Posts: 6
Joined: Mon May 22, 2017 8:34 pm

Two Networks, one gateway

Wed Dec 26, 2018 6:46 am

Router A
Bridge IP: 172.25.25.25 (bridged ports 3-5)
Interface 1 - to dsl modem
IP Interface 2 - 172.16.16.10 (conected to interface 1 Router B)
DHCP Server: 172.25.25.0/24 (assigned to the bridge)
NAT: SRCNAT PPOE Interface


Router B
Bridge IP: 172.30.30.30 (bridged Porte 2-5)
IP Interface 1 - 172.16.16.16 (conected to interface 2 Router A)
DHCP Server: 172.30.30.0/24 (assigned to the bridge)
DNS 172.16.16.10 - 8.8.8.8

Configuration Router A
Route 0.0.0.0 --- PPOE Interface
Route 172.30.30.0/24 --- 172.16.16.16

Configuration Router B
Route 172.25.25.0/24 --- 172.16.16.10
Route 0.0.0.0 ---172.16.16.10

The problem, i dont have internet on router B with 172.30.30.x addresses.

Can you help me?
Last edited by catalan63 on Thu Dec 27, 2018 4:42 am, edited 6 times in total.
 
shiyiqiang08
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Dec 05, 2018 7:35 am

Re: Two Networks, one gateway

Wed Dec 26, 2018 8:13 am

Router A
Bridge IP: 172.25.25.25
X Interface: 172.16.16.10
DHCP Server: 172.25.25.0/24
NAT: SRCNAT PPOE Interface


Router B
Bridge IP: 172.30.30.30
DHCP Server: 172.30.30.0/24


Configuration Router A
Route 0.0.0.0 --- PPOE Interface
Route 172.30.30.0/24 --- 172.16.16.16

Configuration Router B
Route 172.25.25.0/24 --- 172.16.16.10


The problem, i dont have internet on router B with 172.30.30.x addresses.


Can you help me?
route b needs a route
0.0.0.0/0 gateway 172.16.16.10
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Two Networks, one gateway

Wed Dec 26, 2018 8:34 am

Do you realize that default route should be found at the host in broadcast domain?
 
catalan63
just joined
Topic Author
Posts: 6
Joined: Mon May 22, 2017 8:34 pm

Re: Two Networks, one gateway

Wed Dec 26, 2018 5:44 pm

@shiyiqiang08

Sory, i missed up to put on the post the default gateway of the router B, its made and still dont have internet?
 
shiyiqiang08
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Dec 05, 2018 7:35 am

Re: Two Networks, one gateway

Thu Dec 27, 2018 3:30 am

@shiyiqiang08

Sory, i missed up to put on the post the default gateway of the router B, its made and still dont have internet?
can you ping 8.8.8.8 from route b?
if you can ,route set is ok
if not ,may be dns is not set correctly
 
catalan63
just joined
Topic Author
Posts: 6
Joined: Mon May 22, 2017 8:34 pm

Re: Two Networks, one gateway

Thu Dec 27, 2018 4:44 am

@shiyiqiang08

Sory, i missed up to put on the post the default gateway of the router B, its made and still dont have internet?
can you ping 8.8.8.8 from route b?
if you can ,route set is ok
if not ,may be dns is not set correctly
Nope, the ping says destination net unreachable, but nslookup works fine
 
catalan63
just joined
Topic Author
Posts: 6
Joined: Mon May 22, 2017 8:34 pm

Re: Two Networks, one gateway

Thu Dec 27, 2018 4:45 am

i update the configuration, i missed up some details that now are in the original post.
 
User avatar
krafg
Forum Guru
Forum Guru
Posts: 1042
Joined: Sun Jun 28, 2015 7:36 pm

Re: Two Networks, one gateway

Thu Dec 27, 2018 11:59 pm

Anyway on router B add a masquerade without specifing the interface.

Scrnat -> Masquerade

Regards.

Who is online

Users browsing this forum: No registered users and 16 guests