You are not logged in.
I installed archlinux on my lab desktop but am facing network issues. First, a couple of points specific to our lab:
1) We cannot ping servers on the internet, e.g. ping www.google.com doesn't work even on machines connected to the internet and working fine.
2) To access the internet, we have to enter our credentials in a local webpage. This is the site I am trying to open currently and failing. The ip is 10.201.250.201
During installation using a live usb, I opened 10.201.250.201 in lynx and connected to the internet and downloaded packages e.g. vim, elinks, lynx using pacman. I checked that it used dhcp.
After installation, I am unable to access the internet because I cannot load the one particular internal website, namely 10.201.250.201, on elinks and lynx. I can ping the site though.
Here is the output of 'networkctl -a status' when using live usb and when everything works fine-
● 1: lo
Link File: /usr/lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: carrier (unmanaged)
HW Address: 00:00:00:00:00:00
MTU: 65536
QDisc: noqueue
IPv6 Address Generation Mode: eui64
Queue Length (Tx/Rx): 1/1
Address: 127.0.0.1
::1● 2: enp0s25
Link File: /usr/lib/systemd/network/99-default.link
Network File: /etc/systemd/network/20-ethernet.network
Type: ether
State: routable (configured)
Path: pci-0000:00:19.0
Driver: e1000e
Vendor: Intel Corporation
Model: Ethernet Connection I217-V
HW Address: 00:22:4d:b0:a3:7e (MITAC INTERNATIONAL CORP.)
MTU: 1500 (min: 68, max: 9000)
QDisc: fq_codel
IPv6 Address Generation Mode: eui64
Queue Length (Tx/Rx): 1/1
Auto negotiation: yes
Speed: 1Gbps
Duplex: full
Port: tp
Address: 10.130.166.204 (DHCP4 via 10.130.5.1)
fe80::222:4dff:feb0:a37e
Gateway: 10.130.166.250 (Cisco Systems, Inc)
DNS: 10.129.3.12
NTP: 10.200.1.15
DHCP4 Client ID: IAID:0x4c11263c/DUID
DHCP6 Client DUID: DUID-EN/Vendor:0000ab11bb7ad49c9efb64910000
Connected To: n/a on port gi1/1/4
n/a on port gi1/1/5
n/a on port gi1/1/7Mar 15 08:56:58 archiso systemd-networkd[344]: enp0s25: Link UP
Mar 15 08:57:01 archiso systemd-networkd[344]: enp0s25: Gained carrier
Mar 15 08:57:02 archiso systemd-networkd[344]: enp0s25: DHCPv4 address 10.130.166.204/24 via 10.130.166.250
Mar 15 08:57:02 archiso systemd-networkd[344]: enp0s25: Gained IPv6LL
Here is the output when things don't work using local arch install on the desktop.
* 1: lo
Link File: /usr/lib/systemd/network/99-default.link
Network File: n/a
Type: loopback
State: carrier (unmanaged)
HW Address: 00:00:00:00:00:00
MTU: 65536
QDisc: noqueue
IPv6 Address Generation Mode: eui64
Queue Length (Tx/Rx): 1/1
Address: 127.0.0.1
::1* 2: enp0s25
Link File: /usr/lib/systemd/network/99-default.link
Network File: /etc/systemd/network/20-ethernet.network
Type: ether
State: routable (configured)
Path: pci-0000:00:19.0
Driver: e1000e
Vendor: Intel Corporation
Model: Ethernet Connection I217-V
HW Address: 00:22:4d:b0:a3:7e (MITAC INTERNATIONAL CORP.)
MTU: 1500 (min: 68, max: 9000)
QDisc: fq_codel
IPv6 Address Generation Mode: eui64
Queue Length (Tx/Rx): 1/1
Auto negotiation: yes
Speed: 1Gbps
Duplex: full
Port: tp
Address: 10.130.166.210 (DHCP4 via 10.130.5.1)
fe80::222:4dff:feb0:a37e
Gateway: 10.130.166.250 (Cisco Systems, Inc)
DNS: 10.129.3.12
NTP: 10.200.1.15
DHCP4 Client ID: IAID:0x4c11263c/DUID
DHCP6 Client DUID: DUID-EN/Vendor:0000ab115f46709a6bb42c630000
Connected To: n/a on port gi1/1/4
n/a on port gi1/1/5
n/a on port gi1/1/7Mar 15 18:08:46 archlinux systemd-networkd[274]: enp0s25: Link UP
Mar 15 18:08:49 archlinux systemd-networkd[274]: enp0s25: Gained carrier
Mar 15 18:08:50 archlinux systemd-networkd[274]: enp0s25: DHCPv4 address 10.130.166.210/24 via 10.130.166.250
Mar 15 18:08:50 archlinux systemd-networkd[274]: enp0s25: Gained IPv6LL
I can ping the login website. But if I do `lynx 10.201.250.201', I get the following
Looking up 10.201.250.201 first
Looking up 10.201.250.201
Making HTTP connection to 10.201.250.201
Sending HTTP request.
HTTP request sent; waiting for response.
HTTP/1.1 302 Moved Temporarily
Data transfer complete
HTTP/1.1 302 Moved Temporarily
Using https://<local-login-website>/index.php?redirecthost=10.201.250.201/&
Looking up <local-login-website>
Unable to locate remote host <local-login-website>
Alert!: Unable to connect to remote host.lynx:Can't access startfile http://10.201.250.201/
What am I doing wrong?
EDIT: I just noticed that I can access other local websites. E.g.- lynx 10.109.1.11 works as expected. But the all important login webpage is not opening. I don't know if this is an issue with my arch installation, or with our local login. But if someone can think of some solution (since the webpage opens when using the arch live usb), then it'll be very helpful.
Last edited by Evergreen (2021-03-16 09:40:00)
Offline
Have you enabled systemd-resolved? That is required so that networkd can set the dns server. It looks like there is a HTTP redirect to a hostname that cannot be resolved.
Last edited by progandy (2021-03-16 09:24:16)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Have you enabled systemd-resolved? That is required so that networkd can set the dns server. It looks like there is a HTTP redirect to a hostname that cannot be resolved.
wow, you're right. I started and enabled systemd-resolved.service, and now the page opens. Thanks a lot for resolving
the issue.
----
PS- I forgot to mention in my initial post that when I first tried ping <local-website>, it gave me an error regarding name resolution. But I thought that directly using the ip of the local website will not require dns.
Offline
Using the IP directly does not require dns, that's why the initial connection succeeds. In your case the response is a redirect without an IP, though:
HTTP/1.1 302 Moved Temporarily
Using https://<local-login-website>/index.php?redirecthost=10.201.250.201/&
Looking up <local-login-website>| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline
Thanks for explaining. I can now understand the lynx error message and what was happening.
Offline