Community discussions

MikroTik App
 
bcsteeve
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 97
Joined: Thu May 12, 2016 11:05 am

Confused on DHCP... I guess.

Fri May 27, 2016 5:53 am

2011 starting with default config.

I eliminate the bridge-local
I change DHCP server so it is attached to Port 2
I change port 3 so that it isn't a slave (master = none).
I add a DHCP server to Port 3.

Port 2 works, Port 3 doesn't... after some undetermined amount of time, the DHCP server for 3 is flagged "invalid", though this doesn't happen right away. Once it is flagged, I can't get it to be valid and nothing explains what the problem is.

I thought perhaps it needs its own exclusive pool, so I tried that but it doesn't help.


I may very well be going about this all wrong, I'm not sure. I'm completely new to RouterOS.

Ultimately I want the 4 gigabit ports and one fast port to be on their own so I can better control them (queues, etc) and then ports 7-10 can be master/slaved up (or not).

I want DHCP for everything.

Help?
 
tiftok
newbie
Posts: 49
Joined: Thu Apr 07, 2016 1:40 pm

Re: Confused on DHCP... I guess.

Fri May 27, 2016 2:04 pm

hello you can make bridge and add all interface to bridge after add dhcp to the bridge .this simple
/interface bridge ;
add name=bridge_one ;
/ip address ;
add address=192.168.87.1/24 interface=bridge_one network=192.168.87.0 ;
/ip pool ;
add name=dhcp_pool1 ranges=192.168.87.2-192.168.87.254 ;
/ip dns set max-udp-packet-size=4096 servers=8.8.8.8,8.8.4.4 ;
/ip dhcp-server network ;
add address=192.168.87.0/24 comment=khaled-almulsi-network gateway=192.168.87.1;
/ip dhcp-server
add add-arp=yes address-pool=dhcp_pool1 disabled=no interface=bridge_one lease-time=59m name=dhcp1;
/ip firewall nat add action=masquerade chain=srcnat  src-address=192.168.87.0/24 ;
:for e from 0 to 9 do={
	 / interface ethernet set numbers=$e  master-port=none ;
	}
now go to winbox and go to bridge port and add port to bridge_one

have a good day :)
 
bcsteeve
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 97
Joined: Thu May 12, 2016 11:05 am

Re: Confused on DHCP... I guess.

Fri May 27, 2016 7:59 pm

OK, thanks... but then am I not going to run into trouble queuing later? I'm sure I read in multiple places that you have less control over bridged ports, and that makes sense.

I know I'm missing some basic understanding here. Something's gotta click soon.

Who is online

Users browsing this forum: vingjfg and 60 guests