Hi, The DHCP server in QEMU does neither support specifying a domainname nor a classless static route option [1]. I implemented the former (which was easy), but I am not sure if and how to implement the classless static route option.
An example classless static route option configured in ISC's DHCP server look like option rfc3442-classless-static-routes 24, 10, 0, 2, 10, 0, 2, 2, 16, 192, 168, 10, 0, 2, 2; This translates to the routes: 10.0.2.0/24 via 10.0.2.2 192.168.0.0/16 via 10.0.2.2 Should the command line option just behave like the ISC's DHCP server and allow specifying the byte stream passed to the client? E.g. -net staticroutes=24.10.0.2.10.0.2.2.16.192.168.10.0.2.2 Or should the command line option be simpler, but how should it be specified then? Maybe -net staticroute=10.0.2.0/24via10.0.2.2,staticroute=192.168.0.0/16via10.0.2.2 I am open for your ideas. [1] https://tools.ietf.org/html/rfc3442 Benjamin Drung (1): slirp: Add domainname option to slirp's DHCP server net/slirp.c | 7 ++++--- qapi/net.json | 3 +++ qemu-options.hx | 7 +++++-- slirp/bootp.c | 8 ++++++++ slirp/libslirp.h | 2 +- slirp/slirp.c | 4 +++- slirp/slirp.h | 1 + 7 files changed, 25 insertions(+), 7 deletions(-) -- 2.14.1