Using mobo NIC to manage. Prox box is behind router, trying to connect LXC on second NIC back to 4 port ISP provided modem. Second NIC not being used by any other VM/LXC and DHCP/DNS work fine if I connect to a free port on my router. New Ubuntu 21.1 unprivileged LXC assigned eht0, IPv4 DHCP,IPv6 empty/static.
For background, on this LXC there is no yaml in /etc/netplan or any other spots, /etc/network only contains if-down.d and if-up.d , so it looks like everything is controlled via /etc/systemd/network
eth0.network:
this does not work:
On a whim I tried connecting my laptop to same port on modem with DHCP enabled, got an IP/dns etc so I tried spoofing its MAC ala old school self owned equipment days. DHCP works but no DNS. I tried using the laptop IP, no go. Finally I tried editing systemd resolve to match provided DNS, however I'm seeing this:
I wasn't expecting the 'Global' bits. Any way to change/remove/bypass?
Thanks.
For background, on this LXC there is no yaml in /etc/netplan or any other spots, /etc/network only contains if-down.d and if-up.d , so it looks like everything is controlled via /etc/systemd/network
eth0.network:
Code:
[Match]
Name = eth0
[Network]
Description = Interface eth0 autoconfigured by PVE
DHCP = v4
IPv6AcceptRA = false
this does not work:
Code:
# ip a
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
valid_lft forever preferred_lft forever
2: eth0@if115: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 6e:92:74:da:e2:9b brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::6c92:74ff:feda:e29b/64 scope link
valid_lft forever preferred_lft forever
On a whim I tried connecting my laptop to same port on modem with DHCP enabled, got an IP/dns etc so I tried spoofing its MAC ala old school self owned equipment days. DHCP works but no DNS. I tried using the laptop IP, no go. Finally I tried editing systemd resolve to match provided DNS, however I'm seeing this:
Code:
/etc/systemd# systemd-resolve --status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Current DNS Server: <router IP prox box is behind>
DNS Servers: <router IP prox box is behind>
Fallback DNS Servers: 209.18.47.63 (roadrunner/charter DNS)
DNS Domain: <local domain specified on my prox box>
Link 2 (eth0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
I wasn't expecting the 'Global' bits. Any way to change/remove/bypass?
Thanks.