Community discussions

MikroTik App
 
vania902
just joined
Topic Author
Posts: 3
Joined: Tue Apr 28, 2020 12:22 am

pleas help me

Tue Apr 28, 2020 12:27 am

i want Distribute Public IP Addresses to my LAN but i have one ISP dhcp ip 95.137.137.131. after buy additional ip address from provider 176.74.123.136/30 176.74.123.137-176.74.123.138. how config please help mee
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: pleas help me  [SOLVED]

Tue Apr 28, 2020 5:26 pm

It is always Best practice not to use your real Public IPs as an example...

Your ISP gave you a /30 Subnet Block, lets say X.Y.Z.136/30 ...
One of there addresses, usually the first one, so the 176.74.123.137 will be used by your ISP. The second one 176.74.123.138 must be used by you and setup on the Mikrotik...
It is really simple, set the address 176.74.123.138/30 on your eth1 interface, where your ISPs GW is connected, create a default route to 176.74.123.137 and finally create a src-nat rule where you src-nat to address 176.74.123.138...
 
vania902
just joined
Topic Author
Posts: 3
Joined: Tue Apr 28, 2020 12:22 am

Re: pleas help me

Wed Apr 29, 2020 3:29 am

It is always Best practice not to use your real Public IPs as an example...

Your ISP gave you a /30 Subnet Block, lets say X.Y.Z.136/30 ...
One of there addresses, usually the first one, so the 176.74.123.137 will be used by your ISP. The second one 176.74.123.138 must be used by you and setup on the Mikrotik...
It is really simple, set the address 176.74.123.138/30 on your eth1 interface, where your ISPs GW is connected, create a default route to 176.74.123.137 and finally create a src-nat rule where you src-nat to address 176.74.123.138...
You can see more concrete examples of me. For example command or other

thanks a lot
 
joegoldman
Forum Veteran
Forum Veteran
Posts: 767
Joined: Mon May 27, 2013 2:05 am

Re: pleas help me

Wed Apr 29, 2020 4:48 am

It is always Best practice not to use your real Public IPs as an example...

Your ISP gave you a /30 Subnet Block, lets say X.Y.Z.136/30 ...
One of there addresses, usually the first one, so the 176.74.123.137 will be used by your ISP. The second one 176.74.123.138 must be used by you and setup on the Mikrotik...
It is really simple, set the address 176.74.123.138/30 on your eth1 interface, where your ISPs GW is connected, create a default route to 176.74.123.137 and finally create a src-nat rule where you src-nat to address 176.74.123.138...
You make a lot of assumptions - in general it is more likely they were given a /30 via Framed-Route via their dynamic IP, in which case the OP has 2 options, they could place ALL of the IP's on the router as loopback or similar, and use NAT to nat them internally and address different servers, or if they want public IP direct on the servers they could place one of the IP's on their internal interface and use it like a normal /30 to other devices - this wastes an IP for GW and Broadcast though.
 
vania902
just joined
Topic Author
Posts: 3
Joined: Tue Apr 28, 2020 12:22 am

Re: pleas help me

Wed Apr 29, 2020 7:23 am

I try to do it with static routing as follows: ether1 ISP dhcp x.y.x.131/24, ether2 176.74.123.137/30
routing: add dst. address 176.74.123.136/30 Gateway: ISP dhcp router address: x.y.x.254
Client device: ether : IP 176.74.123.138 GW:176.74.123.137 Sub: 255.255.255.252 (have internet but i cant ping from other ISP client)

I'm very tired! :( :( :(
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: pleas help me

Wed Apr 29, 2020 5:29 pm

@vania902 with the only point of reference my experience, since i do not know all the details of your setup etc... you talk about a Public IP that is in a whole different subnet than the /30 block that your ISP gave you. So the first Public IP you mentioned, is most probably the IP that your ISPs modem-Router has...

Then they gave you the /30 block, one public for you and one static for them, they are more simply your next hop Router...
Also, i never said anything about DHCP client... and what is that /24 network ?

But...The best you could do since a lot of info are missing, talk with your ISP and ask them more details about the /30 subnet that they gave you.... Ask them if any of the /30 address is used by them or not...

The last time i had to configure a /30 subnet for a Client's Network that was the case, but avery ISP can implement things differently...
So, starting point is contact your ISP and get more details... Then let us know...

Who is online

Users browsing this forum: No registered users and 66 guests