Answers to: Connecting ubuntu internet appshttp://linuxexchange.org/questions/670/connecting-ubuntu-internet-apps<p>I have had some good advice as to how to connect my internet apps (which dont work) to the broadband modem which says it is connected. In response to one of the answers (from hippiejake) I gleaned the following from the terminal</p> <pre><code>-bruce@dell:~$ /sbin/ifconfig -a eth1 Link encap:Ethernet HWaddr 00:12:f0:80:6f:6f inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::212:f0ff:fe80:6f6f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:364 errors:0 dropped:0 overruns:0 frame:0 TX packets:1234 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:55827 (55.8 KB) TX bytes:57524 (57.5 KB) Interrupt:17 Base address:0x2000 Memory:dfdfd000-dfdfdfff lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:767 errors:0 dropped:0 overruns:0 frame:0 TX packets:767 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:111743 (111.7 KB) TX bytes:111743 (111.7 KB) wlan0 Link encap:Ethernet HWaddr 00:12:3f:d0:1d:bc UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:18 Memory:dfdfe000-dfe00000 </code></pre> <p>This seems to show that the ethernet is connected to the internet, but the wlan interface isn't. Is this the problem. How do i change it back to normal - with wlan on the internet?</p>enFri, 21 May 2010 20:25:46 -0400Answer by erikhttp://linuxexchange.org/questions/670/connecting-ubuntu-internet-apps/679<blockquote> <p>How do i change it back to normal - with wlan on the internet?</p> </blockquote> <p>There is some missing information here, but I assume you would like to connect a Linux PC to a wireless router+modem box. In that case, you have to configure your wireless card to talk to your wireless router. Then, you have to set up an IP address for your wireless card.</p> <p>You should be root when doing this.</p> <p>To connect to a wireless router/access-point, you will need to use /usr/sbin/iwconfig:</p> <p>For instance: # iwconfig wlan0 essid "MyWirelessNetwork" key "10AB20DF"</p> <p>To setup an IP you may: 1) Try running # dhclient wlan0 to get and IP from your router automatically via DHCP 2) Try running # ifconfig wlan0 192.168.1.4</p> <p>To not use eth1 for internet access, you may do lots of things. I would just unplug the cable.</p> <p>Cheers!</p>erikFri, 21 May 2010 20:25:46 -0400http://linuxexchange.org/questions/670/connecting-ubuntu-internet-apps/679