未加星标

Manual wireless setting on Fedora 12

字体大小 | |
[系统(linux) 所属分类 系统(linux) | 发布者 店小二05 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

This post was written byeli on January 27, 2017

Posted Under:emergency, Internet , linux , Notes to self

What’s this?

This is a note for myself, in case I need a quick replacement for my ADSL connection on the desktop computer (Fedora 12, and oldie). It may seem paradoxical that I’ll read this in order to access the internet (…), but this is probably where I would look first. With my cellphone, which is also the temporary access point, that is.

In short, there’s a lot of stuff here particular to my own computer.

I’m using the small TP-LINK dongle (TL-WN725N), which is usually doing nothing in particular.

Notes to self This post is also on your local blog (copy-paste commands…) wlan1 is the Access Point dongle (maybe use it instead…?) Put the phone in the corner next to the door (that’s where I get a 4G connection) once the connection is established… … but not before that, so you won’t run back and forth Setting up the interface # service ADSL off # /etc/sysconfig/network-scripts/firewall-wlan0 # ifconfig wlan0 up # wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf ioctl[SIOCSIWAP]: Operation not permitted # iwlist wlan0 scan wlan0 Scan completed : Cell 01 - Address: 00:34:DA:3D:F8:F5 ESSID:"MYPHONE" Protocol:IEEE 802.11bgn Mode:Master Frequency:2.462 GHz (Channel 11) Encryption key:on Bit Rates:108 Mb/s Extra:rsn_ie =30140100000fac040100000fac040100000fac020c00 IE: IEEE 802.11i/WPA2 Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK IE: Unknown: DD5C0050F204104A0001101044000102103B00010310470010A7FED45DE0455F5DB64A55553EB96669102100012010230001201024000120104200012010540008000000000000000010110001201008000221481049000600372A000120 Quality:0 Signal level:0 Noise level:0 # iwconfig wlan0 essid MYPHONE # dhclient wlan0 &

Note that wpa_supplicant complained, and it was still fine. Use the -d or -dd flags for some debugging info.

It seems like the iwconfig is redundant, as wpa_supplicant handles this, thanks to the “scan_ssid=1″ attribute in the config entry (?). The DHCP client isn’t redundant, because the routing table isn’t set correctly without it (making wlan0 the default gateway)

Shutting down Kill wpa_supplicant (it was run as a daemon) Kill DHCP client: # dhclient -r Restart networking # service network restart # service firewall restart # service ADSL start WPA supplicant config file

The WPA supplicant scans wlan0 and finds matching SSIDs. If such is found, it sends the password. Looks like it handles the association.

/etc/wpa_supplicant/wpa_supplicant.conf should read:

ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="MYPHONE" scan_ssid=1 key_mgmt=WPA-PSK psk="MYPASSWORD" }

(it’s already this way)

本文系统(linux)相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统

主题: LinuxDHCADSLCSIDHCP4G
分页:12
转载请注明
本文标题:Manual wireless setting on Fedora 12
本站链接:http://www.codesec.net/view/533788.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(linux) | 评论(0) | 阅读(43)