[GLLUG] ifconfig
Bong Munoz
bong@techie.com
Thu, 24 Apr 2003 22:38:27 -0400
On Tuesday 22 April 2003 11:09 pm, Michael J McCarty wrote:
> Help please. As suggested at the last meeting, I ran ifconfig to
> look at the settings for the DSL wireless network that 'allows Linux
> but does not support it'.
On Thursday 24 April 2003 08:27 pm, Michael J McCarty wrote:
> Thanks for the help people. I don't think that DHCP is going to
> work--I have not setup a server to run it. I tried iwconfig with the
> following results. In addition, efforts to assign an IP address and
> subnet mask failed. If I'm reading this properly, I'm not getting a
> signal to the device--both signal level and noise level are -102 dbm.
>
> Mike
Mike, I'm running Slackware 8.1 on my notebook so you'll have to figure
out which boot script to modify for your distro. While logged in as
root in a console window, you first connect to your access point.
# iwconfig eth0 essid ${ACCESS_POINT_ESSID} mode managed key ${WEP_KEY}
where ACCESS_POINT_ESSID is the name you give to your access point and
WEP_KEY is the wep key you've assigned (formatted as XXXX-XXXX-XX).
Then, check your connection by typing
# iwconfig eth0
Once you're connected you need to connect to your network. If you're
not running DHCP then
# /sbin/ifconfig eth0 ${IP_ADDR} broadcast ${BROADCAST} netmask
${NETMASK}
where IP_ADDR is the ip address you've assigned to your machine,
BROADCAST and NETMASK should be self-explanatory.
If you can ping another machine using that machine's ip address then
you're set. All you have to do is to put the commands in one of your
boot scripts (rc.local?).
Oh, by the way, before you do anything make sure that you've loaded the
wireless card driver if you didn't compile it into your kernel.
Hope this helps.
--bong