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 (66.2 KB)
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.
You don’t mention NAT which you will require as you’re using private IP addresses internally.
Regards
Andrew
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
/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?
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