Community discussions

MikroTik App
 
networkrevolt
newbie
Topic Author
Posts: 25
Joined: Sun Sep 12, 2021 5:30 am

Public IP routing

Mon Apr 11, 2022 6:07 pm

Hello this may be easy ? but our isp give use a ip to use on our router 50.231.92.xx/30. and we set that to our ccr2004, They give use 50.221.144.xx/29 and 50.231.91.xx/30 and told me that 50.231.92.xx/30 will be our gateway (CCR2004). how can i set this up to pass the ip to servers. the CCR is has a bridge setup and some vlans but other then that it is basic.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 10850
Joined: Mon Dec 04, 2017 9:19 pm

Re: Public IP routing

Mon Apr 11, 2022 9:15 pm

You will get packets for the .144.xx/29 and .91.xx/30 from the ISP; it depends on you how you organize your internal network. If you want to assign all 12 addresses to servers in your network, you have to use a special setup where the address at the 2004 end will be a private one and the public one will be assigned as a/32 one to the server; the particular configuration depends on the operating system of the server, at the 2004 side, it would be
/ip address add address=10.0.0.1/32 network=50.231.91.3 interface=etherX.

If you want it simple, assign the 50.213.91.1/30 to etherX, 50.213.91.2/30 to the server, so you spend 4 addresses for a single server. With the /29, you spend 8 addresses for 5 servers this way.

So the .92.x is a gateway for the 2004; for the servers, the gateway addresses will be the private ones in the first case, and one out of each of the two subnets (.91. and .144.) in the second case.
 
kevinds
Long time Member
Long time Member
Posts: 656
Joined: Wed Jan 14, 2015 8:41 am

Re: Public IP routing

Wed Apr 13, 2022 3:19 am

Hello this may be easy ? but our isp give use a ip to use on our router 50.231.92.xx/30. and we set that to our ccr2004, They give use 50.221.144.xx/29 and 50.231.91.xx/30 and told me that 50.231.92.xx/30 will be our gateway (CCR2004). how can i set this up to pass the ip to servers. the CCR is has a bridge setup and some vlans but other then that it is basic.
This is really basic, this is the main function a router does..

From a blank configuration,

Put 50.231.92.xx/30 on the interface for your ISP.
Put 50.221.144.xx/29 (pick an address from the block, not the first or last) on another interface

Make a 0.0.0.0/0 route to the ISP's 50.231.92.xx/30 address.

Connect a server or servers to the /29 interface and assign them a static IP from the /29, using the IP you assigned to the CCR as the default gateway.

Done.

You can add other features if you want (DHCP), but above is the most basic and minimal configuration to get online.

There are definitely more complex ways to do this, but that is the start.

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot], kphf, Majestic-12 [Bot], sindy and 65 guests