Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

VLAN - No IP-address from DHCP

$
0
0

Hello

 

We have issues with the DHCP and guest VLAN. We have following setup.

 

ER-PRO (v1.8.0) with:

eth0 – WAN 1 (PPPoE)

eth1 – WAN 2 (static IP)

eth2 – LAN private

eth2.20 – VLAN GUEST

Load-Balancing between the two WANs (WAN 2 only failover).

DNS forwarding for eth2 and eth2.20.

DHCP servers for eth2 and eth2.20.

GUEST_VLAN firewall rule with access per default and drop all packets to private LAN.

 

UAP-PROs with:

SSID Private – no vlan tagging

SSID Public – vlan tagging (20) and marked as guest network

 

Issue:

When connecting to the private WLAN everything works perfectly. But when we try to use the public WLAN we don’t get any IP address.

 

We connected a computer directly to the eth2 port and activated VLAN tagging on the network card as a test. We didn’t get any IP address.

 

firewall {
    all-ping enable
    broadcast-ping disable
    group {
        network-group PRIVATE_NETS {
            network 192.168.0.0/16
            network 172.16.0.0/12
            network 10.0.0.0/8
        }
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians disable
    modify balance {
        rule 10 {
            action modify
            description "do NOT load balance lan to lan"
            destination {
                group {
                    network-group PRIVATE_NETS
                }
            }
            modify {
                table main
            }
        }
        rule 20 {
            action modify
            description "do NOT load balance destination public address"
            destination {
                group {
                    address-group ADDRv4_pppoe0
                }
            }
            modify {
                table main
            }
        }
        rule 30 {
            action modify
            description "do NOT load balance destination public address"
            destination {
                group {
                    address-group ADDRv4_eth1
                }
            }
            modify {
                table main
            }
        }
        rule 40 {
            action modify
            modify {
                lb-group G
            }
        }
    }
    name GUEST_VLAN {
        default-action accept
        description "Guest VLAN"
        rule 3 {
            action drop
            description "Drop Route to Private Network 192.168.0.0"
            destination {
                address 192.168.0.0/24
            }
            log disable
            protocol all
        }
    }
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 1 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 4 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    options {
        mss-clamp {
            mss 1412
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        description "Internet - WAN"
        duplex auto
        pppoe 0 {
            default-route none
            firewall {
                in {
                    name WAN_IN
                }
                local {
                    name WAN_LOCAL
                }
            }
            mtu 1492
            name-server none
            password ******
            user-id ******
        }
        speed auto
    }
    ethernet eth1 {
        address 213.193.108.134/30
        description "Internet - WAN 2"
        duplex auto
        firewall {
            in {
                name WAN_IN
            }
            local {
                name WAN_LOCAL
            }
        }
        speed auto
    }
    ethernet eth2 {
        address 192.168.0.1/24
        description Local
        duplex auto
        firewall {
            in {
                modify balance
            }
        }
        speed auto
        vif 20 {
            address 192.168.20.1/24
            description "Local - Guest"
            firewall {
                in {
                    modify balance
                    name GUEST_VLAN
                }
            }
            mtu 1500
        }
    }
    ethernet eth3 {
        description eth3
        duplex auto
        speed auto
    }
    ethernet eth4 {
        duplex auto
        speed auto
    }
    ethernet eth5 {
        duplex auto
        speed auto
    }
    ethernet eth6 {
        duplex auto
        speed auto
    }
    ethernet eth7 {
        duplex auto
        speed auto
    }
    loopback lo {
    }
}
load-balance {
    group G {
        interface eth1 {
            failover-only
        }
        interface pppoe0 {
        }
    }
}
protocols {
    static {
        interface-route 0.0.0.0/0 {
            next-hop-interface pppoe0 {
            }
        }
        route 0.0.0.0/0 {
            next-hop 213.193.108.133 {
            }
        }
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN_GUEST {
            authoritative disable
            subnet 192.168.20.0/24 {
                default-router 192.168.20.1
                dns-server 195.186.1.162
                dns-server 192.168.20.1
                lease 14400
                start 192.168.20.10 {
                    stop 192.168.20.243
                }
            }
        }
        shared-network-name LAN_INTERN {
            authoritative disable
            subnet 192.168.0.0/24 {
                default-router 192.168.0.1
                dns-server 195.186.1.162
                dns-server 192.168.0.1
                lease 86400
                start 192.168.0.10 {
                    stop 192.168.0.243
                }
            }
        }
    }
    dns {
        forwarding {
            cache-size 150
            listen-on eth2
            listen-on eth2.20
        }
    }
    gui {
        https-port 443
    }
    nat {
        rule 5000 {
            description "masquerade for WAN"
            outbound-interface pppoe0
            type masquerade
        }
        rule 5002 {
            description "masquerade for WAN 2"
            outbound-interface eth1
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
}

Is something incorrect with this configuration? Do we need other/additional firewall rules?


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>