I start the administration of mikrotik, I managed to configure vlan with dedicated DHCP
VLAN10 192.168.10.0/24
VLAN20 192.168.20.0/24
...
Everything works well, I have my addresses distributed on the correct vlan, the internet works but I have a 192.168.1.100 printer on the client's network which must be accessible from each vlan.
I have looked all over the forum and cannot find anyone with the same concerns.
when i type the following command in my mikrotik i always have timeout
ping 192.168.1.100 src-address = 192.168.10.1
here is my configuration:
Code: Select all
# dec/07/2021 11:37:48 by RouterOS 6.47.9
# software id = D9BC-BT45
#
# model = RBD52G-5HacD2HnD
# serial number = CDFC0E44F8C9
/interface bridge
add admin-mac=2C:C8:1B:C6:64:F0 auto-mac=no comment=defconf name=bridge \
vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] advertise=10M-full,100M-full,1000M-full
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1 \
password=xxxxxxxxx use-peer-dns=yes user=xxx@xxx.xxx
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
distance=indoors frequency=auto installation=indoor mode=ap-bridge ssid=\
MikroTik-C664F4 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
20/40/80mhz-XXXX distance=indoors frequency=auto installation=indoor \
mode=ap-bridge ssid=MikroTik-C664F5 wireless-protocol=802.11
/interface vlan
add interface=bridge name=vlan10 vlan-id=10
add interface=bridge name=vlan20 vlan-id=20
add interface=bridge name=vlan30 vlan-id=30
add interface=bridge name=vlan40 vlan-id=40
add interface=bridge name=vlan50 vlan-id=50
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp_pool_vlan10 ranges=192.168.10.10-192.168.10.90
add name=dhcp_pool_vlan20 ranges=192.168.20.10-192.168.20.90
add name=dhcp_pool_vlan30 ranges=192.168.30.10-192.168.30.90
add name=dhcp_pool_vlan40 ranges=192.168.40.10-192.168.40.90
add name=dhcp_pool_vlan50 ranges=192.168.50.10-192.168.50.90
add name=dhcp_pool6 ranges=192.168.1.10-192.168.1.90
/ip dhcp-server
add address-pool=dhcp_pool_vlan10 disabled=no interface=vlan10 name=\
dhcp_vlan10
add address-pool=dhcp_pool_vlan20 disabled=no interface=vlan20 name=\
dhcp_vlan20
add address-pool=dhcp_pool_vlan30 disabled=no interface=vlan30 name=\
dhcp_vlan30
add address-pool=dhcp_pool_vlan40 disabled=no interface=vlan40 name=\
dhcp_vlan40
add address-pool=dhcp_pool_vlan50 disabled=no interface=vlan50 name=\
dhcp_vlan50
add address-pool=dhcp_pool6 interface=bridge name=dhcp1
/snmp community
set [ find default=yes ] name=Gconvergence10
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=pppoe-out1 list=WAN
/ip address
add address=192.168.1.254/24 comment=defconf interface=bridge network=\
192.168.1.0
add address=192.168.10.1/24 interface=vlan10 network=192.168.10.0
add address=192.168.20.1/24 interface=vlan20 network=192.168.20.0
add address=192.168.30.1/24 interface=vlan30 network=192.168.30.0
add address=192.168.40.1/24 interface=vlan40 network=192.168.40.0
add address=192.168.50.1/24 interface=vlan50 network=192.168.50.0
/ip dhcp-client
add comment=defconf interface=ether1
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf gateway=192.168.1.254
add address=192.168.10.0/24 gateway=192.168.10.1
add address=192.168.20.0/24 gateway=192.168.20.1
add address=192.168.30.0/24 gateway=192.168.30.1
add address=192.168.40.0/24 gateway=192.168.40.1
add address=192.168.50.0/24 gateway=192.168.50.1
/ip dns
set allow-remote-requests=yes servers=91.211.64.100,91.211.64.116
/ip dns static
add address=192.168.1.1 comment=defconf name=router.lan
/ip firewall filter
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new disabled=yes in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface=pppoe-out1 out-interface-list=all
add action=dst-nat chain=dstnat dst-port=30443 in-interface=all-ppp protocol=\
tcp to-addresses=192.168.1.253 to-ports=443
/ip firewall service-port
set sip disabled=yes
/ip service
set telnet address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.0\
/16,91.211.65.102/32,192.168.1.0/24"
set ftp address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.0/16\
,91.211.65.102/32,192.168.1.0/24"
set www address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.0/16\
,91.211.65.102/32,80.14.61.235/32,192.168.1.0/24,192.168.10.0/24,192.168.2\
0.0/24,192.168.30.0/24,192.168.40.0/24,192.168.50.0/24"
set ssh address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.0/16\
,91.211.65.102/32,192.168.1.0/24"
set api address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.0/16\
,91.211.65.102/32,192.168.1.0/24"
set winbox address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.0\
/16,91.211.65.102/32,80.14.61.235/32,192.168.1.0/24,192.168.10.0/24,192.16\
8.20.0/24,192.168.30.0/24,192.168.40.0/24,192.168.50.0/24"
set api-ssl address="91.211.65.5/32,91.211.65.106/32,91.211.64.0/24,100.127.0.\
0/16,91.211.65.102/32,192.168.1.0/24"
/snmp
set contact=KOSC_FTTH enabled=yes location=NAT_CPE trap-generators=interfaces \
trap-interfaces=all
/system clock
set time-zone-name=Europe/Paris
/system identity
set name=XxX_xxx
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Kindly