# Troubleshooting

Since the introduction of NetworkManager, connections can be enabled and disabled from the NetworkManager icon in the System Notification Area.

Before attempting any troubleshooting, ensure that the connection is enabled:

1. Right click the Network Manager icon in the notification area.

2. Check Enable Networking.

3. Check Enable Wireless.

## Wired troubleshooting

If you have a network connection which is not working properly, you can use a few tools to help diagnose what the problem is.

Most of the tools in this section require use of the Terminal, which you can open by pressing &terminal;.

### Get information about the current connection

ifconfig is intended to allow you to change the settings of your network connections, but it can also be used to list information about the current connection.

1. Press &terminal; to open a Terminal

2. Type `ifconfig eth1` in the Terminal and press Enter, replacing eth1 with the name of your network interface if it is different.

   - inet addr gives the current IP address of the connection

   - HWaddr gives the MAC address of your network device

### Check if a connection is working properly

A good way of checking if a connection is working properly is to ping another computer on the network or the Internet.

To check if you are connected to the Internet:

1. Press &network-tools;

2. Select the Ping tab

3. Type `ubuntu.com` into the Network address box and then press Ping

4. After a while, a graph should appear. Look at the number for Successful packets under Transmission Statistics

   - 100% successful packets - Your computer should have a good connection to the Internet

   - Less than 100% successful - Your computer probably has a poor connection to the Internet or a poor wireless signal

   - 0% successful packets - Your computer has a very bad connection, or is connected to an access point or router which is not connected to the Internet

If you get an error message which says The address 'ubuntu.com' cannot be found, then your computer is probably not connected to the Internet or cannot reach a DNS server.

## Wireless troubleshooting

While not exhaustive, this section covers some common problems faced with wireless support.

There is much more information available from the Community Documentation.

This troubleshooting guide is designed to be carried out in order. If you reach the end of a section and are not directed to another - then try and should it fail begin at the start again.

### Check that the device is on

1. Many wireless network devices can be turned on or off. Check to see if there is a hardware switch, some devices can be switched off from Windows and may need to be turned back on from Windows.

2. If it is turned on then see .

### Check for device recognition

1. Open a Terminal (&terminal;) and type the command: `sudo lshw -C network`

You should see an output, along with the words "CLAIMED, UNCLAIMED, ENABLED or DISABLED"

1. Claimed - this indicates a driver is loaded but not functioning, see

2. Unclaimed - there is no driver loaded, see .

3. Enabled - there is a driver loaded, see .

4. Disabled - see .

### Using Windows Wireless Drivers

Ubuntu supports a system known as NDISWrapper. This allows you to use a Windows wireless device driver under Ubuntu.

1. Obtain the Windows Driver for your system and locate the file that ends with `.inf`.

2. Install the ndisgtk package.

3. Open ndisgtk (&ndisgtk;).

4. Select Install new driver.

5. Choose the location of your Windows .inf file and click Install.

6. Click OK.

### Check for a connection to the router

1. Open a Terminal (&terminal;) and type the command: `iwconfig`.

2. If the ESSID for our router is shown there may be a problem with ACPI support. Boot the kernel with the `pci=noacpi` option.

### Check IP assignment

1. Open a Terminal (&terminal;) and type the command: `ifconfig`.

2. If there is an IP address shown see .

3. From the Terminal enter the command: `sudo dhclient if_name` where if_name is the connection listed earlier.

4. If you receive a message that says `bound to xxx.xxx.xxx.xxx` then see

5. If not then reboot the system.

### Check DNS

1. Open a Terminal (&terminal;) and type the command: `ping -c3 85.190.27.2`.

2. Now type the command: `ping www.ubuntu.com`. If you get a response from both then see .

3. Type the command: `cat /etc/resolv.conf`. If there is no nameserver listed then contact your ISP and find out your primary and secondary domain name servers. Once you have this information see .

### IPv6 Not Supported

1. IPv6 is supported by default in Ubuntu and can sometimes cause problems.

2. To disable it, open a Terminal (&terminal;) and type the command: `gksudo gedit /etc/modprobe.d/aliases`.

3. Find the line `alias net-pf-10 ipv6` and change it to read `alias net-pf-10 off`.

4. Reboot Ubuntu.

## Mobile broadband troubleshooting

Some USB mobile broadband devices are not identified correctly in Ubuntu. This is because of a feature that allows them to appear as USB storage devices to install drivers in Windows and Mac OS. Try unmounting or ejecting the device by right clicking the icon on the desktop and selecting Unmount or Eject.

If your device is still not recognized, you can file a bug against the udev package using the following command in terminal:

    ubuntu-bug udev

## Why does Gnome Keyring ask for my password whenever I log in?

You may be asked for a password every time you log in so that you can connect to a network. You can stop this from happening like so:

1. Right click the Network Manager icon and choose Edit Connections.

2. Go to the Wireless tab, select the connection you are using and click Edit.

3. Check Available to all users and click Apply. Enter your password when asked.

The next time you log in, you should not need to enter your password in order to connect to your network connection.