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.
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.
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.