Mikrotik RouterOS with 3 EthernetCards

IceTurbo3

New Member
Joined
Aug 4, 2005
Messages
9
Reaction score
0
Location
Potchefstroom
Hey

I have built me a router with RouterOS v.2.9.2.7 on it and need some help from anyone.Have PCN,ADSL connected to it and have an output card to my HUB.

Okay PCN stands for Potchefstroom Community Network and it is a wireless connection in town. My router that I’m trying to setup must do the following.

3 Interface cards: 1 (Internet LAN) = ADSL Router in Bridge Mode
1 (DC LAN) = PCN with an existing DHCP Server
1 (HUB LAN) = My HUB card, connecting to my HUB

On my HUB LAN card I gave the card a static IP of 192.168.0.1/24 and setup a DHCP Server on the card with an IP Pool op 192.168.0.2-192.168.0.255.

On my Internet LAN card I gave the card a static IP 192.168.1.1/24 and added a PPPoE on the Internet card, and added the default route to it and setup the Firewall NAT action to masquerade and the internet working 100%.I’m only using an international account on this setup.

On my DC LAN card with a static IP of 192.168.2.1/24,I must go and add a DHCP Client to get and IP from the DHCP Server of the PCN network an the PCN network using a 172.31.65.xx/26 IP range, but if I added the default route to it my internet stop working and my DC program that uses the 172.31.65.xx/26 IP range works then 100%.The HUB IP on the DC program that I connect to is 143.160.145.210:4012 through the 172.31.65.xx/26 range.

So my problem is that I still wants 24/7 internet connection and at the same time if I want to go and work on my DC I just want to open DC and it must automatically connect through my DHCP Server with a route to the PCN network address that is on the 172.31.65.xx/26 range. If I only setup the DHCP client with the default route on the DC LAN card and with no PPPoE connecting, meaning that the PPPoE is not setup on my Internet LAN card, I can connect to my DC through the DHCP Server 100%

http://img261.imageshack.us/img261/5037/routerse3.jpg

IceTurbo

PM me please any help will do
 
If i understand it correctly

add a route to your route list. something like
/ip route add dst-address=172.31.0.0/16 gateway=172.31.65.254

that will route all the traffic destined to the WUG via your DC LAN card
 
If i understand it correctly

add a route to your route list. something like
/ip route add dst-address=172.31.0.0/16 gateway=172.31.65.254

that will route all the traffic destined to the WUG via your DC LAN card

Tried it and didn't work.See the PCN gateway.miederpark1 DHCP Server is 172.31.65.254 and the IP that I get and connect on to the DC is 172.31.65.226 for 1 PC and the other PC IP is 172.31.65.228.

See I cannot insert a static ip it must be a dynamic one from the gateways DHCP Server.

Without the PPPoE enabled on it and the DC Lan DHCP Client is then set as default route my DC work right.If I then enables my PPPoE and the default route on both is set as default route my internet starts to work and my DC disconnect.
 
You need to route 172.31.0.0/16 to go to the PCN gateway and your default route should be set by your pppoe-client.
 
The PPPoE-Client already adds the default route. So just leave it alone, and dont try adding another one. (its the route entry for 0.0.0.0)
 
where must i setup the route 172.31.0.0/16 and what is the gateway that I must use.See Internet working and 143.160.145.210:4012 is the Hubs IP and Port
 
where must i setup the route 172.31.0.0/16 and what is the gateway that I must use.See Internet working and 143.160.145.210:4012 is the Hubs IP and Port

sorry i dont think i explained my instructions to well
in mikrotik goto a new terminal and paste the command
/ip route add dst-address=172.31.0.0/16 gateway=172.31.65.254

that will add a route to send any traffic to the IP addresses 172.19.31.0.0 to 172.19.31.255.255 to the PCN. any other traffic eg internet traffic will still go via your internet connection.

I'm guessing that the default gateway for your PNC connection will always stay 172.19.31.65.254.
 
sorry i dont think i explained my instructions to well
in mikrotik goto a new terminal and paste the command
/ip route add dst-address=172.31.0.0/16 gateway=172.31.65.254

that will add a route to send any traffic to the IP addresses 172.19.31.0.0 to 172.19.31.255.255 to the PCN. any other traffic eg internet traffic will still go via your internet connection.

I'm guessing that the default gateway for your PNC connection will always stay 172.19.31.65.254.

The main DHCP DNS is 172.31.1.100 and the miederpark gateway will stay 172.31.65.254.I will try and let you know

Thanks so far
 
Why dont you pop onto the Jawug IRC server and ask in there.
There's always a mikrotik expert hanging around avoiding doing real work in there...
 
Top
Sign up to the MyBroadband newsletter
X