Community discussions

MikroTik App
 
glaurutis
just joined
Topic Author
Posts: 21
Joined: Tue Jan 31, 2006 5:34 pm

Route question

Sat Aug 04, 2007 11:11 pm

Hello, i have an /26 public ip (Internet adreess) and i need to make some change to give a /30 or /29 to any off my clients. To give her any public´s ip with the correct gateway.

First i make this:

/ ip address
add address=200.110.219.130/29 network=200.110.219.128 broadcast=200.110.219.135 \
interface=ether1 comment="" disabled=no
add address=200.110.219.189/30 network=200.110.219.188 broadcast=200.110.219.191 \
interface=ether2 comment="Notebook" disabled=no

/ ip route
add dst-address=0.0.0.0/0 gateway=200.110.219.129 scope=255 target-scope=10 comment="" disabled=no

You can see the static route but not dynamic because i use the export command.

I put the ip 200.110.219.190 in a notebook with gateway 200.110.219.189 and mask 255.255.255.252 but not nowrk, this machine dont have connection to internet. only can ping the gateway.

What i need to do or change to get the notebook have internet connection? i need to put some ip route rules or something?

Thanks in advance

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

Re: Route question

Sun Aug 05, 2007 3:07 am

Why subnet? Just allocate /29 addresses to customers as necessary and bridge the ethernet interfaces on the router. Subnetting /29 & /30 is inefficient as you're "losing" two addresses per subnet for the network and broadcast addresses.
 
glaurutis
just joined
Topic Author
Posts: 21
Joined: Tue Jan 31, 2006 5:34 pm

Re: Route question

Sun Aug 05, 2007 3:55 am

Is true i loose some ip apply /29 or /30 but i use this to apply some filters in each subnet and secure the wired network. I set up each different ip subnet im some eth´s (5 at the moment).

I need to know how can i make the rules to have ineternet in other eth´s but i don´t want to bridge this. in need to route every subnet by the correct gateway.

any suggestion?

Thanks

Gustavo
 
glaurutis
just joined
Topic Author
Posts: 21
Joined: Tue Jan 31, 2006 5:34 pm

Re: Route question

Mon Aug 06, 2007 7:56 pm

Seting a subnet /26 on interface Public (eth1) and /30 on interface Switch 1 (eth2) and bridge interface work correctly. But i want to set the route for every subnet without bridge the any interface.

Can i make this? How?

Thanks

Gustavo
 
valens
Trainer
Trainer
Posts: 244
Joined: Tue Jun 01, 2004 5:42 pm
Location: INDONESIA
Contact:

Re: Route question

Mon Aug 06, 2007 8:19 pm

From the router, can you ping 200.110.219.129?

If yes, maybe your ISP forgot to route the rest of your IP to your router.
Ask them to tracert to your LAN IP