Hi I’m using a RB951G for a while and after I change ISP I’m trying to do a specific configuration without success.
My ISP is a triple service (internet, voice and TV).
Each of the services is delivered in a specific VLAN:
- Internet Vlan 100
- VOIP Vlan 101
- IPTV Vlan 105
I’m having the ISP equipment to handle VOIP and IPTV so I define a bridge with 2 port, one from the ONT the other to the ISP equipment. in that bridge a get a external IP.
/interface bridge
add name=bridge-sw1
add admin-mac=4C:5E:0C:B0:14:17 auto-mac=no name=bridge-sw2
/interface ethernet
set [ find default-name=ether1 ] name=eth1
set [ find default-name=ether2 ] name=eth2
set [ find default-name=ether3 ] name=eth3
set [ find default-name=ether4 ] name=eth4
set [ find default-name=ether5 ] name=eth5
/ip neighbor discovery
set eth1 discover=no
/interface vlan
add interface=bridge-sw1 l2mtu=1594 name=vlan-100-sw1 vlan-id=100
/ip pool
add name=dhcp ranges=192.168.88.100-192.168.88.120
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge-sw2 name=default
/interface bridge port
add bridge=bridge-sw1 interface=eth1
add bridge=bridge-sw1 interface=eth2
add bridge=bridge-sw2 interface=eth3
add bridge=bridge-sw2 interface=eth4
add bridge=bridge-sw2 interface=eth5
/ip address
add address=192.168.88.1/24 interface=bridge-sw2 network=192.168.88.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=\
vlan-100-sw1
/ip dhcp-server network
add address=192.168.88.0/24 dns-server=\
192.168.88.1,8.8.4.4,8.8.8.8 gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=casarouter
/ip firewall filter
add chain=input protocol=icmp
add chain=input connection-state=established,related
add action=drop chain=input in-interface=vlan-100-sw1
add chain=forward connection-state=established,related
add action=drop chain=forward connection-state=invalid
add action=drop chain=forward connection-nat-state=!dstnat connection-state=new \
in-interface=vlan-100-sw1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=vlan-100-sw1
With this configuration everything is running, I have internet access in port 3,4 and 5. The IPTV boxes as well as the phone are connect to the ISP equipement.
The question is that now I want to connect the IPTV box (VLAN105) to port 5.
The IPTV box should also get a address in the internal network.
packets with Vlan 105 tag should be delivered only on port 5 and the other packets should be handled normally. This would allow us to access the IPTV box from smartphone or pcs.
What changes should I do in order to achieve this?
thanks