Skip to content

Network connectivity in OS package

I'm stbooting the OS package from https://st.glasklar.is/st/qa/qa-debian-bookworm-amd64.{zip,json}.

I start it in qemu using -nic type=user. I get no connectivity, and not sure how to set that up. I think I get a virtual ethernet, managed by the e1000 driver. I get

# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: ens3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    altname enp0s3

I'm not that familiar with the systemd way (no ifup command), but I tried networkctl up ens3, and after that ip addr reports

2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    altname enp0s3
    inet6 fec0::5054:ff:fe12:3456/64 scope site dynamic mngtmpaddr 
       valid_lft 86229sec preferred_lft 14229sec
    inet6 fe80::5054:ff:fe12:3456/64 scope link 
       valid_lft forever preferred_lft forever

with only link-local IPv6.

It would be nice if the image included some default configuration to get address via dhcp. May also need IPv4; not sure if the qemu network magic can provide autoconf of useful IPv6 addresses.