You are not logged in.

#1 2016-11-04 20:37:23

hme
Member
Registered: 2016-11-04
Posts: 3

Getting wired internet with 802.1X security running at install

Hi!
I have problems getting connected to the internet when running the arch installer.
I am connected by wire to the university network, and this network requires 802.1X login details.
I have previously used the Manjaro distro, and getting the network up and running using the GUI works, but I'm not sure how to do this using the command line...

What i have tried so far:
-Created a netctl configuration called HSN like:

Description="Basic wired network"
Interface=enp0s3
Connection=ethernet
IP=dhcp
network={
    key_mgmt=IEEE8021X
    eap=PEAP
    phase2="auth=MSCHAPV2"
    identity="my_email"
    password="my_password"}

Then did a

netctl enable HSN
netctl start HSN 

- I tried inserting the "network" parameters above in

/etc/wpa_supplicant//wpa_supplicant.conf 

and ensuring that the "wpa_supplicant" service is running but nothing seems to get me connected.

- I tried installing with a graphical installer and connecting to the internet using the nm-connection-editor and this gets me connected, but when i reboot into headless (no display manager) I am offline once more...
The nm-connection-editor seem to save its configurations in

/etc/NetNetworkManager/system-connections/Wired connection 1 

and the "correct" setup with my password ect, is still there...

[connection]
id=Wired connection 1
uuid="uuid"
type=ethernet
autoconnect-priority=-999
permissions=
secondaries=
timestamp=1478288801

[ethernet]
duplex=full
mac-address="mac-address"
mac-address-blacklist=

[802-1x]
altsubject-matches=
anonymous-identity="my_username"
eap=peap;
identity="my_username"
password="my_password"
phase2-altsubject-matches=
phase2-auth=mschapv2

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto

- Trying to ping 

ping -c 3 www.google.com 

returns "Name or service not known"...

So:
What am i missing?
What service have i not started and what is going on?
Is there any other (better?) way of dong this?

Thanks in advance smile

Offline

#2 2019-01-16 21:50:12

TheBagarius
Member
Registered: 2019-01-16
Posts: 2

Re: Getting wired internet with 802.1X security running at install

Hi hme,

I had a similar problem with getting wired internet to work at my university. In my experience the arch installer uses netctl. anyway here is what I did. I didn't have the ethernet plugged in when I started. keep note of what your ethernet interface is called; in my case it was enp1s0 . you can check by running

$ ip a

I created a WPA Supplicant profile in

/etc/wpa_supplicant/wpa_supplicant-wired.conf

My profile looks a bit like this

ctrl_interface=/var/run/wpa_supplicant
ap_scan=0
network={
  key_mgmt=IEEE8021X
  eap=TTLS
  identity="email address"
  password="password"
  phase2="autheao=MSCHAPV2"
}

The specific values for what goes inside the network will change based on your university's config.

Next I created a netctl profile in

/etc/netctl/ethernet-dhcp

That looks a bit like this

Description='dhcp ethernet connection'
Interface=enp1s0
Connection=ethernet
IP=dhcp
Auth8021X=yes
WPAConfigFile=/etc/wpa_supplicant/wpa_supplicant-wired.conf
WPADriver=wired

I then disabled the network interface by running

$ ip link set enp1s0 down 

plugged in the ethernet cable then ran the following

$ netctl enable ethernet-dhcp
$ netctl start ethernet-dhcp
$ wpa_supplicant -Dwired -ienp0s1 -c/etc/wpa_supplicant/wpa_supplicant-wired.conf

to check eveything was running I ran

$ ip a
$ ping -c 3 google.com

It worked for me and was able to install arch at this point. let me know if it works for you, also I just noticed you posted this back in 2016-11-04 and nobody else had replied so hopefully you were able to figure it out before I did.

Last edited by TheBagarius (2019-01-16 21:57:25)

Offline

#3 2019-01-16 22:19:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,621
Website

Re: Getting wired internet with 802.1X security running at install


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB