2/24/2023 0 Comments Routeros netmap staticSo when you have a PPP interface on that device, you either can configure the interface name rather than an IP address as a gateway, or, if you need an IP address as a gateway for some reason, you can assign to each end of a PPP link an IP address not related in any way to the one assigned to the other end. The clean way is to use ppp interfaces (PPPoE, L2TP, PPTP) between the Mikrotik and the actual user of the IP address, because for PPP interfaces the very notion of network, broadcast, gateway IP is redundant, there is no or little practical use for these items (unless you use dynamic routing protocols but that's a different story). You can add or remove an IP address on a running interface freely and it does not affect operation of other addresses attached to that interface.īut what you'll need to do in particular differs significantly depending on the intended use of the addresses. So as said - until you get the information from the ISP how exactly you should use those addresses, there is no way to assist you with configuration. Some ISPs require that you use RIP or BGP to advertise the public IPs to them so that they could route them to you. you get assigned a private address on the PPPoE client and the ISP routes packets for all your public IP addresses via that PPPoE (and you have to handle all of them like above).you get one of the public IPs via PPPoE, the ISP routes packets for the other one via that PPPoE and you have to set that address up statically on some other interface (a port-less bridge) or just use src-nat and dst-nat rules to make use of that address, or.you have to run several PPPoE clients in parallel (but then the /30 is rarely the way to express that), or.So if you deliver a /30 using individual PPPoE connections, you can use all 4 addresses. PPPoE, on the other hand, doesn't need the network address, the broadcast address, and the gateway address: as it is a tunnel, the gateway device is "whatever listens at the remote end of the tunnel", so you don't need an IP address to identify it. So effectively only a single public IP to use and the 3 remaining ones wasted. If the ISP gives you a /30, which means 4 IP addresses, as a direct subnet, you'd end up with x.x.x.0 unusable for the network, x.x.x.3 unusable for the broadcast, x.x.x.1 or x.x.x.2 as the gateway at ISP end, x.x.x.2 or x.x.x.1 as the public address at your end. On Router2 such route is not required since LAN1 can be reached by default route.Each PPPoE connection can only assign a single IP address to the client - it is a Point to Point Protocol. It is required for clients from LAN1 to be able to reach clients on LAN2. If you look at configuration then you will see that on Router1 we added route to destination 192.168.2.0/24. Our goal is to create setup so that clients from LAN1 can reach clients from LAN2 and all of them can connect to internet. Router1 also connects one client to ether3. Router2 is connected to ether2 of Router1 and will act as a gateway for clients connected to it from LAN2. Lets make a simple routing setup illustrated in image belowĮther1 of Router1 is connected to ISP and will be the gateway of our networks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |