Results 1 to 5 of 5
Hi,
this is partially in reference to
http://www.linuxforums.org/forum/topic-54469.html
I have a laptop with Slackware 10.1 and the discussed Wifi setup.
My question relates to the installation scripts for the network ...
- 09-03-2005 #1Just Joined!
- Join Date
- Aug 2005
- Posts
- 99
Using slackware with both ehternet card AND PCMCIA Wifi
Hi,
this is partially in reference to
http://www.linuxforums.org/forum/topic-54469.html
I have a laptop with Slackware 10.1 and the discussed Wifi setup.
My question relates to the installation scripts for the network setup.
Should I try loopback and what should I put for the nameserver/gateway data?
And is there a good manual way to configure slackware to use my wireless card as primary connection to the internet?
I'm totally willing to shutdown the ehternet card and related links as I won't be using that anymore, except for in emergencies.
If you would like me to post any data then let me know.
Thanks so much,
Marinus.
- 09-03-2005 #2Just Joined!
- Join Date
- Aug 2005
- Posts
- 3
if you want to make you wireless card your default connection so you should modify /etc/rc.d/rc.inet1.conf and comment the eth0 ( your wire card) configuration it will look like that.where eth1 is your wireless card
and you can put the nameservers in /etc/resolv.confCode:# Config information for eth0: #IPADDR[0]="10.0.0.2" #NETMASK[0]="255.255.255.0" #USE_DHCP[0]="" #DHCP_HOSTNAME[0]="" # Config information for eth1: IPADDR[1]="10.0.0.3" NETMASK[1]="255.255.255.0" USE_DHCP[1]="" DHCP_HOSTNAME[1]="" # Default gateway IP address: GATEWAY="10.0.0.1"
you can also put the hostnames in /etc/hosts
- 09-03-2005 #3Just Joined!
- Join Date
- Aug 2005
- Posts
- 99
SOLVED!!
I added the following to rc.d/local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:
echo "Connecting to linksys"
iwconfig ath0 essid "linksys"
iwlist ath0 scan
iwconfig ath0 essid "linksys"
iwconfig ath0 mode "Managed"
iwconfig ath0 rate "auto"
ifconfig ath0 up
iwconfig
/sbin/dhcpcd ath0
the dhcpcd must have done the trick.
Thank you for your added input!
Marinus.
- 09-03-2005 #4Just Joined!
- Join Date
- Aug 2004
- Posts
- 17
Actually, in Slackware, wireless devices will always be recognized before regular ethernet cards. /etc/rc.d/rc.pcmcia is executed before /etc/rc.d/rc.modules.
I've modified my rc scripts to always start ethernet before wireless. Now I know that eth0 will always be the actual ethernet port on my laptop and not my Lucent card.
And, in this case, rc.inet1.conf would not have worked because the device is ath0, not eth0.
$0.02
- 09-03-2005 #5Just Joined!
- Join Date
- Aug 2005
- Posts
- 3
Actually in slackware my ethernet card was the default connectinon (eth0) and every time i reboot i must do that to make my wireless card(eth1) working
Originally Posted by geskorup
ifconfig eth0 down
/etc/rc.d/rc.inet1 restart eth1
so when comment the eth0 information in /etc/rc.d/rc.inet1.conf
that will prevent eth0 from being UP .and eth1 will work on startup


Reply With Quote