Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




6167 posts

Uber Geek
+1 received by user: 2633

Moderator
Trusted
Subscriber

Topic # 205740 25-Nov-2016 01:45
19 people support this post
Send private message quote this post

I've lost count on how many times I've been asked to write a tutorial however because my current router has a rather complex configuration on it I could never get a chance to do it. Truth is, the Edgerouter has to be one of the most rock solid routers I've ever used and in the 2 years I've had it, it's never needed a complete reconfigure. Apologies for it taking a while to come up with a guide (I've had Earthquakes, flooding as well as work and family commitments to adhere to).

 

So, a huge thanks to Go Wireless for providing me an Edgerouter PoE to both have a general play around with and write a guide. Now, both the Edgerouter PoE and the Edgerouter Lite are essentially the same router so this guide covers both of those (as well as the big brothers).

 

Configuration Guide Parameters:

 

This configuration will assume you're on a UFB / Vodafone FibreX connection - for VDSL / ADSL connections it is advisable to get a Draytek DV130 to put in bridge mode. I won't be writing a guide for this as I simply don't have any way to test anymore.

 

Getting Started:

 

Once you get your new EdgeRouter before you plug it in use your existing internet connection and navigate to the Ubiquiti Firmware site to grab the latest version of the firmware.

 

1) Connect your Edgerouter to your PC / Switch via "eth0" - leave your ONT out of it for now. The Edgerouter will take up-to 5mins to initially boot.
2) Set an IP on your computer in the 192.168.1.0/24 range:

 

Click to see full size

 

2) Navigate to https://192.168.1.1 in your web browser (Chrome or Firefox) - since the Edgerouter uses a self signed certificate you can ignore the certificate warning.
3) Login with username + password ubnt. We'll be changing this.
3) When it asks you to do the "Basic Setup" wizard we'll be clicking "No" just at the moment. It just brings you into the Wizards screen.
4) If you're needing to update your firmware click "System" and scroll down to "Upload system image" - upload the file you've prepared earlier. When the router is done uploading it'll ask nicely if it can reboot to apply the firmware.

 

Bring in the Wizard!

 

Now you've got your Edgerouter on its latest firmware and you're back in the web interface you can now wrangle the Wizards within. Back when I first set up my Edgerouter we never had these so honestly this generation should be grateful.

 

1) Click on Wizards up near the top - it'll bring you to this screen:

 

Click to see full size

 

2) We'll be running the WAN+2LAN2 wizard. My configuration is for UFB / DHCP over VLAN 10 (same as Orcon and Vodafone FibreX) however I'll also show you how to do PPPoE. This wizard is really straight forward. For the Edgerouter PoE there are some additional options relating to ports 2,3,4 of which Edgerouter Lite users can disregard.

 

For UFB over IPoE (including Vodafone Fibre X):

 

Internet Connection Type: DHCP
VLAN: Yes, your internet connection is on a VLAN - tick this box and your VLAN ID is 10.
Enable the default firewall.
Do not tick Bridging - this will severely hinder the performance of the Edgerouter.

 

For UFB / VDSL / ADSL PPPoE:

Internet Connection Type:
PPPoE (enter your ISP provided account name + password. BigPipe + Spark has to be anything but blank for both)
VLAN: If you're on BigPipe, bridging with a Draytek or on an ISP that doesn't offer VLAN then keep this unticked, otherwise change this to VLAN 10.
Enable the default firewall.
Do not tick Bridging - this will severely hinder the performance of the Edgerouter.

 

Edgerouter PoE users:

 

Configure your LAN Ports eth2 to eth4 - we'll be using 192.168.2.1/24 for this guide with eth1 as our primary LAN. These interfaces are switched in hardware and so you can use these for your main network.

 

Once completed your configuration should look something like this:

 

Click to see full size

 

Hit Apply - a prompt will come up asking if you're sure.

 

Click to see full size

 

The router will ask to reboot to apply its configuration - like a good router you need to confirm 3x before it'll actually reboot.

 

Getting Internet:

 

Now, you'll want to connect your ONT, that Vodafone "CNT" (Cable Network Terminal - now we can see why they didn't call it that) or your Draytek to the router:

 

eth0: ONT, CNT or Modem.
eth1: Your switch.
eth2-eth4: Unused (unless if you're using the Edgerouter PoE you'll want to connect your AP to this).

 

Bug Warning: In the current Edgerouter firmware you won't get an IP from your internet provider if you're using VLAN tagging. The fix is simple, next to "Internet" on the main screen when you login click Actions, Config and then simply press Save. An IP will come rolling in. If you're on the PPPoE connection you'll just want to hit save on your "eth0.10" connection.

 

Secondary Bug Warning: If you're using VLAN tagging also you'll note you'll have an IP however be unable to access the internet. Go under Firewall/NAT, NAT the under the rule "masquerade for WAN" click Actions - Config. Change the Outbound interface to either your PPPoE connection or your VLAN connection (for IPoE):

 

Click to see full size

 

When you hit Save you'll suddenly have internet.

 

Additional things:

 

You'll note that doing a Speedtest you'll get really really poor speeds like this:

 

 

You can see this in the console if you type "show ubnt offload".

 

The reason is the wizards don't enable offloading by default. Open up the Console (top right), login with the same user you use for the WebUI and type these direct into the terminal:

 

configure
set system offload ipv4 vlan enable
set system offload ipv4 pppoe enable
commit
save
exit

 

Here is a Speedtest taken directly after those commands (no reboot required):

 

 

Port Forwarding + Hairpin NAT:

 

Something you'll also want to do is select your WAN interface under the Port Forwarding screen for Hairpin NAT. Select this beside "WAN Interface" and add your LAN interfaces under here. From this screen it is straight forward to enable Port Forwarding. Hit Apply once you're done.

 

UPnP:

 

do not recommend enabling this however if you must for any reason you can find this under the Wizards tab. I would always recommend using port forwarding instead of this so you don't end up as a part of a massive DDOS attack.

 

Firewall:

 

It is always worth going into Firewall/NAT and looking at your Firewall Policies to ensure you've got the correct interfaces enabled. Check these:

 

Click to see full size

 

IPv6:

 

Note: This is only tested on BigPipe but may work with other providers. You can't enable this in the WebUI so jump into the console.

 

PPPoE Configuration:

 

Clean up your old configuration first:

delete interface eth0 pppoe 0 dhcpv6-pd
delete interface eth0 pppoe 0 ipv6
delete interface eth1 ipv6
commit
save

Then set dhcpv6-pd up on your WAN interface (eth0 pppoe 0):

set interfaces ethernet eth0 pppoe 0 ipv6 enable
edit interfaces ethernet eth0 pppoe 0 dhcpv6-pd pd 0
set prefix-length /60
set interface eth1 host-address ::1
set interface eth1 prefix-id :0
set interface eth1 service slaac
top
commit

If you're wanting eth2 also then basically repeat with "eth2 prefix-id :2" and so-on. If you've got your own internal DNS you're wanting to use you'll need to run "set no-dns" above also.

Set a default route:
set protocols static interface-route6 ::/0 next-hop-interface pppoe0
commit
save

 

For Firewalling since I don't want to make a massive post the firewall configuration I use is available on https://murfy.nz/files/er_v6.txt - Don't just copy and paste this, ensure it is going to work for you before using it. I personally use a little bit of a different configuration since I have different needs however this configuration will just enable a basic firewall that drops all incoming except related and allows ICMPv6 (ping). You'll need to reboot your Edgerouter after configuration. I've found it doesn't quite behave as expected until a reboot with IPv6.

 

IPoE:

 

This is a little easier... We're assuming eth0 is your WAN interface:

 

edit interfaces ethernet eth0 dhcpv6-pd pd 0
set prefix-length /60
set interface eth1 host-address ::1
set interface eth1 prefix-id :0
set interface eth1 service slaac
top
commit
save

 

For firewalling use your best judgement: https://murfy.nz/files/er_v6.txt

 

For Vodafone FibreX you'll need to add the rules on the vif 10 interface like so (assuming your internet comes via eth0 then edit and apply the firewall rules:

 

edit interfaces ethernet eth0 vif 10 dhcpv6-pd pd 0
set prefix-length /60
set interface eth1 host-address ::1
set interface eth1 prefix-id :0
set interface eth1 service slaac
top
commit
save

-----
If you've got any questions then feel free to fire away below. My record during this tutorial of the Chrome Dinosaur game is 8296.

 

Last edited: 01/05/2017




Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Community UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
1412 posts

Uber Geek
+1 received by user: 122

Trusted

  Reply # 1677146 25-Nov-2016 07:14
2 people support this post
Send private message quote this post

I will add how to enable SNMP, and use Grafana and collectd to make pretty dashboard...

 

And the teaser....

 

Click to see full size





CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


184 posts

Master Geek
+1 received by user: 18

Subscriber

  Reply # 1677156 25-Nov-2016 08:09
Send private message quote this post

nice..looking forward to more tutorials


 
 
 
 


1407 posts

Uber Geek
+1 received by user: 229

Trusted
Subscriber

  Reply # 1677161 25-Nov-2016 08:35
Send private message quote this post

Great guides; edging closer to one of these but want to see what the HG659 runs like on my cable for a few weeks before I choose to swap.





________
AK



6167 posts

Uber Geek
+1 received by user: 2633

Moderator
Trusted
Subscriber

  Reply # 1677430 25-Nov-2016 13:57
Send private message quote this post

mentalinc:

 

I will add how to enable SNMP, and use Grafana and collectd to make pretty dashboard...

 

 

With SNMP you'll want to set it to read only mode (there is a button under System --> SNMP that'll enable it with full RW access of which you don't want). The Ubiquiti guide Here has what you need. Grafana is something I've been meaning to play around with so watch this space.





Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Community UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


225 posts

Master Geek
+1 received by user: 37


  Reply # 1677542 25-Nov-2016 17:53
Send private message quote this post

Great - thanks for that. Just a note for those who are running a VOIP line (I've got an SPA2102 attached to the router for a WXC/Vodafone Next VFX line) that you need to disable the SIP helper, so from the CLI enter these commands:

 

configure

 

set system conntrack modules sip disable

 

commit

 

save

 

exit

219 posts

Master Geek
+1 received by user: 19


  Reply # 1678636 28-Nov-2016 09:47
Send private message quote this post

Quick question.  For the Edgerouter PoE, can you use eth2 - eth4 on the same subnet, without software bridging?  As opposed to the ER Lite, where you would just use one port.




6167 posts

Uber Geek
+1 received by user: 2633

Moderator
Trusted
Subscriber

  Reply # 1678672 28-Nov-2016 10:24
Send private message quote this post

Earbanean:

 

Quick question.  For the Edgerouter PoE, can you use eth2 - eth4 on the same subnet, without software bridging?  As opposed to the ER Lite, where you would just use one port.

 

 

Yes - eth2-4 is connected to an internal switch. You've essentially got the same 3 port configuration with one of those ports being a switch.





Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Community UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


219 posts

Master Geek
+1 received by user: 19


  Reply # 1678703 28-Nov-2016 11:06
Send private message quote this post

Thanks.  Also, is the PoE on the ER PoE suitable for 802.3af powered devices?  e.g. the Cambium E400s


1412 posts

Uber Geek
+1 received by user: 122

Trusted

  Reply # 1678707 28-Nov-2016 11:09
Send private message quote this post

Earbanean:

 

Thanks.  Also, is the PoE on the ER PoE suitable for 802.3af powered devices?  e.g. the Cambium E400s

 

 

No. Ubiquity has their own PoE implementation.





CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


59 posts

Master Geek
+1 received by user: 3


  Reply # 1685875 10-Dec-2016 20:20
Send private message quote this post

thanks for the tutorial, worked a treat, well almost, not that I need it, but when I try do the offload bit, I get an error (see screen shot below) 

 

 

Any idea why, and should be I be concerned?

 

 

 

 


59 posts

Master Geek
+1 received by user: 3


  Reply # 1685878 10-Dec-2016 20:33
Send private message quote this post

Might have found the answer with bit more googling....

 

 

 

Only offload hwnat (since 1.8.5) and offload ipsec (since 1.9.0) are available for ER-X. Other offloads only apply to ER series.

 

then

 

Note that enabling hwnat offload on the ER-X platform also includes offload for NAT, forwarding, PPPoE, VLAN, etc. 

 

 

 

so 

 

configure

 

set system offload hwnat enable

 

commit

 

save

 

exit

 

 

 

that worked, again, given I don't have a 1gb Internet connection, a mute point :-)




6167 posts

Uber Geek
+1 received by user: 2633

Moderator
Trusted
Subscriber

  Reply # 1685880 10-Dec-2016 20:36
Send private message quote this post

Cheers @nicmair! I've never had any experience with the Edgerouter-X but good to see offloading is available now. Would be interested to test what performance is like on a Gigabit connection.





Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Community UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


1 post

Wannabe Geek


  Reply # 1685922 10-Dec-2016 23:25
Send private message quote this post

Thanks heaps for this. I got an EdgeRouter Lite ERLite-3 today after my churn from 2degrees 100/20 to Bigpipe full speed. 

 

I used your tutorial to get setup (never used an Ubiquiti before) and it worked a charm. The ERLite seems to be a pretty great device for the price! 




6167 posts

Uber Geek
+1 received by user: 2633

Moderator
Trusted
Subscriber

  Reply # 1685935 11-Dec-2016 03:40
Send private message quote this post

eclipse:

 

Thanks heaps for this. I got an EdgeRouter Lite ERLite-3 today after my churn from 2degrees 100/20 to Bigpipe full speed. 

 

I used your tutorial to get setup (never used an Ubiquiti before) and it worked a charm. The ERLite seems to be a pretty great device for the price! 

 

 

Glad it worked for you! Thanks for the feedback.





Michael Murphy | https://murfy.nz
Want to be with an epic ISP? Want $20 to join them too? Well, use this link to sign up to BigPipe!
The Router Guide | Community UniFi Cloud Controller | Ubiquiti Edgerouter Tutorial


1412 posts

Uber Geek
+1 received by user: 122

Trusted

  Reply # 1686301 12-Dec-2016 07:45
Send private message quote this post

Should I be able to connect a Cisco SPA112 directly to an eth port on the ERL and have it able to access the internet?

 

I can set it up so that it gets an IP address via DHCP, however it's not accessible from the other networks and doesn't register online?

 

What config have I got wrong?

 

thanks





CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8
View this topic in a long page with up to 500 replies per page Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

NotPetya ransomware attack, New Zealand view
Posted 28-Jun-2017 15:07


Security concerns reach new peak, Unisys Security Index
Posted 27-Jun-2017 14:11


Behind Spark’s slow-burn 4.5G plan
Posted 26-Jun-2017 16:23


Red Hat unveils production-ready open source hyperconverged infrastructure
Posted 23-Jun-2017 22:10


Whatever ailed Vodafone broadband … seems to be fixed
Posted 23-Jun-2017 14:10


VMware NSX Meets Stringent Government Security Standards with Common Criteria Certification
Posted 22-Jun-2017 19:05


Brother launches next-generation colour laser printers and all-in- ones for business
Posted 22-Jun-2017 18:56


Intel and IOC announce partnership
Posted 22-Jun-2017 18:50


Samsung Galaxy Tab S3: Best Android tablet
Posted 21-Jun-2017 12:05


Wellington-based company helping secure Microsoft browsers
Posted 20-Jun-2017 20:51


Endace delivers high performance with new 1/10/40 Gbps packet capture card
Posted 20-Jun-2017 20:50


You can now integrate SMX security into Microsoft Office 365, Google and other cloud email platforms
Posted 20-Jun-2017 20:47


Ravensdown launches new decision-making tool HawkEye
Posted 19-Jun-2017 15:38


Spark planning to take on direct management of all consumer stores
Posted 19-Jun-2017 10:03


Qrious acquires Ubiquity
Posted 14-Jun-2017 12:21



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.