Настройка маршрутов в station bridge

Обсуждение ПО и его настройки
Ответить
vadim4chan
Сообщения: 2
Зарегистрирован: 27 июл 2020, 15:34

Здравствуйте.
Купил второй микротик домой, оба hap ac2, чтобы сделать wi-fi repeater. Настроил. Всё работает. Пишу сейчас из расширенной сети. Только вот если в сам микротик зайти, то в нём интернета нет и dns сервера не пингуются. Видимо что-то с роутингом. Сам я как видно не особый знаток сетей. Подскажите куда копать.
Вот конфигурация

Код: Выделить всё

# jul/27/2020 15:15:39 by RouterOS 6.44.5
/interface bridge
add admin-mac=C4:AD:34:C4:FD:39 auto-mac=no comment=defconf name=bridge
/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 name=\
    wlan_2G ssid=MikroTik-C4FD3D wireless-protocol=802.11
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk,wpa2-eap mode=dynamic-keys name=\
    wlan2-ASUS_5G-repeater supplicant-identity=MikroTik
/interface wireless
set [ find default-name=wlan2 ] adaptive-noise-immunity=ap-and-client-mode \
    band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX country=russia3 disabled=\
    no frequency=auto frequency-mode=regulatory-domain installation=indoor \
    mode=station-bridge name=wlan_5G security-profile=wlan2-ASUS_5G-repeater \
    ssid=ASUS_5G wireless-protocol=802.11 wmm-support=enabled
add disabled=no mac-address=C6:AD:34:C4:FD:3E master-interface=wlan_5G name=\
    wlan-repeater security-profile=wlan2-ASUS_5G-repeater ssid=ASUS_5G_EX
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/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=wlan_2G
add bridge=bridge comment=defconf interface=wlan_5G
add bridge=bridge interface=wlan-repeater
/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
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=\
    bridge
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=192.168.88.1
/ip dns static
add address=192.168.88.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
    ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
    ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    ipsec-policy=out,none out-interface-list=WAN
/ip upnp
set enabled=yes
/system ntp client
set enabled=yes primary-ntp=91.207.136.55 secondary-ntp=91.207.136.55
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
Ошибка пинга

Код: Выделить всё

[admin@MikroTik] > ping 1.1.1.1
  SEQ HOST                                     SIZE TTL TIME  STATUS                                                 
    0                                                         no route to host


vadim4chan
Сообщения: 2
Зарегистрирован: 27 июл 2020, 15:34

В общем ларчик просто открывался. Пришлось загуглить и вспомнить как работает роутинг. Шлюз по умолчанию у меня не был добавлен. Команда помогла

Код: Выделить всё

ip route add gateway=192.168.88.1


Ответить