Hi,
I managed to configure the different parts, but the DHCP server is not working on the LAN interface, I need some help. Here are my configuration files.
uci show network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fdca:6d3f:b97::/48'
network.lan_dev=device
network.lan_dev.name='eth0.1'
network.wan_dev=device
network.wan_dev.name='eth0.2'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.vlan1=switch_vlan
network.vlan1.device='switch0'
network.vlan1.vlan='1'
network.vlan1.vid='1'
network.vlan1.ports='0 1 2 3 6t'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth0.1 rai0 ra0'
network.lan.proto='static'
network.lan.ipaddr='192.168.10.3'
network.lan.netwask='255.255.255.0'
network.lan.gateway='192.168.10.3'
network.vlan2=switch_vlan
network.vlan2.device='switch0'
network.vlan2.vlan='2'
network.vlan2.vid='2'
network.vlan2.ports='4t 6t'
network.Wan=interface
network.Wan.type='bridge'
network.Wan.ifname='eth0.2 '
network.Wan.proto='dhcp'
network.vlan6=switch_vlan
network.vlan6.device='switch0'
network.vlan6.vlan='6'
network.vlan6.vid='6'
network.vlan6.ports='0t 1t 2t 3t 6t'
network.LanPublic=interface
network.LanPublic.type='bridge'
network.LanPublic.ifname='eth0.6 rai1 ra1'
network.LanPublic.proto='static'
network.LanPublic.ipaddr='192.168.106.3'
network.LanPublic.netwask='255.255.255.0'
network.LanPublic.gateway='192.168.106.3'
network.vlan4=switch_vlan
network.vlan4.device='switch0'
network.vlan4.vlan='4'
network.vlan4.vid='4'
network.vlan4.ports='0t 1t 2t 3t 6t'
network.LanPrivate=interface
network.LanPrivate.type='bridge'
network.LanPrivate.ifname='eth0.4 rai2 ra2'
network.LanPrivate.proto='static'
network.LanPrivate.ipaddr='192.168.104.3'
network.LanPrivate.netwask='255.255.255.0'
network.LanPrivate.gateway='192.168.104.3'
network.vlan112=switch_vlan
network.vlan112.device='switch0'
network.vlan112.vlan='112'
network.vlan112.vid='112'
network.vlan112.ports='4t 6t'
network.WanPublic=interface
network.WanPublic.type='bridge'
network.WanPublic.ifname='eth0.112 '
network.WanPublic.proto='dhcp'
network.vlan110=switch_vlan
network.vlan110.device='switch0'
network.vlan110.vlan='110'
network.vlan110.vid='110'
network.vlan110.ports='4t 6t'
network.WanPrivate=interface
network.WanPrivate.type='bridge'
network.WanPrivate.ifname='eth0.110 '
network.WanPrivate.proto='dhcp'
uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='ACCEPT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].src_ip='fc00::/6'
firewall.@rule[3].dest_ip='fc00::/6'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@rule[7]=rule
firewall.@rule[7].name='Allow-IPSec-ESP'
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
firewall.@rule[8].name='Allow-ISAKMP'
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@include[0]=include
firewall.@include[0].path='/etc/firewall.user'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan'
firewall.@zone[1]=zone
firewall.@zone[1].name='Wan'
firewall.@zone[1].input='ACCEPT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].network='Wan'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='Wan'
firewall.@redirect[0]=redirect
firewall.@redirect[0].target='DNAT'
firewall.@redirect[0].dest='lan'
firewall.@redirect[0].src='Wan'
firewall.@redirect[0].src_dport='5678'
firewall.@redirect[0].dest_port='4056'
firewall.@redirect[0].name='WAN'
firewall.@zone[2]=zone
firewall.@zone[2].name='LanPublic'
firewall.@zone[2].input='ACCEPT'
firewall.@zone[2].output='ACCEPT'
firewall.@zone[2].forward='ACCEPT'
firewall.@zone[2].network='LanPublic'
firewall.@zone[3]=zone
firewall.@zone[3].name='LanPrivate'
firewall.@zone[3].input='ACCEPT'
firewall.@zone[3].output='ACCEPT'
firewall.@zone[3].forward='ACCEPT'
firewall.@zone[3].network='LanPrivate'
firewall.@zone[4]=zone
firewall.@zone[4].name='WanPublic'
firewall.@zone[4].input='ACCEPT'
firewall.@zone[4].output='ACCEPT'
firewall.@zone[4].forward='REJECT'
firewall.@zone[4].masq='1'
firewall.@zone[4].network='WanPublic'
firewall.@forwarding[1]=forwarding
firewall.@forwarding[1].src='LanPublic'
firewall.@forwarding[1].dest='WanPublic'
firewall.@redirect[1]=redirect
firewall.@redirect[1].target='DNAT'
firewall.@redirect[1].src='WanPublic'
firewall.@redirect[1].dest='LanPublic'
firewall.@redirect[1].proto='udp'
firewall.@redirect[1].src_dport='4033'
firewall.@redirect[1].dest_port='67'
firewall.@redirect[1].name='DHCPRelayLanPublic'
firewall.@zone[5]=zone
firewall.@zone[5].name='WanPrivate'
firewall.@zone[5].input='ACCEPT'
firewall.@zone[5].output='ACCEPT'
firewall.@zone[5].forward='REJECT'
firewall.@zone[5].masq='1'
firewall.@zone[5].network='WanPrivate'
firewall.@forwarding[2]=forwarding
firewall.@forwarding[2].src='LanPrivate'
firewall.@forwarding[2].dest='WanPrivate'
firewall.@redirect[2]=redirect
firewall.@redirect[2].target='DNAT'
firewall.@redirect[2].src='WanPrivate'
firewall.@redirect[2].dest='LanPrivate'
firewall.@redirect[2].proto='udp'
firewall.@redirect[2].src_dport='4033'
firewall.@redirect[2].dest_port='67'
firewall.@redirect[2].name='DHCPRelayLanPrivate'
uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.lan.start='100'
dhcp.lan.limit='200'
dhcp.lan.leasetime='12h'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'