[arch-general] netcfg: complete documentation available?

Alper Kanat tunix at raptiye.org
Tue Jul 5 10:54:36 EDT 2011


Hey There,

In addition to these, I can't find any documentation regarding bridged
connections need for such cases like openvpn and virtual machine needs.

---
Quis custodiet ipsos custodes?


On Tue, Jul 5, 2011 at 17:45, XeCycle <xecycle at gmail.com> wrote:

> 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
>


More information about the arch-general mailing list