(Changed ROS versions required.)
= Overview =
Here we will build a basic configuration for RouterOS. The examples are relevant for ADSL (Be and BT) as well as FTTC/FTTP through AAISP.▼
▲Here we will build a basic configuration for RouterOS. The examples are relevant for ADSL (Be and BT) as well as FTTC/FTTP through AAISP.
With the exception of IPv6, the examples shown should work on any stable release. IPv6 requires versions prior to and including 3.17 or version 5.0rc7 onwards.▼
▲With the exception of IPv6, the examples shown should work on any stable release. IPv6 requires versions prior to and including 3.17 or version 5.0rc7 onwards.
We have an AAISP ADSL line with the following details:
*Routed IPv4 block = 192.0.2.0/28 (we will allocate 192.0.2.1 to the router)
*Routed IPv6 block = 2001:DB8::/48 (we will allocate 2001:DB8::/64 to the router)
Note that the IPv4 block 192.0.2.0/24 and the IPv6 block 2001:DB8::/32 are special blocks reserved for documentation (rfc5737 and rfc3849). Also note that A&A supply a /48 block of IPv6s by default and this example will only use the first /64 in this block.
= Default Config =
This example assumes that the router is at its default configuration with any example/demo/supplied settings removed. Further, it is assumed that your WAN (ADSL/VDSL/whatever modem) is plugged into interface 'ether1' and LAN into 'ether2'.
= Configuring Initial Basic Settings =
Set a password for the admin user:
<pre>/user set admin password=NEWPASSWORD</pre>
Define which services we want to run:
set telnet disabled=yes
set www-ssl disabled=yes
set api disabled=yes
set winbox disabled=no port=8291</pre>
And then which helpers we want. Usually you want none as they tend to get in the way!
<pre>/ip firewall service-port
set ftp disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes</pre>
Set IP addresses on LAN
<pre>/ip address add \
Set basic firewalling (all out, none in!)
<pre>/ip firewall filter
add action=accept chain=forward comment="LAN traffic can go anywhere" disabled=no in-interface=ether2
add action=accept chain=input comment="Related traffic" connection-state=related disabled=no
add action=accept chain=input comment=ICMP disabled=no protocol=icmpv6
add action=drop chain=input comment="Drop the rest" disabled=no</pre>
Then create the profile to use for PPPoE.
<pre>/ppp profile add \
Create the PPP interface.
<pre>/interface pppoe-client add \
This should create and bring up the PPPoE interface. Check the logs to make sure it does! However, you still won't have connectivity... Configure DNS:
<pre>/ip dns set \
And then configure routing:
<pre>/ipv6 route add \
Which should give you full connectivity. Note that you could skip the add routes bit by changing 'add-default-route' to 'yes' in the PPPoE interface definition. Adding routes manually is more flexible, but for a basic configuration probably isn't required.
Then, make sure IPv6 neighbour detection is configured properly.
<pre>/ipv6 nd remove [find]
/ipv6 nd add \
Set the time:
<pre>/system ntp client set \
/system clock set time-zone-name=Europe/London</pre>
= Next Steps, Bonding a Second Line =
To be continued.....