[[service dhcp-server]] failed

Hi guys

I am trying to deploy VyOS version “VyOS 1.3-rolling-202011110217” over to the Sophos UTM device but I wasn´t able to configure the DHCP server on the VyOS as you can see in the error message below.

Report Time: 2020-11-21 09:39:13
Image Version: VyOS 1.3-rolling-202011110217
Release Train: equuleus

Built by: autobuild@vyos.net
Built on: Wed 11 Nov 2020 02:17 UTC
Build UUID: a42ec888-2112-4b27-9dc9-25e74bb52c57
Build Commit ID: 9e6e486d529291

Architecture: x86_64
Boot via: installed image
System type: bare metal

Hardware vendor: Sophos
Hardware model: SG
Hardware S/N: S1503C1CE3C9E2C
Hardware UUID: 03000200-0400-0500-0006-000700080009

Traceback (most recent call last):
File “/usr/libexec/vyos/conf_mode/dhcp_server.py”, line 623, in
verify(c)
File “/usr/libexec/vyos/conf_mode/dhcp_server.py”, line 509, in verify
if not ip_address(start) in ip_network(subnet[‘network’]):
File “/usr/lib/python3.7/ipaddress.py”, line 54, in ip_address
address)
ValueError: None does not appear to be an IPv4 or IPv6 address

I am not familiar with VyOS deployment but I am very interested to know more about VyOS, if you could help me out it much appreciated.

Hi @RNunes,

please share your configuration that you used on VyOS which triggered this error.


Christian

Hi Christian

Thanks for your prompt reply, please see below the configuration used on my Sophos UTM device and then let me know what should I do to fix that.

vyos@vyos:~$ show conf

interfaces {

ethernet eth0 {

    address [192.168.0.254/24](http://192.168.0.254/24)

    description LAN

    hw-id 00:1a:8c:44:1e:08

}

ethernet eth1 {

    hw-id 00:1a:8c:44:1e:09

}

ethernet eth2 {

    hw-id 00:1a:8c:44:1e:0a

}

ethernet eth3 {

    hw-id 00:1a:8c:44:1e:0b

}

loopback lo {

}

pppoe pppoe0 {

    authentication {

        password xxxxxx

        user xxxxxxx

    }

    default-route auto

    mtu 1480

    source-interface eth1

}

}

nat {

source {

    rule 100 {

        outbound-interface pppoe0

        source {

            address [192.168.0.0/24](http://192.168.0.0/24)

        }

        translation {

            address masquerade

        }

    }

}

}

service {

ssh {

    port 22

}

}

system {

config-management {

    commit-revisions 100

}

console {

    device ttyS0 {

        speed 115200

    }

}

host-name vyos

login {

    user vyos {

        authentication {

            encrypted-password ****************

            plaintext-password ****************

        }

    }

}

ntp {

    server [0.pool.ntp.org](http://0.pool.ntp.org/) {

    }

    server [1.pool.ntp.org](http://1.pool.ntp.org/) {

    }

    server [2.pool.ntp.org](http://2.pool.ntp.org/) {

    }

}

syslog {

    global {

        facility all {

            level info

        }

        facility protocols {

            level debug

        }

    }

}

}

vyos@vyos:~$

Where is configuration related DHCP server?