[arch-general] netcfg: complete documentation available?
XeCycle
xecycle at gmail.com
Tue Jul 5 10:45:39 EDT 2011
Hello, I am now trying netcfg for managing network connections, however
I encountered some problems, and I didn't find the solution in the
manual or the ArchWiki. So I wonder whether a complete documentation is
available.
The two problems I encountered are:
1. Ad-Hoc wireless lost ESSID.
I used this (working) script to connect:
> #!/bin/bash
> NET_ESSID="ssid"
> NET_KEY="passwd"
> NET_GATEWAY="192.168.0.1"
> NET_MYIP="192.168.0.3"
> iwconfig wlan0 mode ad-hoc
> ifconfig wlan0 up
> iwconfig wlan0 essid $NET_ESSID key "s:$NET_KEY" channel auto
> ifconfig wlan0 $NET_MYIP
> route add default gw $NET_GATEWAY
I tried to do the same with netcfg. Here is the profile:
> CONNECTION='wireless'
> DESCRIPTION='Wi-Fi at home'
> PRE_UP="ip link set wlan0 down; iwconfig wlan0 mode ad-hoc"
> INTERFACE='wlan0'
> SECURITY='wep'
> ESSID='ssid'
> KEY='s:passwd'
> IP='static'
> ADDR='192.168.0.2' # Please ignore this difference, I'm sure it's unused
> GATEWAY='192.168.0.1'
> DNS=('8.8.8.8')
> # Uncomment this if your ssid is hidden
> #HIDDEN=yes
However, I cannot connect it. I've configured my conky to monitor
network connections, from what it showed, the ESSID is associated first,
then lost after a few seconds.
2. PPPOE won't start by itself.
Here's the simple profile:
CONNECTION='ppp'
INTERFACE='eth0'
PEER='provider'
PPP_TIMEOUT=10
When I run `sudo netcfg ppp`, it just got stuck there. Then I opened
another terminal, and ping some IP, then it got connected.
Thank you. These two problems have been bothering me for a week.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20110705/a109c344/attachment.asc>
More information about the arch-general
mailing list