Any #systemd folks here?
Seems like my LFS's network config is broken. Right after boot I can only access the machine via (hyper-v) terminal. Network card is detected but not configured:
3: ether0: <BROADCAST, MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:15:5d:01:7d:15 brf ff:ff:ff:ff:ff:ff
If I set up networking manually via ip
it works (pinging 8.8.8.8 and google.com works, local sshd is reachable from outside - only DNS is using the systemd default (google's dns) but that will be another problem).
ip addr add 192.168.123.45/24 dev ether0 broadcast 192.168.123/24
ip link set dev ether0 up
ip route add default via 192.168.123.1 dev ether0
As you may have guessed, what I really want is operational networking right after booting. My current config looks like this:
bash-5.0# cat /etc/systemd/network/10-ether0.link
[Match]
MACAddress=00:15:5d:01:7d:15
[Link]
Name=ether0
bash-5.0# cat /etc/systemd/network/20-ether0-static.network
[Match]
Name=[ether0]
[Network]
Address=192.168.123.45/24
Gateway=192.168.123.1
DNS=192.168.123.2
Domains=family.home
As I mentioned, the machine runs in Hyper-V and (now that I have built a kernel with Hyper-V support) has it's network adapter detected. If I'm lucky, the DNS problem will be solved once the .link/.network configuration is fixed.
There are no comments yet.