LGH + hAP
Добавлено: 09 янв 2020, 13:01
Не могу согласовать Mikrotik LGH c hAP. Оба устройства пингуют друг друга - маршруты прописаны. Интернет даёт LGH, но до hAP он не доходит. С LGH 8.8.8.8 пингуется, например, а с hAP - нет. Прошу помочь.
Настройки LGH:
/ip dns
set servers=8.8.8.8,8.8.4.4
/interface ethernet
set [find name=ether1] name=LAN_1
/interface bridge
add name=LAN_Bridge
/interface bridge port
add bridge=LAN_Bridge interface=LAN_1
/ip address
add address=192.168.10.1/24 interface=LAN_Bridge network=192.168.10.0
add address=192.168.1.1/24 interface=LAN_1 network=192.168.1.0
/ip route
add comment="Route to SVR" dst-address=192.168.100.0/24 gateway=192.168.1.2
/interface lte
set [find name=lte1] name=LTE
/interface lte apn
set [find name=default] name=FixedIP apn=internet authentication=chap password="" user=""
/interface lte set LTE apn-profiles=FixedIP
/ip firewall nat
add comment="Internet" action=masquerade chain=srcnat out-interface=LTE
add comment="DMZ" chain=dstnat in-interface=LTE action=dst-nat to-addresses=192.168.100.1
Настройки hAP:
/ip dns
set servers=8.8.8.8,8.8.4.4
/interface ethernet
set [find name=ether1] disabled=yes name="WAN"
set [find name=ether2] name="LAN_1"
set [find name=ether3] name="LAN_2"
set [find name=ether4] name="LAN_3"
set [find name=ether5] name="LAN_4"
/interface wireless security-profiles
set [find default=yes] supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name="Wireless_Protection" supplicant-identity="" wpa-pre-shared-key=123 wpa2-pre-shared-key=123
/interface wireless
set [find name=wlan1] disabled=no band=2ghz-b/g/n frequency=auto mode=ap-bridge name="WLAN_1" security-profile=Wireless_Protection ssid="SVR (2.4GHz)" wireless-protocol=802.11
set [find name=wlan2] disabled=no band=5ghz-a/n/ac frequency=auto mode=ap-bridge name="WLAN_2" security-profile=Wireless_Protection ssid="SVR (5GHz)" wireless-protocol=802.11
/interface bridge
add name="LAN_Bridge"
/interface bridge port
add bridge=LAN_Bridge interface=LAN_1
add bridge=LAN_Bridge interface=LAN_2
add bridge=LAN_Bridge interface=LAN_3
add bridge=LAN_Bridge interface=LAN_4
add bridge=LAN_Bridge interface=WLAN_1
add bridge=LAN_Bridge interface=WLAN_2
/ip pool
add name="DHCP_Pool" ranges=192.168.100.51-192.168.100.99
/ip dhcp-server
add address-pool=DHCP_Pool disabled=no interface=LAN_Bridge name="DHCP"
/ip dhcp-server network
add address=192.168.100.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.100.1
/ip address
add address=192.168.100.1/24 interface=LAN_Bridge network=192.168.100.0
add address=192.168.1.2/24 interface=LAN_1 network=192.168.1.0
/ip route
add comment="Route to LGH" dst-address=192.168.10.0/24 gateway=192.168.1.1
Настройки LGH:
/ip dns
set servers=8.8.8.8,8.8.4.4
/interface ethernet
set [find name=ether1] name=LAN_1
/interface bridge
add name=LAN_Bridge
/interface bridge port
add bridge=LAN_Bridge interface=LAN_1
/ip address
add address=192.168.10.1/24 interface=LAN_Bridge network=192.168.10.0
add address=192.168.1.1/24 interface=LAN_1 network=192.168.1.0
/ip route
add comment="Route to SVR" dst-address=192.168.100.0/24 gateway=192.168.1.2
/interface lte
set [find name=lte1] name=LTE
/interface lte apn
set [find name=default] name=FixedIP apn=internet authentication=chap password="" user=""
/interface lte set LTE apn-profiles=FixedIP
/ip firewall nat
add comment="Internet" action=masquerade chain=srcnat out-interface=LTE
add comment="DMZ" chain=dstnat in-interface=LTE action=dst-nat to-addresses=192.168.100.1
Настройки hAP:
/ip dns
set servers=8.8.8.8,8.8.4.4
/interface ethernet
set [find name=ether1] disabled=yes name="WAN"
set [find name=ether2] name="LAN_1"
set [find name=ether3] name="LAN_2"
set [find name=ether4] name="LAN_3"
set [find name=ether5] name="LAN_4"
/interface wireless security-profiles
set [find default=yes] supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name="Wireless_Protection" supplicant-identity="" wpa-pre-shared-key=123 wpa2-pre-shared-key=123
/interface wireless
set [find name=wlan1] disabled=no band=2ghz-b/g/n frequency=auto mode=ap-bridge name="WLAN_1" security-profile=Wireless_Protection ssid="SVR (2.4GHz)" wireless-protocol=802.11
set [find name=wlan2] disabled=no band=5ghz-a/n/ac frequency=auto mode=ap-bridge name="WLAN_2" security-profile=Wireless_Protection ssid="SVR (5GHz)" wireless-protocol=802.11
/interface bridge
add name="LAN_Bridge"
/interface bridge port
add bridge=LAN_Bridge interface=LAN_1
add bridge=LAN_Bridge interface=LAN_2
add bridge=LAN_Bridge interface=LAN_3
add bridge=LAN_Bridge interface=LAN_4
add bridge=LAN_Bridge interface=WLAN_1
add bridge=LAN_Bridge interface=WLAN_2
/ip pool
add name="DHCP_Pool" ranges=192.168.100.51-192.168.100.99
/ip dhcp-server
add address-pool=DHCP_Pool disabled=no interface=LAN_Bridge name="DHCP"
/ip dhcp-server network
add address=192.168.100.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.100.1
/ip address
add address=192.168.100.1/24 interface=LAN_Bridge network=192.168.100.0
add address=192.168.1.2/24 interface=LAN_1 network=192.168.1.0
/ip route
add comment="Route to LGH" dst-address=192.168.10.0/24 gateway=192.168.1.1