A few basic network commands on Linux

A few basic network commands for the benefit of my friend who's just installed Ubuntu on his laptop...

To see what id you're wireless card has got:
iwconfig

Then to restart the interface (change the eth1 id to match your system):
sudo ifdown eth1
sudo ifup eth1

This should kick things into life. However if you still don't get an IP address from the router try:
sudo dhclient

0 comments: