Community discussions

MikroTik App
 
james21
newbie
Topic Author
Posts: 47
Joined: Sat May 19, 2007 2:49 pm

any one help for routing??

Wed Dec 26, 2007 3:57 pm

hi all
i think this is very simple for all MT guru's i need little bit help.


i have to provide internet connection from C1 to C2.

base station side i m using Compact Flash (Level 6).

so any one help me for following network setup:
i m using ip address just for example.
You do not have the required permissions to view the files attached to this post.
 
User avatar
carlosmoz
just joined
Posts: 11
Joined: Thu Dec 06, 2007 2:55 pm

Re: any one help for routing??

Wed Dec 26, 2007 5:17 pm

HI,
Where is the public Ip? in a PC or a modem that has an interface towards your network that you can change ...

Because u need to have an IP of ether1. u can use a classe C like 172.30.1.0/24 to do all and still save some IPs

starting the PC with public Ip. Must be 172.30.1.1/30 that connects to your C1 ether port that will be 172.30.1.2/30
then C1 wlan is 172.30.1.5/30 that connects to S1 172.30.1.6/30. the other side S2 will be 172.30.1.9/30 and the wlan on C2 is 172.30.1.10/30. The ether of C2 is 172.30.1.13/30 and the PC (or other thing) must be 172.30.1.14/30.
On that PC gateway is 172.30.1.13 on C2 gateway is 172.30.1.9 on base station gateway is 172.30.1.5 and finally on C1 gateway is 172.30.1.1
On PC with publicIP add route 172.30.1.14 (PC at C2) gateway 172.30.1.2 , on C1 add route 172.30.1.14 gateway 172.30.1.6 at base station add route 172.30.1.14 gateway 172.30.1.10 .
At the public Ip machine u need to masquerade your internal Ips
I hope u can understand this.
 
james21
newbie
Topic Author
Posts: 47
Joined: Sat May 19, 2007 2:49 pm

Re: any one help for routing??

Wed Dec 26, 2007 6:54 pm

hi
first of all thanx for quick response.

i got the public ip from ATM cisco router.

according to ur conversation i have to give one connection from ATM to Mikrotik (C1) ethernet port???

but before i have to give public ip to mikrotik i have to put one HUB and
other HUB ports r connected to LAN.

public ip---->HUB---->MT C1--->(S1) Basestation (S2)---->MT C2
|
|
LAN

i hope u will help me again.

james
 
User avatar
carlosmoz
just joined
Posts: 11
Joined: Thu Dec 06, 2007 2:55 pm

Re: any one help for routing??

Wed Dec 26, 2007 7:55 pm

Hi James,

I didnt understood very well the public Ip side. Always remember that each SIDE of a connection must have an IP of the same network (unless u use pppoe or other L2 ). So , your ether of C1 MUST be on the same network. If the public Ip is delivery at C1 Ethernet than u dont need de 172.30.1.1 and 1.2 of my former reply

I hope that it is clear for u

CArlos
 
james21
newbie
Topic Author
Posts: 47
Joined: Sat May 19, 2007 2:49 pm

Re: any one help for routing??

Thu Dec 27, 2007 11:58 am

hi carlos

thanx again.

for example
i have one PUBLIC IP 212.x.x.x and i have MT router boards
so form where can i start??

just give me example plz so i can understand easily.

i hope u help me and i will success to esablish my network

james
 
User avatar
carlosmoz
just joined
Posts: 11
Joined: Thu Dec 06, 2007 2:55 pm

Re: any one help for routing??

Thu Dec 27, 2007 3:45 pm

Hi James,
put your public Ip on ether 1 of C1

U need to know gateway (PGW) and dns server(PDNS) from your public IP
At C1 the gateway will be your PGW and DNS the PDNS (at /ip/dns dont forget to click on "allow remote requests". on /Ip/firewall/nat put a rule srcnat action masquerade. before u go further see from a "new terminal window" if u have internet at C1. then do all the other routes and Ips as I told before. At the PC connected to C2 dont forget to put the DNS (can be the PDNS).

Regards
 
james21
newbie
Topic Author
Posts: 47
Joined: Sat May 19, 2007 2:49 pm

Re: any one help for routing??

Thu Dec 27, 2007 6:39 pm

thanx my dear.
 
james21
newbie
Topic Author
Posts: 47
Joined: Sat May 19, 2007 2:49 pm

Re: any one help for routing??

Sat Dec 29, 2007 4:51 pm

hi ,
i did according to u and i can ping it dns ip and public ip in client1 side.
i give rules in firewall according to u.
internet is not working client side.

Client1:
212.75.249.64/29---->ether2(public ip ) & Gateway=212.75.49.61
10.7.254.1/24---->wlan1
10.7.254.10/25----->ether1

routes: 0.0.0.0/0 10.7.0.1
10.7.254.0/24 212.75.49.61


Base station :

10.7.0.1/16---->wlan1

routes: 10.7.254.0/24 10.7.254.1
10.7.8.0/24 10.7.8.1


client2:

10.7.8.1/16---->wlan1
10.7.8.10/25---->ether1

routes: 0.0.0.0/0 10.7.0.1

so plz can u tell me how can client2 get internet connection ???

i really need help plz

regards
james

Who is online

Users browsing this forum: No registered users and 8 guests