Community discussions

MikroTik App
 
PantemEt2005
just joined
Topic Author
Posts: 1
Joined: Sat Mar 06, 2021 11:19 pm

No internet on Vlan's

Wed Sep 01, 2021 2:57 am

Hello i am facing an issue that i cannot get internet on Vlan's (and i cannot ping the gateway)

Here is my config :

/interface bridge
add name=bridge1
add name=bridge2
/interface ethernet
set [ find default-name=ether1 ] name=ether1-WAN speed=100Mbps
set [ find default-name=ether2 ] name=ether2-LAN speed=100Mbps
set [ find default-name=ether3 ] name=ether3-LAN-Cameras speed=100Mbps
set [ find default-name=ether4 ] name=ether4-LAN-WAP speed=100Mbps
set [ find default-name=ether5 ] name=ether5-LAN-2 speed=100Mbps
set [ find default-name=ether6 ] name=ether6-LAN-2-WAP speed=100Mbps
set [ find default-name=ether7 ] speed=100Mbps
set [ find default-name=ether8 ] speed=100Mbps
set [ find default-name=ether9 ] speed=100Mbps
set [ find default-name=ether10 ] name=ether10-MGMT speed=100Mbps
set [ find default-name=ether11 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
set [ find default-name=ether12 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
set [ find default-name=ether13 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
/interface vlan
add interface=bridge1 name=vlan100 vlan-id=100
add interface=bridge2 name=vlan300 vlan-id=300
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.88.2-192.168.88.254
add name=dhcp_pool1 ranges=192.168.88.2-192.168.88.254
add name=dhcp_pool2 ranges=10.20.50.2-10.20.50.254
/ip dhcp-server
add address-pool=dhcp_pool2 disabled=no interface=vlan300 name=dhcp1
/user group
set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,pas\
sword,web,sniff,sensitive,api,romon,dude,tikapp"
/interface bridge port
add bridge=bridge1 interface=ether2-LAN
add bridge=bridge1 interface=ether4-LAN-WAP
add bridge=bridge2 interface=ether5-LAN-2
add bridge=bridge2 interface=ether6-LAN-2-WAP
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ip address
add address=192.168.88.1/24 comment=defconf interface=ether10-MGMT network=\
192.168.88.0
add address=192.168.4.9/24 interface=ether1-WAN network=192.168.4.0
add address=10.20.50.1/24 interface=vlan300 network=10.20.50.0
add address=10.0.0.1/24 interface=vlan100 network=10.0.0.0
/ip dhcp-server network
add address=10.20.50.0/24 gateway=10.20.50.1
add address=192.168.88.0/24 dns-server=1.1.1.1,1.0.0.1 gateway=192.168.88.1
/ip dns
set servers=1.1.1.1,1.0.0.1
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add distance=1 gateway=192.168.4.1
/system clock
set time-zone-name=Europe/Athens
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 723
Joined: Tue Dec 17, 2019 1:08 pm

Re: No internet on Vlan's

Mon Nov 08, 2021 12:40 am

The Config is a bit confusing...
Do you have a Network-Diagramm or a small description of you network?


I would normally expect only one bridge with vlan-filtering
See VLAN-Bible : viewtopic.php?t=143620
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: No internet on Vlan's

Mon Nov 08, 2021 3:10 am

Post your entire config
/export hide-sensitive file=anynameyouwish

the current config is a mess.

ONLY ONE BRIDGE
USE ALL VLANS
every vlan is identified with interface bridge upon creation
every vlan gets an IP pool, IP address, DHCP server, DHCP server network
follow the link provided

Who is online

Users browsing this forum: korg, stevencameron16 and 94 guests