Answer the question
In order to leave comments, you need to log in
OpenWRT network interface alias with dhcp + small questions
Colleagues, there is a router running on the basis of OpenWRT.
Question one: network alias.
Due to the specifics, the router has 5 physical interfaces: eth0, lan1, lan2, lan3, lan4.
config interface loopback option ifname lo option proto static option ipaddr 127.0.0.1 option netmask 255.0.0.0 config interface lan0 option ifname eth0 option proto static option ipaddr 192.168.1.1 option netmask 255.255.255.0 config interface sp option ifname lan1 option proto dhcp config interface lan2 option ifname lan2 option proto static option ipaddr 192.168.2.2 option netmask 255.255.255.0 config interface lan3 option ifname lan3 option proto static option ipaddr 192.168.5.3 option netmask 255.255.255.0 # lan4 not use
config interface sp_alias option ifname lan1:0 option proto static option ipaddr 192.168.99.1 option netmask 255.255.255.0
config interface sp option ifname lan1 option proto dhcp option aliases "192.168.0.2/24"
Answer the question
In order to leave comments, you need to log in
In general, there are few resources in Russian about OpenWRT, maybe you will find what you need =)
h-wrt.com/ru/doc
we.easyelectronics.ru/Lifelover/prevraschaem-nedorogoy-router-v-domashniy-server.html
habrahabr.ru/post /124744/
dipcore.com/
rascal.su/blog/tag/openwrt/
habrahabr.ru/post/127739/
robocraft.ru/blog/electronics/1053.html
The third question: dhcp-server on the eth0 interface Use
standard tools (dnsmasq) to configure dhcp through the /ect/config/dhcp configuration file.
For all interfaces except eth0, add entries
config dhcp 'lan1'
option interface 'lan1'
option ignore '1'
And to be sure, also block 67 and 68 gjhns UDP for all except eth0 using /ect/config/firewall
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question