Ubuntu – default gateway setting for “universal” wifi adapter

network-managernetworkingrouterwirelessxfce

The data sheet for the IOGear Universal Wi-Fi N Adapter states that it supports Linux (Fedora 10 (Kernel: 2.6.27.5-117)) but has no directions in the manual.

When setting up the static IP address using the xfce network connections GUI:

enter image description here

page 33 of the manual gives these directions (for Mac):

Select your Ethernet connection in the left pane. Next change
configure to Manual and enter IP address 192.168.1.100 and Subnet Mask
255.255.255.0. Remove any entries in the Router and DNS boxes then click Apply.

Should the default gateway be 0.0.0.0? Or, should it be the ip address for the router (in this case, 192.168.0.1) from which the adapter obtains its internet connection? My reading of the wikipedia page on default gateway suggests yes, but I'm not sure.

Or, should it be the IP address for the adapter itself?

Best Answer

The Gateway should be the IP of the Router, that giving the connection to the Internet. Setting it to 0.0.0.0, won't get you anywhere. One way of finding out your gateway, is using a system that already connected to the internet, and just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

route

This the output: enter image description here

To add the default gateway, you can use the GUI utility that you have in your question, or from terminal. (in your case)

sudo ip route add default via 192.168.0.1
Related Question