Networking with 10.2.4

Samuel Rydh mol-devel@lists.maconlinux.org
Tue, 25 Feb 2003 13:19:17 +0100


On Tue, Feb 25, 2003 at 06:32:57AM +0100, Lars Weiler wrote:
> First, mol has problems loading the network-device-driver.
> The first time I started after installing the new version, I
> recognized the "MOL-Install"-folder on the desktop and
> installed it.  After relaunching mol, the network-device has
> been found

> (but I had troubles with the DHCP -- later more
> -- so that I stopped mol). 

You need to uncomment the line

	#ddns-update-style	ad-hoc;

in /etc/mol/dhcpd-mol.conf if you are using a recent dhcpd
version.

> During the next launch the driver has been vanished.

What do you mean by vanished... does the network device
show up in the control panel? What does the MOL log show?
Does 'dmesg' in OSX say something interesting?

The MOL-install disk is only mounted when MOL detects that
the network driver or the audio driver is not up-to-date
(or installed at all). (Btw. one can force it to always
be mounted by adding 'mount_mol_disk: always').

> After several stopping-and-restarting-mol-actions I deleted the
> folder /System/Library/Extensions/MolEnet.kext/ and installed the
> package in "MOL-Install" again.  Then, for the next session,
> the network-device has been found!  But a session later it
> has been vanished again...  deleting and reinstalling the
> .kext will bring it for the next session, and so on, and so
> on...

Odd... I would guess it doesn't have anything with the MolEnet
extension but rather with the linux side tun configuration.

For instance, if the dhcpd server is not stopped, then tun
device will be busy when MOL tries to open it the next
time.

> Then, to the other problem.  The line
>  IFACES=`netstat -i | sed -e 's/^\(tun[0-9]\)\|.*/\1/g'`
> in /etc/mol/tunconfig won't output anything (instead of
> blank lines) while the tun-interface is up.  Maybe the
> output of netstat -i changed or the regexp of sed...  If you
> change the line for testing purposes to
>  IFACES=`netstat -i | perl -ne 'print if s/^(tun[0-9]).+/\1/g'`

Thanks... I've changed the regexp to

    IFACES=`netstat -i | sed -n -e 's/^\(tun[0-9]\).*/\1/gp'`

The original regexp depends upon the matching order (which apparently
is not always left-to-right).

/Samuel