I don't have wireless, and haven't played with it on linux. That said, you should also investigate "iwconfig".
Example lines:
# Show ipaddress, netmask, etc
ifconfig
# Show gateway, other routes
route
# activate the first ethernet card(eth0) and assign it an address
# (note that the syntax is not too strict with ifconfig. Things can be placed in different orders)
ifconfig eth0 up 192.168.0.2
# set a default gateway (after changing your ip address)
route add default gw 192.168.0.1
# line in resolv.conf to set a nameserver
# (good idea to do this first. You're box may not see a chage until you take the card down and back up again)
# Note that many, but not all, routers will handle dns for you.
nameserver 192.168.0.1
Again, it usually is best to set these in the config files. (I don't remeber which one off the top of my head)
|