FibreData GPON

14
FibreData GPON Service configuration with Mikrotik www.televes.com

Transcript of FibreData GPON

Page 1: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 1

FibreData GPONService configuration with Mikrotik

FibreData GPONService configuration with Mikrotik

www.televes.com

Page 2: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 2

FibreData GPONService configuration with Mikrotik

▸ IntroductionMost of the installations associated with a GPON network have a Mikrotik router for network administration.The basic steps required to create a service using a Mikrotik router are described below.The multiple functions and tools included in the Mikrotik OS (RouterOS) are widely documented on the Internet.

The brand’s official website is: https://wiki.mikrotik.com/

This guide will use one of the configuration methods for con-figuring a Mikrotik router: the Winbox application running on Windows.Winbox may be downloaded from:https://mikrotik.com/download

▸ 1 - First stepsRight out of its original packaging, a Mikrotik router - depend-ing on the model - has a default configuration equipped with a DHCP server available in all the ports except for ETH1, which is considered as a WAN port.

It is recommended that the default configuration is removed, since besides the DHCP server, it also includes Firewall rules and Bridge configurations.When connecting a computer equipped with a DHCP client, Winbox displays the following screen:

•Login: admin•Password:

Page 3: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 3

FibreData GPONService configuration with Mikrotik

The method for accessing a router is either via IP or via MAC. If the router assigns an IP to the computer running Winbox, the method used will be IP connection. If the router doesn’t have any config-ured option and therefore does not assign any IP to the computer where the configuration will be carried out, access will have to be done via MAC.To select one of the methods, we simply need to put the mouse cursor over MAC or over IP.

The following screen shoes the MAC connection. When the router is accessed for the first time, it will ask whether the default configuration should be adopted or removed.As mentioned earlier, the second option is better. When this option is selected, the router restarts and displays the home screen again, but without the IP (since it doesn’t have a DHCP server anymore).In this state, the connection method used to connect with the router is MAC.

Default configuration Removing the default configuration

▸ 2 - VLAN creationIn GPON traffic is segmented, so each service has to be propagated over a VLAN.In addition to creating the VLAN in the OLT, the VLAN may be cre-ated by means of an external device like a switch or a router, which allows for a more comprehensive management.In this document, a VLAN will be registered, linked to a sub-net-work, and assigned a DHCP server.

A VLAN has to be created in a physical interface. In the example, a VLAN will be created with TAG 100 (VLAN100) in the Eth2 interface.

•Interfaces (1)•VLAN (2)

•+ (3)

The data to be filled in the New Interface window are the TAG associated with the service and the physical interface.The name of the physical interface is up to the network administra-tor to decide, however it is advisable that he/she indicates the tag and the physical interface. In the example, a VLAN was created with identification ETH2_VLAN100_INTERNET, which includes the name of the service associated with the VLAN.

Page 4: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 4

FibreData GPONService configuration with Mikrotik

1 23

Name: VLAN identificationVLANID: Tag usedInterface: Physical interface where the VLAN is

Once created, a screen displays all the VLAN data:

Page 5: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 5

FibreData GPONService configuration with Mikrotik

▸ 3 - BridgeSometimes a VLAN needs to be associated with other physical interfaces. For example, if the sub-network of the INTERNET ser-vice involves other interfaces (e.g. to connect a server associated with the mentioned sub-network), creating a Bridge between the VLAN and the physical interfaces is necessary.

Creating a Bridge is equivalent to creating a new interface.

To do this:

•Bridge (1)•Bridge (2)

•+ (3)

The displayed window asks for the bridge name. In this case, the name of the associated service (INTERNET) will be used.

1 23

Page 6: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 6

FibreData GPONService configuration with Mikrotik

Once the Bridge is created, its physical and virtual ports have to be associated to it. In this example, a Bridge will be created between VLAN100 and the physical interface Eth3 (where a server or any other device associated with the Internet sub-network would be connected).To do this, we need to access:

•Ports

•+The window displays the ports that were created. Note that VLAN100 is already treated as yet another interface.

The ports that make the Bridge are added.

Page 7: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 7

FibreData GPONService configuration with Mikrotik

▸ 4 - DHCP serverIf the sub-network requires a DHCP server, it needs to be associat-ed with the Bridge that was previously created.

The following aspects have to be considered when creating a DHCP server:

•The server requires a “Gateway” interface associated with an IP.

•The server requires a pool of addresses for the devices as-sociated with the sub-network.

•The server has to be integrated within a sub-network identified by an IP.

All these aspects need to be specified in a list of IP addresses for use.

In the example, a DHCP server will be created, associated with network 192.168.10.0/24 and with a 192.168.10.10 - 192.168.10.200 POOL.

To assign an address to the interface we are going to use as gate-way, we need to access:

•IP (1) •Addresses

1

Gateway IP Interface functioning as

Page 8: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 8

FibreData GPONService configuration with Mikrotik

To create the POOL:•IP (1) •Pool •+

1

POOL nameFirst and last IP addresses

When creating the server, the previous steps have to be linked.•IP (1) •DHCP Server •+

Server name Gateway interface Associated

Page 9: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 9

FibreData GPONService configuration with Mikrotik

The network address is entered in:

•IP •DHCP Server •Networks •+

Network Gateway IP Mask

At this point, the server would already be propagating IP through the VLAN100 created in Eth2 and through Eth3, in other words, through the ports that make the Bridge. Obviously, in order to check that the IPs are actually delivered through VLAN100, the computer has to be equipped with a VLAN100 virtual interface as-

sociated with the network card.In Linux, this step is relatively easy. The screen shows how the in-terface associated with VLAN100 is assigned one of the IPs in the POOL.If the computer was connected to Eth3, it would be assigned an IP

IP assigned to the virtual interface (VLAN100) of a PC connected to Eth2 IP assigned to a PC connected to Eth3

Page 10: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 10

FibreData GPONService configuration with Mikrotik

To check that the router is actually assigning IPs in the sub-net-work, we need to use:

PI •DHCP Server •Leases

where all the assigned IPs display, as well as the data associated with the devices to which they were assigned.

▸ 5 - DHCP clientThe service we are using as an example requires Internet access. For a sub-network to have Internet access, the router must have an interface connected to the Internet. The sub-network of the INTER-NET service and the WAN interface will be associated by means of a Firewall rule.The WAN interface connected to the Internet access must have an

IP in the same network as the device providing it access (the ISP router). That IP may be static or dynamic, and use a DHCP, PPPoE or other client.

In the case we are presenting, the router will be assigned a WAN IP from the ISP via DHCP. The WAN interface is Eth1.

•IP •DHCP Client •+

WAN inter-

Page 11: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 11

FibreData GPONService configuration with Mikrotik

After a while, the router will be assigned an IP by the DHCP server of the ISP

WAN IP

These steps allow the configuration of interfaces and addresses, but there is still no link between the WAN and the Bridge associat-ed with the INTERNET service. The link is done by means of a Firewall rule called NAT MASQUER-ADE:

•IP •Firewall •NAT •+

The rule we have to configure is:•Chain: scrnat •Out Interface: Eth1 •Action •Action: Masquerade

At this point, there should be Internet connectivity from a PC connected to a Bridge associated with the INTERNET service. The basic test to verify this is to ping Google (8.8.8.8):

Page 12: FibreData GPON

This step does not guarantee Internet access through a URL since addresses have to be translated by means of a DNS service.Ideally the DHCP server of the ISP should dynamically assign the

Dynamic DNS

DNS addresses. Otherwise, the DNS addresses should be entered manually.In this example, the first option is used:

At this point, there should be Internet connectivity through DNS. The basic test for this is to ping Google (www.google.es):

Page 13: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 13

FibreData GPONService configuration with Mikrotik

Notes

Page 14: FibreData GPON

COMMUNICATIONS INFRASTRUCTURES SALES DEPT. 2017 © Copyright, Televés S.A. 14

FibreData GPONService configuration with Mikrotik

TELEVES INTERNAL USE

www.televes.com

www.televes.com