FLI4L mit ELSA LANCOM AirLancer MC-2, ein "Mini" - Tutorial

Hartmut Wagner

Nachfolgend wird die Einrichtung eines FLI4L-Routers beschrieben, der mittels einer Wireless-LAN-Card (AirLancer MC-2) mit einer Übertragungsleistung von bis zu 2 Mb/s an ein kleines Netz angebunden wird. Der Router ist über ein Telekom-Modem mit T-DSL an das Internet angebunden. Die Leistung der MC-2 reicht aus, um die gebotene Downloadrate von 768 Kb/s voll auszureizen. Ein Mini-Howto für die Anbindung höherer Bandbreiten mittels einer AirLancer MC-11 ist in der FLI4L-Howto-Sammlung für eine vorherige FLI4L-Version vorhanden.

Dieses Minitutorial geht davon aus, dass die Installationsanleitung von FLI4L vorliegt. Es beschreibt daher nur die Abweichungen von der Standardinstallation. Ihm liegt folgende Konfiguration zu Grunde:

Hardware:

Software:

Installationvorbereitung: Zuerst werden die o.a. Softwarepakete entsprechend den Anweisungen vom FLI4L-Server heruntergeladen und ausgepackt. Das dabei angelegte Basisverzeichnis wird hier als fli4lhome bezeichnet.

Die Installation erfolgt dann in 3 Schritten:

  1. Anpassen der Konfigurationsdateien
    Nachfolgend werden die Abschnitte der Konfigurationsdateien aufgeführt, in denen Änderungen vorgenommen wurden. Die geänderten Zeilen sind grau hinterlegt.
fli4lhome/config/base.txt
        #------------------------------------------------------------------------------
        # Ethernet card drivers:
        # uncomment your ethernet card
        #------------------------------------------------------------------------------
      
        ETH_DRV_N='2'                   # number of ethernet drivers to load, usually 1
      
        ETH_DRV_1='ne'                  # ISA: NE2000 ISA clone (eg. Realtek 8019,
                                        # Accton 16xx, NatSemi 8390, UMC 9003/9008)
      
        ETH_DRV_2='wl24_cs'             # PCMCIA: ELSA Airlancer MC-2

        ETH_DRV_1_OPTION='irq=10 io=0x300' # additional option, e.g. 'io=0x340' for ne
        ETH_DRV_2_OPTION=''
      
        #------------------------------------------------------------------------------
        # Ether networks used with IP protocol:
        #------------------------------------------------------------------------------
        IP_ETH_N='1'                        # number of ip ethernet networks, usually 1
      
        # feste Namensvergabe, da sonst das Funk-LAN mit dem Internetzugang vertauscht wird!
        IP_ETH_1_NAME='eth1'                # optional: other device name than ethX
      
	IP_ETH_1_IPADDR='192.168.6.1'       # IP address of your n'th ethernet card
	IP_ETH_1_NETWORK='192.168.6.0'      # network of your LAN
	IP_ETH_1_NETMASK='255.255.255.0'    # netmask of your LAN
      
        #------------------------------------------------------------------------------
        # Domain configuration:
        #------------------------------------------------------------------------------
      
        START_DNS='yes'                     # start dns server: yes or no
        DNS_FORWARDERS='194.25.2.129'       # DNS server of T-Online
      
	DNS_VERBOSE='no'                    # log queries in /usr/local/ens/ens.log
	DOMAIN_NAME='lan.fli4l'             # your domain name
	DNS_FORBIDDEN_N='0'                 # number of forbidden domains
	DNS_FORBIDDEN_1='foo.bar'           # 1st forbidden domain
	DNS_FORBIDDEN_2='bar.foo'           # 2nd forbidden domain
	HOSTS_N='4'                         # number of hosts in your domain
	HOST_1='192.168.6.1 fli4l'          # 1st host: ip and name
	HOST_2='192.168.6.2 client2'        # 2nd host: ip and name
	HOST_3='192.168.6.3 client3'        # 3rd host: ip and name
	HOST_4='192.168.6.4 client4'        # 4th host: ip and name
      
        #------------------------------------------------------------------------------
        # imond configuration:
        #------------------------------------------------------------------------------
      
        START_IMOND='yes'                   # start imond: yes or no
      
	IMOND_PORT='5000'                   # TCP-Port, see also FIREWALL_DENY_PORT_x!
	IMOND_PASS=''                       # imond-password, may be empty
	IMOND_ADMIN_PASS=''                 # imond-admin-password, may be empty
	IMOND_LED=''                        # tty for led: com1 - com4 or empty
	IMOND_BEEP='no'                     # beep if connection going up/down
	IMOND_LOG='no'                      # log /var/log/imond.log: yes or no
	IMOND_LOGDIR='/var/log'             # log-directory, e.g. /var/log
	IMOND_ENABLE='yes'                  # accept "enable/disable" commands
	IMOND_DIAL='yes'                    # accept "dial/hangup" commands
	IMOND_ROUTE='yes'                   # accept "route" command
	IMOND_REBOOT='yes'                  # accept "reboot" command
      

fli4lhome/config/dsl.txt
	#------------------------------------------------------------------------------
	# Optional package: PPPoE
	#------------------------------------------------------------------------------
      
	OPT_PPPOE='yes'                 # use ppp over ethernet: yes or no
	PPPOE_NAME='T-DSL'              # circuit name, don't write spaces
	PPPOE_USEPEERDNS='yes'          # use dns server of your provider: yes or no
	PPPOE_ETH='eth0'                # eth card connected to ADSL modem, e.g. 2nd
	PPPOE_USER='nnnnnnnnnnnnnnnnnnnnnnnn0001@t-online.de'           # username
	PPPOE_PASS='nnnnnnnn'           # password	!
      
	PPPOE_DEBUG='no'                # enable pppd debugging, 'yes' or 'no'
	PPPOE_HUP_TIMEOUT='600'         # idle time after which to hangup
	PPPOE_CHARGEINT='60'            # value of charge interval (in seconds)
	PPPOE_TIMES='Mo-Su:00-24:0.0:Y' # times/charges when LCR
      

fli4lhome/config/pcmcia.txt
	#------------------------------------------------------------------------------
	# Optional package: PCMCIA support:
	#------------------------------------------------------------------------------
      
	OPT_PCMCIA='yes'                # pcmcia cards used: yes or no
      
	PCMCIA_PCIC='i82365'            # pcmcia socket driver: 'i82365' or 'tcic'
	PCMCIA_PCIC_OPTS=''             # option for socket driver, usually empty
	PCMCIA_CORE_OPTS=''             # option for pcmcia core driver, usually empty
	PCMCIA_CARDMGR_OPTS=''          # option for pcmcia card manager, usually empty
      

fli4lhome/opt/etc/pcmcia/config.opts
	#
	# Local PCMCIA Configuration File
	#
	# System resources available for PCMCIA devices
	#
	include port 0x100-0x4ff, port 0x1000-0x17ff
	include memory 0xc0000-0xfffff
	include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
	#
	# Extra port range for IBM Token Ring
	#
	include port 0xa00-0xaff
	#
	# Resources we should not use, even if they appear to be available
	#
	# First built-in serial port
	exclude irq 4
	# Second built-in serial port
	#exclude irq 3
	# First built-in parallel port
	exclude irq 7
	#
	# Examples of options for loadable modules
	#
	# To fix sluggish network with IBM ethernet adapter...
	#module "pcnet_cs" opts "mem_speed=600"
	#
	# Options for Xircom Netwave driver...
	#module "netwave_cs" opts "domain=0x100 scramble_key=0x0"
	#
	# Options for IBM Token Ring adapters
	#module "ibmtr_cs" opts "mmiobase=0xd0000 srambase=0xd4000"
	#
	#
      
	# module "wavelan2_cs" opts "port_type=3"

	module "wl24_cs" opts "networkname=MYNET networktype=0 Channel=10 LLCType=1"
      
	# networktype: 0=Infrastructure (Accesspoint available), 1=adhoc
	# LLCType:     0=IEEE 811.x                              1=WaveLAN compatible
      

Ab Version fli4l 2.07 ist noch folgendes einzutragen:

fli4lhome/opt/etc/pcmcia/config
	#
	# Device driver definitions
	#
	# These should generally not be changed!
	#
      
	device "wl24_cs"
	class "network" module "wl24_cs"
      
	#
	# Ethernet adapter definitions
	#
      
	card "ELSA AirLancer MC-2"
	version "ELSA","AirLancer MC-2"
	bind "wl24_cs"
      

  1. Erstellen der Routerdiskette
    Die Routerdiskette wird wie in der FLI4L-Installationsanweisung erstellt.
  2. Starten des Routers
    siehe Installationsanweisung

Der Router sollte jetzt laufen. Weitere Pakete (z.B. hd) können jederzeit eingebunden werden. Dabei benötigte Änderungen der Konfiguration sind ohne Einfluss auf die oben vorgenommenen Einstellungen.
Sollten sie nur über einen ISDN-Zugang zum Internet verfügen, so können sie die obige Anpassung der Konfigurationsdateien analog verwenden. Ersetzen Sie nur die DSL-Konfiguration durch die ISDN-Angaben. Die feste Namensvergabe der Netzwerkkarte können sie sich dann sparen.

Und nun viel Spaß beim Surfen über ein Funk-LAN. Januar 2003

w.hartmut.wagner@t-online.de

Klicken Sie hier, um die Seite auszudrucken.