Skip to content

Add network to the DHCP section and specify a network segment as the DHCP address pool #243

@peterwillcn

Description

@peterwillcn

The problem is to distinguish between two subnets under the same interface and specify subnetworks as the default address pool

option network '172.16.1.0/24' # It seems to have no effect

dhcp

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        **option network '172.16.1.0/24'  # It seems to have no effect**
        option leasetime '12h'
        option dhcpv4 'server'
        option dhcpv6 'server'
        option ra 'server'
        option ra_slaac '1'
        list ra_flags 'managed-config'
        list ra_flags 'other-config'

network

config interface 'lan'
    option ifname 'eth1'
    option proto 'static'
    list ipaddr '172.16.1.1/24'  
    list ipaddr '192.168.2.1/24'  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions