You are not logged in.
hi,
I have 2 interfaces.
wlan0 is setup by netctl-auto (dhcp), 192.168.2.13/28, gw 192.168.2.1, nameserver 192.168.2.1
then I setup manually wlan1.
I run
wpa_supplicant -B -i wlan1 -c <(wpa_passphrase mySSID myPassphrase)
dhcpcd wlan1
wlan1 got 192.168.1.13 ip, gw 192.168.1.1, nameserver 192.168.1.1
I remove the default route to 192.68.2.0 network to keep the one to 192.168.1.0
ip route del default via 192.168.2.1
and also remove the DNS from wlan0 with
resolvconf -d wlan0.dhcp
then resolvconf -l gives me as expected
# resolv.conf from wlan1.dhcp
nameserver 192.168.1.1
it's the content of /etc/resolv.conf also
but I am unable to resolve name
I had to use
systemd-resolve --set-dns=192.168.1.1 -i wlan1
Why ?
Last edited by solstice (2018-04-28 19:52:07)
Offline
You have two default gateways. There can only be one unless you know what you are doing (eg manipulate "metric")
Have a look at the output of:
$ cat /etc/resolv.conf
$ ip a
$ ip r
... and think carefully about what "default via" means.
Offline