Community discussions

MikroTik App
 
illuminatus
just joined
Topic Author
Posts: 3
Joined: Thu May 12, 2005 9:02 pm

Enabling a Static Route Causes Everything Else to Not Work

Wed Jul 06, 2005 5:14 pm

We currently have 2 WAN interfaces on our router. One is setup with a static IP and the other get the IP from the ISP via DHCP. Whenever I try to enable a static route to add the gateway for the former interface everything doesn't route correctly. No one can get to the 'net from the internal network.
[admin@MikroTik] > /ip route print
Flags: X - disabled, I - invalid, D - dynamic, J - rejected, 
C - connect, S - static, r - rip, o - ospf, b - bgp 
 #    DST-ADDRESS        G GATEWAY         DISTANCE INTERFACE
 0 DS 0.0.0.0/0          r 65.189.240.1    1        WAN     
 1 XS 0.0.0.0/0          u 66.93.20.1      1        (unknown)
 2 DC 192.168.1.0/24     r 0.0.0.0         0        OCEAN    
 3 DC 176.16.0.0/16      r 0.0.0.0         0        STROUDER 
 4 DC 65.189.240.0/21    r 0.0.0.0         0        WAN     
 5 DC 10.59.1.0/24       r 0.0.0.0         0        WiFi     
[admin@MikroTik] > 
Note: It says interface unknown because the interface and IP address are currently disabled as well.
 
User avatar
Roman
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Wed Oct 06, 2004 11:24 am

Thu Jul 07, 2005 2:05 pm

try to do the following:
set add-default-route=no in dhcp-client, then add default gateway -- `/ip route add gateway=65.189.240.1,66.93.20.1'
should work
 
illuminatus
just joined
Topic Author
Posts: 3
Joined: Thu May 12, 2005 9:02 pm

Thu Jul 21, 2005 5:19 pm

That allowed me to go out on our static interface but everything else still doesn't work. Even when I put in preferred sources.