Page 1 of 1

help with basic setting with dhcp

Posted: Sun Jul 12, 2009 6:32 am
by gabak
i have a router board with 3 lan 1 wlan
i need to connect it to my cablemodem (dynamic ip)
then share the conection
scenario
eth3 ---- cablemodem
eth1,2 --- lan ouput
wlan dchp with the same ip than the lan
( i need it to work like any linksys or regular router)
if it can be with simple screen shot using winbox , greatly appreciated
i m new on this

Re: help with basic setting with dhcp

Posted: Mon Jul 13, 2009 4:50 pm
by galaxynet
gabak -

It's an ugly way to do it but you can simply bridge wlan, eth1 and eth2 in the same bridge port. While there enable the IP firewall for the bridge. Then you can set all your firewall rules in the regular firewall and they will work....

Once that's done, you assign the IP address to the bridge. Then go to DHCP server, set it up on the bridge as the interface. While setting up the DHCP server, un-check bootp support, check the other two boxes....

R/

Re: help with basic setting with dhcp

Posted: Mon Jul 13, 2009 4:52 pm
by sergejs
Create bridge on Eth1 and Eth2,
interface bridge add
interface bridge port add bridge=bridge1 port=ether1
interface bridge port add bridge=bridge1 port=ether2

Add IP address to the bridge,
ip address add address=x.x.x.x/24 interface=bridge

Setup DHCP server,
/ip dhcp-server setup,
http://www.mikrotik.com/testdocs/ros/3.0/pnp/dhcp.php

The commands are for the console, but they are actually the same for the Winbox.

Re: help with basic setting with dhcp

Posted: Thu Jul 16, 2009 7:07 am
by gabak
thank you so much it worked i forgot the /24 very important , so here i made some little step by step so it will help everybody
first of all setup all the ports
case of dinamic ip (emulation router linksys generic)

ip-- dhcp client
add eth3 (write port ip address you wish)

go to bridge
tag bridge
add one

bridge --- ports
add eth1
add eth2
add wlan

ip--- dns
add one
write ip of dhcp
then go to setting
write dns1 200.42.0.111

ip --- address
add 192.168.1.1/24 IMPORTANTE /24
select bridge at interface

ip dhcp server
click on dhcp setup
dhcp server interface BRIDGE
dhcp address space 192.168.1.0/24
gateways for dhcp network 192.168.1.1
address to give out 192.168.1.2-192.168.1.254
dns 1 200.42.0.111
dns 2 200.42.0.109

ip ---- firewall
add one rule
chain SRCNAT
out interface ETH3

ACTION
masquerade
Create bridge on Eth1 and Eth2,
interface bridge add
interface bridge port add bridge=bridge1 port=ether1
interface bridge port add bridge=bridge1 port=ether2

Add IP address to the bridge,
ip address add address=x.x.x.x/24 interface=bridge

Setup DHCP server,
/ip dhcp-server setup,
http://www.mikrotik.com/testdocs/ros/3.0/pnp/dhcp.php

The commands are for the console, but they are actually the same for the Winbox.