Hi
I want to create two VLAN’s on the switch one for the Office and one for VOIP phones, then both VLAN’s should be able to break out to the internet via the RB951G.
I have spend hours trying to get the VLAN’s to pickup the DHCP from the router, I dont know what is wrong.
Both is setup with minimal configured on them
The code on the RB
/interface vlan
add interface=ether2 name=vlan10 vlan-id=10
add interface=ether2 name=vlan20 vlan-id=20
/ip pool
add name=dhcp_pool1 ranges=10.0.0.101-10.0.0.130
add name=dhcp_pool2 ranges=10.0.8.101-10.0.8.105
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=vlan10 name=dhcp1
add address-pool=dhcp_pool2 disabled=no interface=vlan20 name=dhcp2
/ip address
add address=10.0.0.100/24 interface=vlan10 network=10.0.0.0
add address=10.0.8.100/24 interface=vlan20 network=10.0.8.0
/ip dhcp-server network
add address=10.0.0.0/24 dns-server=10.0.0.100 gateway=10.0.0.100
add address=10.0.8.0/24 dns-server=10.0.8.100 gateway=10.0.8.100
/system leds
set 0 interface=wlan1
/system routerboard settings
then on the CRS
/interface ethernet
set [ find default-name=ether17 ] name=ether17-management
set [ find default-name=ether24 ] name=ether24-trunk
set [ find default-name=ether1 ] master-port=ether24-trunk
set [ find default-name=ether2 ] master-port=ether24-trunk
set [ find default-name=ether3 ] master-port=ether24-trunk
set [ find default-name=ether4 ] master-port=ether24-trunk
set [ find default-name=ether5 ] master-port=ether24-trunk
set [ find default-name=ether6 ] master-port=ether24-trunk
set [ find default-name=ether7 ] master-port=ether24-trunk
set [ find default-name=ether8 ] master-port=ether24-trunk
set [ find default-name=ether9 ] master-port=ether24-trunk
set [ find default-name=ether10 ] master-port=ether24-trunk
set [ find default-name=ether11 ] master-port=ether24-trunk
set [ find default-name=ether12 ] master-port=ether24-trunk
set [ find default-name=ether13 ] master-port=ether24-trunk
set [ find default-name=ether14 ] master-port=ether24-trunk
set [ find default-name=ether15 ] master-port=ether24-trunk
set [ find default-name=ether16 ] master-port=ether24-trunk
set [ find default-name=ether18 ] master-port=ether24-trunk
set [ find default-name=ether19 ] master-port=ether24-trunk
set [ find default-name=ether20 ] master-port=ether24-trunk
set [ find default-name=ether21 ] master-port=ether24-trunk
set [ find default-name=ether22 ] master-port=ether24-trunk
set [ find default-name=ether23 ] master-port=ether24-trunk
/interface ethernet switch egress-vlan-tag
add tagged-ports=ether24-trunk vlan-id=10
add tagged-ports=ether24-trunk vlan-id=20
/interface ethernet switch ingress-vlan-translation
add new-customer-vid=20 ports=ether18,ether19,ether20,ether21,ether22,ether23
add new-customer-vid=10 ports=ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16
/interface ethernet switch vlan
add ports=ether18,ether19,ether20,ether21,ether22,ether23 vlan-id=20
add ports=ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16 vlan-id=10
/ip address
add address=10.0.0.98/24 interface=ether17-management network=10.0.0.0
add address=10.0.0.1 interface=ether24-trunk network=10.0.0.1