View Single Post
Hei.

Har prøvd å følge guiden for en Mikrotik, men får ikke internett til å fungere engang. Noen som ser noen åpenbare feil i min konfig?

Fulgte guiden slavisk, bortsett fra at guiden brukte Bridge1 og jeg brukte Bridge.

Kode

# jun/11/2019 11:47:15 by RouterOS 6.44.3
# software id = 95UJ-BLUU
#
# model = 960PGS
# serial number = XXXXXXXXX
/interface bridge
add admin-mac=5C:6A:XX:XX:XX:XX auto-mac=no fast-forward=no name=IPTV-Bridge
add admin-mac=74:4D:28:48:BD:7F auto-mac=no comment=defconf igmp-snooping=yes \
    name=bridge
/interface ethernet
set [ find default-name=ether1 ] mac-address=5C:6A:XX:XX:XX:XX
/interface vlan
add comment=Phone interface=ether1 name=vlan100 vlan-id=100
add comment=IPTV interface=ether1 name=vlan101 vlan-id=101
add comment=Internet interface=ether1 name=vlan102 vlan-id=102
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/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=sfp1
add bridge=IPTV-Bridge interface=vlan101
/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=Internett dhcp-options=hostname,clientid disabled=no interface=\
    vlan102
add add-default-route=no comment=IPTV dhcp-options=clientid,hostname \
    disabled=no interface=IPTV-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
/ip dns static
add address=192.168.88.1 name=router.lan
/ip firewall filter
add action=accept chain=input protocol=udp
add action=accept chain=input protocol=igmp
add action=accept chain=forward protocol=udp
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
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=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 disabled=yes
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
add action=drop chain=input dst-port=53 in-interface=vlan102 protocol=udp
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=172.21.0.0/16 \
    new-routing-mark=IPTV-Mark passthrough=yes src-address=0.0.0.0/0
/ip firewall nat
add action=masquerade chain=srcnat out-interface=vlan102 to-addresses=0.0.0.0
add action=masquerade chain=srcnat out-interface=IPTV-Bridge
/ip route
add distance=1 gateway=10.174.22.1 routing-mark=IPTV-Mark
/ip route rule
add routing-mark=IPTV-Mark table=IPTV-Mark
/routing igmp-proxy
set quick-leave=yes
/routing igmp-proxy interface
add alternative-subnets=0.0.0.0/0 interface=IPTV-Bridge upstream=yes
add interface=bridge
/system clock
set time-zone-name=Europe/Oslo
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
EDIT: En reboot av routeren var vist det som skulle til. Nå fungerer TV og internett. Super guide, da var det bare resten igjen.
Sist endret av stianiquniez; 11. juni 2019 kl. 21:24. Grunn: Automatisk sammenslåing med etterfølgende innlegg.