Community discussions

MikroTik App
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

help needed IP phone VLAN

Thu Sep 08, 2016 10:26 pm

Hello all,

It is not that I'm new to Mikrotik but I'm really not a specialist. Can someone help me on this?

I have a RB201 1UiAS-2HND-IN router on which I want to create a hybrid port that I would connect an IP phone and PC. I would have a PC connected to the phone switch and the Phone connected on router port Ether5 (let's say). My WAN is Ether1. The PC and phone would be on different LAN (PC on default 192.168.88.xxx and phone on 192.168.89.xxx) and ultimately I would like to prioritize the LAN for the phone ( I would add more phone later). The router is pretty much configured as it was out of the box so if you know this router you pretty much know my setup.

Can anyone help me?

Marc.
 
User avatar
kaptain46
just joined
Posts: 22
Joined: Thu Sep 18, 2008 1:27 pm
Location: Rho
Contact:

Re: help needed IP phone VLAN

Fri Sep 09, 2016 1:34 am

Hi,
I think that the better way to do it is setting your ether5 port as hybrid port.

Assign an IP to ether5:
/ip address add address=192.168.88.254/24 interface=ether5
and after create a VLAN (eg: VLAN101)
/interface vlan add name=ETH5-101 vlan-id =101 interface=ether5
/ip address add address=192.168.89.254/24 interface=ETH5-V101
For prioritize traffic on VLAN 101, you have to use mangle + queue.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: help needed IP phone VLAN

Fri Sep 09, 2016 1:45 pm

I wouldn't assign the 192.168.88.x address to port 5 directly, as there is a desire to connect more phones (possibly laptops) in the future.
I would just configure the VLAN as described and create a new bridge and add the newly create VLAN as member.
Put the 192.168.89.x address to the VLAN bridge, this makes it again easier to add more ports in the future.
Make sure your phone is using the same VLAN as you have created on the ether port.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Fri Sep 09, 2016 9:12 pm

Hello,

Many thanks for your responses. I have read carefully and understood I need to do this:

/interface vlan add name=ETH5-V101 vlan-id=101 interface=ether5
/interface bridge add name=bridgetel disabled=no
/interface bridge port add interface=ETH5-V101 bridge=bridgetel
/ip address add address=192.168.89.254/24 interface=bridgetel

Here's the results:

When I don't change the 802.1Q/VLAN setting and connect the phone to ETH5, it works and get IP 192.168.88.225
When I change the 802.1Q/VLAN setting to 101, restart and connect the phone to ETH5, it doesn't works and gets no IP.

I have provided screen capture to show you.

Any idea of what is wrong?

Thanks,
Marc.
You do not have the required permissions to view the files attached to this post.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Fri Sep 09, 2016 10:08 pm

Hello again,

I have changed the last line from:
/ip address add address=192.168.89.254/24 interface=bridgetel
to
/ip address add address=192.168.89.1/24 interface=bridgetel

and I went into DHCP server and pool as you can see in the new screen captures.

Now the phone gets an IP 192.168.89.247 but it is not able to communicate with the outside world.

Any idea of what is missing?
You do not have the required permissions to view the files attached to this post.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Tue Sep 13, 2016 12:10 am

Any help for why my phone is not able to get to the Internet?
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Tue Sep 13, 2016 9:09 pm

Anyone able to help on this?
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Wed Sep 14, 2016 9:34 pm

Any help would be greatly appreciated.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Fri Sep 16, 2016 4:57 pm

If anyone read this post, please give a hand. Thanks.
 
User avatar
karlisi
Member
Member
Posts: 473
Joined: Mon May 31, 2004 8:09 am
Location: Latvia

Re: help needed IP phone VLAN

Mon Sep 19, 2016 10:01 am

Have You srcnatted bridgetel? It is separate interface, check firewall rules for it. In general they should be the same as for bridge-local.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Mon Sep 19, 2016 8:35 pm

Hello karlisi,

Many thanks for your response. I don't see any natting specific to any bridge. But I think I have done it although it may not be done perfectly right. Please see attached pictures....

You may notice I have added a rule (12) for being able to communicate from my PC to the phone. But since the phone only gets an IP and remains unable to communicate, it is useless.

Can you see something wrong somewhere? Any other ideas?

You have no idea how much time I have spent trying to do this. All my attempts failed. :-(

Regards,
Marc
You do not have the required permissions to view the files attached to this post.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Mon Sep 19, 2016 8:50 pm

Hello again,

I have made this change without any success....
You do not have the required permissions to view the files attached to this post.
 
Rudios
Forum Veteran
Forum Veteran
Posts: 977
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: help needed IP phone VLAN

Tue Sep 20, 2016 10:28 am

Is your DHCP server supplying a router address
Go into DHCP-Server -> Network and check
There is probably the default entry for 192.168.88.0/24 with the corresponding router address (probably called gateway).
Add a new network entry for the 192.168.89.0/24 network with the correct gateway.
 
solteldotca
just joined
Topic Author
Posts: 10
Joined: Thu Sep 08, 2016 10:01 pm

Re: help needed IP phone VLAN

Tue Sep 20, 2016 11:16 pm

Hello all who helped on this,

Many many many many many thanks. The last comment from Rudios made the difference. I will come back later with a topic summary on how to do this in the hope of helping others.

Thanks again,
Marc.