Author: Francisco Miralha da Silveira
Date: 29-03-05 19:15
I got it !!!!
#
# [========================================================]
# [ station1 (10.0.0.5-pccard) ]
# [ `-wireless----------> +-----------------------+ ]
# [ | (10.0.0.5-wi0) | ]
# [ | this machine | ]
# [ | (250.200.150.100-wi1) | ]
# [ <-----wireless------ +-----------------------+ ]
# [ ISP(250.200.150.254) ]
# [========================================================]
# 1. I'm using 2 adapters PCMCIA->ISA Vadem 469
# 2. The first one has no jumper seted
# 3. The second one, has the first position jumper closed [:] : :
# 4. Reset the machine, press DEL, enter in BIOS
# and RESERV 2 IRQs for LEGACY/ISA !!!
# I used IRQ 3 and 4, and I disabled everything I'll not use:
# USB, COM1, COM2, PRINTER, INFRARED, etc.
# gateway
defaultrouter="250.200.150.254"
# hostname
hostname="home_fms.myisp.com"
# my ethernet board
ifconfig_rl0="inet 192.168.0.1 netmask 255.255.255.0"
# Wireless
pccard_enable="YES"
pccard_conf="/etc/pccard.conf"
ifconfig_wi0="inet 10.0.0.1 netmask 255.255.255.0"
ifconfig_wi1="inet 250.200.150.100 netmask 255.255.255.0"
natd_enable="YES"
natd_interface="250.200.150.100"
gateway_enable="YES"
router_enable="YES"
router="/sbin/routed"
router_flags="-q"
nfs_reserved_port_only="YES"
sshd_enable="YES"
kern_securelevel_enable="NO"
usbd_enable="NO"
################
# end of rc.conf
################
# Let's start modifying the kernel-configuration
cd /usr/src/sys/i386/conf
ee mykernel
# 5. Insert this four lines in your kernel-conf:
# PCCARD (PCMCIA) support
device card
device pcic0 at isa? irq 0 port 0x3e0 iomem 0xd0000
device pcic1 at isa? irq 0 port 0x3e2 iomem 0xd4000
# 6. Now you need to recompile the kernel
# ONE TIP: NEVER compile the kernel with the pccards inserted in ISA/PCMCIA boards!!!
config mykernel; cd ../../compile/mykernel; make depend; make; make install; reboot
# 7. I'm using this /etc/pccard.conf:
#####################
# /etc/pccard.conf
#####################
io 0x210-0x360
irq 5 7 10 11
memory 0xd0000 96k
# Lucent WaveLAN/IEEE
card "Lucent Technologies" "WaveLAN/IEEE"
config 0x1 "wi0" ?
insert /etc/pccard_ether wi0 start
insert /etc/pccard_cfgwi0
remove /etc/pccard_ether wi0 stop
config auto "wi1" ?
insert /etc/pccard_ether wi1 start
insert /etc/pccard_cfgwi1
remove /etc/pccard_ether wi1 stop
# Avaya
card "Avaya Communication" "Avaya Wireless PC Card"
config 0x1 "wi0" ?
insert /etc/pccard_ether wi0 start
insert /etc/pccard_cfgwi0
remove /etc/pccard_ether wi0 stop
config auto "wi1" ?
insert /etc/pccard_ether wi1 start
insert /etc/pccard_cfgwi1
remove /etc/pccard_ether wi1 stop
####################
# end of pccard.conf
####################
# 8. Settings for wi0 pccard (it will be used to my internal network)
ee /etc/pccard_cfgwi0
####################
# /etc/pccard_cfgwi0
####################
wi=wi0
wicontrol -i ${wi} -t 3
wicontrol -i ${wi} -n "homenet"
wicontrol -i ${wi} -s mygateway
wicontrol -i ${wi} -p 1
wicontrol -i ${wi} -f 1
# X1y32 is the password for your internal network
# it should have 5 chars (silver pccards)
wicontrol -i ${wi} -k X1y32 -v 1
wicontrol -i ${wi} -T 1
wicontrol -i ${wi} -e 0
wicontrol -i ${wi} -c 1
wicontrol -i ${wi}
ifconfig ${wi}
######################
# end of pccard_cfgwi0
######################
# 9. Settings for wi1 pccard
# (will connect this machine to my ISP)
ee /etc/pccard_cfgwi1
######################
# /etc/pccard_cfgwi1
######################
wi=wi1
wicontrol -i ${wi} -t 3
wicontrol -i ${wi} -n "ISP_wireless_network_name"
wicontrol -i ${wi} -s home_fms
wicontrol -i ${wi} -p 1
wicontrol -i ${wi} -f 1
# 8a23b is the password on the ISP network
# If your ISP do not use passwords, put a '#' at the beggining of next line
wicontrol -i ${wi} -k 8a23b -v 1
wicontrol -i ${wi} -T 1
wicontrol -i ${wi} -e 0
wicontrol -i ${wi} -c 1
wicontrol -i ${wi} | grep -i com
wicontrol -i ${wi}
ifconfig ${wi}
######################
# end of pccard_cfgwi1
######################
# That's all folks. I hope this can be useful for you.
#
# Tips to remember:
# - reserve IRQS for Legacy/ISA on Bios
# - do not compile kernel with the pccards inserted in
# - be sure to use free IRQs on pccard.conf
# - this should work, if it does not,
# try to put your HD on other machine
# - the second card delays a little to get active when
# you reset, but, don't worry.
#
# My permanent thanks to: Luis Pfau and Alexandre Brito
##################################################################
fms@hy.com.br
|
|