Page 1 of 1

using public IP Addresses

Posted: Mon Oct 05, 2009 1:30 pm
by captainproton
Hey,

I want to use public IPs for my network:

I have a mikrotik router connected to a adsl Modem on eth1.
There is a pppoe client connecting dialing up to my ISP.
A gateway and public IP address is being automatically assigned.

Now my ISP is routing a xxx.xxx.xxx.0/26 public IP range to my ADSL connection.

I can add one of these public addresses on my mikrotik router and it can be pinged from another computer over the Internet.

What I would like to have is: all computers from my private network (connected to eth2 on MT) should get one of the public IPs. I do not want to use address mapping to map the public net to my private.

Any Idea?

Re: using public IP Addresses

Posted: Mon Oct 05, 2009 1:39 pm
by mrz
You can bridge public interface with ether2.

Re: using public IP Addresses

Posted: Mon Oct 05, 2009 1:57 pm
by captainproton
I created a new bridge. under 'ports' I added eth2 to the brigde but the PPPoE-Client Interface is not 'selectable' as another port. When also adding eth1 to the bridge, the PPPoE connection is terminated.

Re: using public IP Addresses

Posted: Tue Oct 06, 2009 11:30 am
by captainproton
anyone knows how to do that?

Re: using public IP Addresses

Posted: Tue Oct 06, 2009 1:38 pm
by captainproton
Ok, I found out how to do it.

The hint from mrz was working finally.

so here is how I did it:

- eth1 on DSL Modem
- PPPoE Client on eth1 with ISP username/password
- from my /26 subnet I added x.x.x.1/26 to eth1
- building a bridge and adding eth1 and eth2 to it.
- a users PC is given the address x.x.x.2 - Subnet Mask 255.255.255.192 - Gateway/DNS x.x.x.1

Works fine.

In addition I have added the bridge-filter
--> chain: forward , in-interf.: eth2 , MAC-Protocol-nr: PPPoE-Discovery , action: drop
to prevent users to build PPPoE connections accross the Mikrotik Router on my DSL Modem.