Quick Tips on Networking with Linux
Sometimes you may boot your computer and find that the network is not up. You check the built in network tools, and can’t easily see what the problem is – time to drop to the command prompt to make some changes. Here are some tips:
Check you current settings:
ifconfig
Don’t see your network interface(s) listed? You may need to manually configure them. Try this:
ifconfig -a
to show you all of your interfaces. You are likely looking for ethx, where x is a number for your interface.
Now you’ll need to edit the network config file:
cd /etc/network
sudo vi interfaces
To add DHCP to a network interface, your config file should look like this (for eth1, for example):
auto eth1
iface eth1 inet dhcp
That’s the bare-bones basics. I’ll add more later.