I am new to networking and I am trying to chain two RouterOS routers (Hac ac’s).
I have one router working over PPPoE for both ipv4 and ipv6 (I had some help setting these up).
I am mostly interested in adding a second router connected to Ether4 of the first router and want to get this working over ipv6
[admin@MikroTik] /ipv6 address> print
Flags: X - disabled, I - invalid, D - dynamic,
G - global, L - link-local
# ADDRESS FROM-... INTER... ADV
0 DL fe80::6e3b:6bff:fe91:8dc8/64 bridge no
1 DL fe80::6e3b:6bff:fe91:8dc7/64 ether1 no
2 DL fe80::1/64 pppoe... no
3 G 2b03:8888:629d::1/64 v6_pool bridge
I understand that I have a DHCP server which allocates addresses from the the v6_pool
How do I add a route for router2 which is connected to Ethernet Port 4 of this router ?
How do ensure that devices connected to Router 2 can access the pppoe interface of router 1 and also have routes to devices connected to Router 1 ?
Remember that your IPv6 addresses are 100% public, routable addresses that can all reach the entire internet, and they can all BE REACHED by the entire internet (which is why IPv6 stateful firewall is very important - make sure that your pppoe router has some rules in the forward chain of ipv6 firewalls.)
So - once your main router gets a block from your ISP and puts the block into a pool, it can make allocations from that pool as you see fit. It can assign them to its own interfaces, or it can even route them to other routers in your network that request them, and the routing tables will be correct on both - automatically! No extra work!
So in router1, you’ll want to configure ipv6 dhcp-pd server on interface ether4 (unless ether4 is part of a LAN bridge or switch group, in which case use the LAN interface and not ether4 specifically)
In router2, you configure dhcp-pd client exactly like you did on router1, and assign an IPv6 address to router2’s lan interface “from-pool” = whatever you named the pool in router2.
Done.
If router2 has no ipv6 firewall forwarding filter rules, then everything will “just work.”
Your router 2 shouldn’t have a DHCPv6 server running on it’s upstream ether1 interface. Additionally, try to set use-peer-dns to yes.
/ipv6 dhcp-client set [ find where interface=ether1 ] use-peer-dns=yes
This should pull a DNS server into the downstream, rtr2, MikroTik. You’ll then want to forward that information to your IPv6 clients with ND or an IPv6 DHCP server. Here is how you’d adjust the default settings for IPv6 neighbor discovery to advertise DNS on rtr2.
/ipv6 nd set [ find default=yes ] advertise-dns=yes
Thanks for the responses, this was pretty easy in the end with ipv6. Can someone advise me on what I need to go to get ipv4 working ?
Router2 gets an ip address from Router1, I have set Router2 to be a DHCP server on Wlan1, but again DNS does not seem to be resolving …