Direct attaching a Ubiquiti Edge Router to a fibre network – confirm blog
Scrum Masters

Direct attaching a Ubiquiti Edge Router to a fibre network – confirm blog


I’m not a huge fan of the free-ish routers you obtain from your web service provider in Switzerland. The majority of gadgets are simply inexpensive “crap gadgets” and they do not have of any somewhat innovative function. For that reason I’m constantly choosing a Ubiquiti Edge Router!

I like Ubiquti a lot, as I have actually experienced their gadgets as rock strong (basically a minimum of) and their software application is rather good. If you’re an Ansible user, you can likewise automate the entire setup with it!

Web service providers in Switzerland

As pointed out previously, web service providers in Switzerland frequently offer complimentary routers or alike. And even if you choose to choose your own hardware, they frequently provide you an ONT (Optical Network Terminal) for your fiber web. Therefore, typically you need to link the service provider’s ONT to the fiber port and your charming router by means of Ethernet to the ONT.

This works as anticipated, however there’s a disadvantage. You have actually simply another gadget, another layer of intricacy, another thing that can stop working or malfunction from time to time. Believe me, I have actually existed and you do not wish to fix a FritzBox or alike!

So, if your router has an SFP user interface, then you may wish to link it by means of fiber SFP straight to the fiber network of your web service provider. In Switzerland, there are a number of them who enable you to do that.

iWay

I’m a bit prejudiced and I constantly choose iWay, due to the fact that:

  • They enable me to straight connect my fiber router formally (simply pointed out “direct connected” on your registration)
  • Their customer care gets along & & responsive, as they right away respond to the phone and responding to support tickets extremely quick
  • Their assistance is extremely excellent, never ever seen that on another Swiss web service provider up until now

My hardware

This is the hardware I’m utilizing to direct connect my router to the fiber network:

I believe this hardware needs to work for the majority of the Swiss web service providers/ OTO fiber adapters.

My setup

Here’s what I needed to set up to get the straight connected fiber router up & & keeping up iWay.

Firmware upgrade

Update the router firmware to variation 1.10.8 or later on. There are 2 factors to upgrade the firmware:

  • Security improvements (obviously)
  • Correct speed choice on the SFP port

Regrettably, leaving the SFP port on automobile negotation didn’t work for me, as the remote website (iWay or SAK) didn’t react effectively to it. The link didn’t wish to show up. The old firmware just permitted me to set the port to 100/full. After the firmware upgrade, I had the ability to choose 1000/full and I right away got a link!

User interface setup

On the Control Panel, set up the eth5 port as follows:

  • Enable: Examine
  • Address: Usage DHCP
  • MTU: 1500
  • Speed/Duplex: 1000/full ( crucial, Vehicle settlement will not work)

The matching CLI commands are:

 set user interfaces ethernet eth5 address dhcp
set user interfaces ethernet eth5 description WAN
set user interfaces ethernet eth5 duplex complete
set user interfaces ethernet eth5 speed 1000

NAT

In the Firewall/NAT tab under Port Forwarding, set up the following settings to setup the appropriate routing:

  • WAN user interface: eth5
  • LAN user interface: ( whatever your LAN user interfaces are)

Likewise in the Firewall/NAT tab however under NAT, include a brand-new Source NAT Guideline to masquerade your outbound traffic:

  • Description: AWAN masquerading
  • Enable: Examine
  • Outbound User Interface: eth5
  • Translation: Usage Masquerade
  • Procedure: All Procedures

The matching CLI commands are:

 set port-forward lan-interface switch0
set port-forward wan-interface eth5

set service nat guideline 5000 description 'WAN masquerading'
set service nat guideline 5000 log disable
set service nat guideline 5000 outbound-interface eth5
set service nat guideline 5000 type masquerade

Test connection

You ought to now see a public IP address on the eth5 user interface. To check the connectivty, you can do the following actions:

  • Run ping example.net from your shell
    • If that works, you’re all set to go
    • If that does not work, continue to the next action
  • Run ping 1.1.1.1 from your shell
    • If that works however not the above, then you may wish to inspect your DNS setup
    • If that does not work, continue to the next action
  • Ping 1.1.1.1 from the Edge Router (by means of WebUI on the top right corner or by means of SSH).
    • If that works however not the above, then you may wish to inspect your NAT guidelines
    • If that does not work, inspect the WAN port setup, your firewall software or talk to your web service provider

I ‘d suggest utilizing own DNS or Cloudfare’s DNS servers ( 1.1.1.1 && 1.0.0.1). You can likewise utilize Google’s DNS servers, however I’m not a huge fan of Google gathering and associating all your information!


Source link