Wireless Guide for the University of Toronto
USEFUL LINUX COMMANDS
ifup eth1 # starts up network device "eth1"
ifdown eth1 # takes down network device "eth1"
iwconfig # wireless config
ifconfig # networking config
route # show/manipulate the IP routing table
nameif # name network interfaces based on MAC addresses -- assoc. w/ "/etc/mactab"
THE BASIC CONFIG
# iwconfig eth1 essid "UTORwin"
SET NETWORK KEY
# iwconfig eth1 key s:UToronto1home
STARTING THE NETWORK
# ifdown eth1
# ifup eth1 # start network
GOTO THE FOLLOWING ADDRESS TO LOGIN
EDITING "/etc/network/interfaces" SHOULD AUTOMATE THIS...
cobalamin:/etc/network# more interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# This entry denotes the loopback (127.0.0.1) interface.
iface lo inet loopback
# This entry was created during the Debian installation
iface eth0 inet dhcp
# This entry was added manually for fixed IP address networking
#iface eth0 inet static
# This entry was added manually to facilitate wireless networking
iface eth1 inet dhcp
FIXING THE MAC ADDRESS...
The MAC address (appears as "hwaddr" in 'ifconfig')
Is defined in "/etc/mactab"
You can see this when logining in with windows
# created by MB on 9 May 2004
# for details see:
eth0 XX:XX:XX:XX:XX:XX # ethernet
eth1 XX:XX:XX:XX:XX:XX # wireless
FINAL NOTE - if the wireless modem isn't on when booting up there is a problem.
This is probably fixed by assigning MAC addresses in "/etc/mactab"
To insure that multiple nic cards are always addigned the proper eth*, you can use
nameif, part of the net-tools package. You configure nameif with /etc/mactab. Each
NIC has it's own mac-address. In /etc/mactab, you rename a network interface based
on a mac-address. mactab should look something like"
In the above example, I'm using a 4 port NIC, which explanes why the mac-addresses
are almost the same. Hope this helps. I added the "nameif -s" command string to the
begining of /etc/init.d/checkroot.sh. Hope this helps. -mk
Disclaimer: This page does not represent the
University of Toronto in any way, shape or form.
Last modified: August 27, 2005.