Created
September 23, 2012 06:53
-
-
Save tsujimitsu/3769145 to your computer and use it in GitHub Desktop.
E-mobile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference | |
*1 http://mo.kerosoft.com/0165 | |
# TODO | |
- 再起動すると自動でDHCPでIPとってこれない | |
# Setting | |
$ chkconfig NetworkManager off | |
$ chkconfig network on | |
$ chkconfig --list | grep -i network | |
NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off | |
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
$ service NetworkManager stop | |
$ service network start | |
$ sudo ifconfig wlan0 up | |
$ wpa_passphrase "YOUR-SSID" "YOUR-wpa_password" >> /etc/wpa_supplicant/wpa_supplicant.conf | |
$ cat /etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=/var/run/wpa_supplicant | |
ctrl_interface_group=wheel | |
network={ | |
ssid="Network SSID" | |
#psk="WPA Password" | |
psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
} | |
$ vi /etc/wpa_supplicant/wpa_supplicant.conf | |
ctrl_interface=/var/run/wpa_supplicant | |
ctrl_interface_group=wheel | |
network={ | |
ssid="Network SSID" | |
key_mgmt=WPA-PSK | |
proto=WPA WPA2 | |
pairwise=CCMP TKIP | |
group=CCMP TKIP WEP104 WEP40 | |
#psk="WPA Password" | |
psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
} | |
# バックグラウンドで走らせる | |
$ wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0 -Dwext & | |
$ dhclient -d wlan0 | |
$ vi /etc/sysconfig/wpa_supplicant | |
INTERFACES="-iwlan0" | |
DRIVERS="-Dwext" | |
OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid" | |
$ chkconfig wpa_supplicant on | |
$ chkconfig --list wpa_supplicant | |
wpa_supplicant 0:off 1:off 2:on 3:on 4:on 5:on 6:off | |
$ vi /etc/sysconfig/network-scripts/ifcfg-wlan0 | |
DEVICE="wlan0" | |
BOOTPROTO="dhcp" | |
# HWADDR="XX:XX:XX:XX:XX:XX" | |
NM_CONTROLLED="yes" | |
ONBOOT="yes" | |
$ ifdown wlan0 | |
$ ifup wlan0 | |
service network restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference | |
*1 http://www.akakagemaru.info/port/gl01p.html | |
*2 http://www.akakagemaru.info/port/gl01p-wan.html | |
GL01Pはポート解放,グローバル公開できなさそう | |
→ プライベートIP(10.)が発行されているため*2 | |
# 内部ネットワークの構築 | |
設定>無線LAN設定>無線LAN基本設定>プライバシーセパレータ(無効) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment