Community discussions

MikroTik App
 
dharris
newbie
Topic Author
Posts: 25
Joined: Wed Apr 11, 2007 10:11 pm
Location: Bella Coola
Contact:

default router question, etc

Tue Jul 24, 2007 10:27 pm

hi,

i'm trying to set up a default route using my routerboard 532a. i'm running 2.9.44. the set up is as follows:

ether1 is set to 192.168.0.45.
ether2 is set to 207.102.11.30.
my computer is directly connected to ether1 and has IP 192.168.0.30.
ether2 is connected to the internet, default route is 207.102.11.254.

i can ping from my computer both 192.168.0.45 and 207.102.11.30. from my computer i can't ping 207.102.11.254 or anything else on the internet.

when i'm logged into winbox and use ping under the tools menu, i can ping 207.102.11.254 or anything else on the internet.

i've tried setting a default route using winbox but for some reason it isn't working. i've attached to this post a screen shot of the current routing table from winbox.

any help would be great.

tia,
dave
routes.TIF
You do not have the required permissions to view the files attached to this post.
 
cmacneill
Member Candidate
Member Candidate
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: default router question, etc

Fri Jul 27, 2007 3:08 am

How is ether2 connected to the Internet? If you're connecting via ADSL Router then this will also need static routes.

I can seem to open your attachment for some reason. Try connecting to your MT router using a telnet session, you can then list the routing table and cut & paste as text.
 
User avatar
andrewluck
Forum Veteran
Forum Veteran
Posts: 700
Joined: Fri May 28, 2004 9:05 pm
Location: Norfolk, UK

Re: default router question, etc

Sat Jul 28, 2007 2:19 pm

You don't mention NAT which you will require as you're using private IP addresses internally.

Regards

Andrew
 
dharris
newbie
Topic Author
Posts: 25
Joined: Wed Apr 11, 2007 10:11 pm
Location: Bella Coola
Contact:

Re: default router question, etc

Wed Aug 01, 2007 7:01 pm

hi

sorry for the delay, i haven't had internet access for several days. ether2 is connected to through an ethernet converter. it acts as a transparent bridge to the internet. i am using NAT but figured the router should keep track of individual sessions. one thing of note, i have not entered the default gateway anywhere in the Mikrotik so i'm assuming that is why i can ping the default router from the Mikrotik router but can't ping it through the Mikrotik router. the following is the routing table:

[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.0.0/24 192.168.0.45 ether1
1 ADC 207.102.11.0/24 207.102.11.30 ether2
2 A S 0.0.0.0/0 r 192.168.0.45 ether1
[admin@MikroTik] ip route>

tia,
dave
 
cmacneill
Member Candidate
Member Candidate
Posts: 293
Joined: Sun Apr 01, 2007 10:51 pm
Location: Christchurch, New Zealand

Re: default router question, etc

Wed Aug 01, 2007 8:59 pm

/ip route add dst-address=0.0.0.0/0 gateway=207.102.11.254
I assume you have the Default Gateway for your PC set to 192.168.0.45?
 
dharris
newbie
Topic Author
Posts: 25
Joined: Wed Apr 11, 2007 10:11 pm
Location: Bella Coola
Contact:

Re: default router question, etc

Tue Aug 14, 2007 12:29 am

hi All,

thanks for all the replies, i wanted to dig deeper into this before replying. turns out adding the "/ip firewall nat add chain=srcnat action=masquerade" command and default route did the trick. the router passes traffic now!

thanks to everyone for their pointers,
dave