Ubuntu Networking :: Setup As Router Box And WiFi Hotspot?
May 12, 2010
I've got an Ubuntu box set up as a router and wifi hotspot. I can access the internet and any website using this box. I can connect a laptop to my wifi access point, and connect to both the router box and the internet. I'm writing this message from it. If I access either hsbc Hong Kong internet banking or speedtest.net from my laptop I can't connect. Every other site I've tried is fine. What could be causing this? I don't know where to start. I've set up the firewall rules and routing tables, so I vaguely know what I'm doing... but clearly not enough to debug this issue.
1) it cannot see any networks around 2) i cannot setup it in master mode to use my PC as a router
As far as i can see, the device is recognized and the correct driver (rt73usb) is loaded. I was able to connect to a laptop somehow (the laptop could see other networks and the adapter's PC-to-PC network). I'd like to make it work as a router, i.e. share my internet connection (eth0) via wlan0. Here is what i have:
Code: Ubuntu 10.04 Linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux TP-Link TL-WN321G wifi usb adapter as seen as Bus 001 Device 006: ID 148f:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter $ iwconfig wlan0 wlan0 IEEE 802.11bg ESSID:off/any [Code]....
I occasionally stay at hotels where I get free wired internet but not wifi, I'd like to use my laptop as an access point so that I can have internet on my Ipod Touch. I know it's possible because after trying unsuccessfully in Ubuntu 9.04 a few times I decided to try it with windows vista and it took me a matter of seconds and both the laptop and ipod touch were surfing the internet. I'd prefer not to boot into windows just for this.
In ubuntu when I create a new wireless network, network manager shows that I'm connected to both the autoeth0 and the wireless network I created but neither computer has internet access.
I often connects my laptop (Asus EEE) to my HTC desire hd with the wifi hotspot. But this doesn't work since yesterday when I upgraded to 11.04. When I connect the laptop to the phone the screen on the laptop goes black with a lot of scrolling text then it freezes.
This worked out of the box without any problems with 10.10.
I have two computers: - one is my desktop, running ubuntu. it has two NIC's one is wired (eth0), the other is wireless (wlan0). - the other is my laptop, running archlinux. two NIC's as well (eth & wlan).
I would like to connect my desktop to my router via eth0 and connect my laptop to my desktop via wlan0, providing internet access to my laptop. i would like both computers to be able to use the internet simultaneously (not all packets would be forwarded).
Any manner of doing this would be ok, but if this is a simple enough task to do it by simply configuring some files (e.g. /etc files) rather than installing some unnecessarily big application, then that would be wonderful!
Also, not really as high a priority but if possible, i would like this to perhaps not be limited to my laptop. connecting any device (a psp or pda for example) to the internet this way (making it a hotspot in a sense) would be super! encrypting the connection (WEP for instance) would be ultra-mega!
Miscellaneous info:my desktop uses dhcp to connect to the router.
I have a pc which has 2 network cards, 1 wifi and 1 ethernet card.
I'm using wifi card to connect to wifi network (internet) and i'm planing to share this wifi/internet connection via ethernet to wireless router (siemens sx763) so i can have internet on my other devices, e.g. mobile phone, laptop.
the only error message I can find comes from "dmesg|tail"all it shows is "no IPv6 router"any body know what is going on here or where where to look for more clues the next time I get around public wifi Oh the windoze washers and apple polishers don't seem to have any problems at all
I'm having trouble getting my network set up the way that I want it/had it. You see, when I first set up my network, I just had my cable modem going directly to my standard wired router (A D-Link DI-604), which had DHCP,and was connected to all of the computers on my network. I had one switch hooked up to one of the ports of the router, but this was a regular switch, and it would not try to assign IP addresses, it would just pass through the DHCP info as I wanted.
Now however, my network setup has changed. My room mate and I both got laptops, and we decided that we wanted to have wireless access so we didn't have to constantly plug in to the router.
Now my network is set up like this: The modem is hooked up to the router(DI-604), which is hooked up on the LAN side to our computers, our switch (which is hooked up to 3 more computers), and to a wireless router card (A Gigabyte GN-BC01).
The wireless router card has two jacks for ethernet. One for WAN, and one for LAN. The LAN side we have plugged only into the computer in which the card is installed.
Now the problem is this: The wireless router card comes with DHCP by default, and it's assigning addresses to the laptops and to the computer hat it's in, and worse, the IP addresses are on a different subnet than that of the main dlink router. The Main (dlink) router assigns addresses from 192.168.0.1 (itself) to 192.168.0.254, while the wireless router card assigns addresses from 192.168.1.1 to 192.168.1.254 (itself).
Because of this, I cannot access services on the wireless network from my wired network or vice versa. The first thing I tried was setting the card to assign addresses from 192.168.0.12 to 192.168.0.253, however it just said "internal error" when I tried to do this. I decided that this may be because it sees that it was being assigned an address on it's WAN side on the same subnet. So the next thing I tried was disabling DHCP and setting the "LAN IP Address" to 192.168.0.12, hoping that the DHCP would just go through the card, like a switch. I would have set the LAN IP address to be assigned by DHCP, but this was not an option, so I decided that'd be the best thing to set it to.
Once again however, setting the LAN ip address to an address on the same subnet as that of the IP assigned to it's WAN side caused it to report an "internal error". I verified that this was the issue by setting the LAN address to several other private IP addresses to test (I.E. 10.0.0.1, 192.168.3.1, 192.168.5.12).
My question then really is: How do I set up both routers so that I can access services and computers from each network from the other network. Should I set them with different subnets and set the gateway on the wireless network to the main router? To the wireless router card? Should I put them on the same subnet? Will it know how to communicate?
Here is a link to (picture) my network diagram. Network Diagram
I am trying to connect to a paid for hotspot service. There is no encryption for the wifi.
In Windows you connect to the hotspot, and then any webpage that you attempt to connect to results in you being redirected to their login page.
Once you have put a username and password into their page, the internet works. I know the hostname and IP address of the login page so actually I can go straight there if necessary.
With Debian I have tried Network Manager, WICD and command line iwconfig and dhclient.
With Network Manager or WICD the connection just will not start. It seems to connect to the hotspot then immediately fall off before you can go to the login page.
With iwconfig and dhclient I get mode Managed not-associated. Sometime dhclient seems to return an IP address sometimes not. I'm not sure if it's because it already has an address in it's lease lifetime.
I think that dhclients sends a ping once the connection is up to verify the link? But this will not work until the page is logged into.
Windows "just works" even warning you that you need a login page and then loading it. How I can use this wifi service with Linux?
I think I have unique problem. I have a d-link DWL G510 rev c.(Austrailian) WiFi card in my pc which is detected as
Network controller : RaLink RT2561/RT61 rev B 802.11g [1814:0302] in lspci -nn.
lo no wireless extensions. eth0 no wireless extensions. wlan0 IEEE 802.11bg ESSIDff/any Mode:Managed Access Point: Not-Associated Tx-Power=6 dBm Retry long limit:7 RTS thrff Fragment thrff Power Managementff ppp0 no wireless extensions.
Now sometimes it detects my wifi router and shows its ssid in nm-applet. but when I try to connect, it tries for 3 or 4 minutes and then fails. for most of time it even does not finds my router.
I have a Dell Studio XPS15 laptop running 11.04 which works flawlessly with my router (it's a broadcom card btw). Now I'm setting up a new laptop for my Father-in-law which is a Dell Inspiron 15 which has intel Centrino 1000 wireless. I've installed and setup 11.04 on it. Everything runs great except..
Now it can see all the access points around so I assume the wireless card is properly detected and working. But when I try to log into my router and give it my password, it just keeps trying to connect and can't. I've double checked the settings with my own laptop and everything seems the same. why it won't log in? I'm leaving it as a dual boot with Win7 and I know that Win7 will log into the same router with the same password.
trying to run 10.04 netbook live from a memory stick with a view to installing it on my laptop. However although I can see my wireless router and connect to it I cannot access the internet. I have tried this on my laptop and desktop with the same result. I was however able to download Seamonkey browser using the software manager....this also cannot access the internet. Both of my PC's have no problem when using XP or Linux Mint.
I have also discovered that if I piggyback, using Ubuntu 10.04, on a neighbours open wifi link I can gain access to the internet. My wifi is using WEP protection but as I said I can set the link up to the router, entering the appropriate key code, and have a good signal strength, I just cannot access a google search page.
Upgraded broadband service yesterday and now using a combined router and modem (Virgin Media Hub). But I now have no wired or wifi internet connectivity on either of my ubuntu 10.10 systems. I tested it on my work laptop which uses Window and it works fine for wired and wifi.
With 10.10 I no longer have a network icon upper right panel to check, so not sure how to set up wireless. Both machines have static IP addresses and are able to ping each other but there is no internet connection on either.
am having some problems with getting a pc to use the above software. background is my wife wanted access to mail in her "office". purchased a Tenda wireless router and installed ok (with TPlink pci wireless card on her pc). am using latest version of ubuntu (10.10 x64) on her pc and went to use firefox - timed out, same with evolution and thunderbird. synaptic works fine, opera and google chrome work fine. i'm guessing some sort of tweaking of the router is required but not sure where to start.
I am using an Asus R2 G32 Wifi Router. The CD's and the manual that comes along with the Router does not support Linux . Now the wifi connection was installed in Windows 6 months back with a password and but it got reset to default somehow. Now i want to set password again. Whenever i try to log in 192.168.1.1 in my browser, and Change the password and select Apply . Nothing happens to the page, as if it is static. No Submit Buttons work in this. Um a bit in mess ryt now as my wifi is vulnerable to any1 ryt now.
I installed PCLOS 2010.07 into my laptop and dual booting with windows vista. Now I got a weird problem that is when I connected linux to my wifi router, it cannot obtain IP! (it still work correctly in windows, problem just with linux) I had to manually set ip and that worked. Now i wonder what is happening, because I didn't see this problem with PCLOS 2009 borrowed from my friend few months ago.
I updated a firmware of my wifi router (small black box with antenna). The router is managed via web browser at address 192.168.1.100. I opened Mozilla Firefox connected to the router, but a 'home.asp' application - an interface one can to set up a configuration - running on the router didn't work properly. When I tried to change some settings, and eg. clicked a confirmation button nothing happened. I solved the problem staring Windows and making a connection using IE - this time that home.asp application did OK. The question is what may caused problems? A bug in this app or in general *.asp applications don't communicate well with browsers other than IE or simply they don't 'like' Linux?
I was introduced to Ubuntu about a year ago and recently decided to come back to using the OS. I now dual boot it with Windows XP Home. My former setup was with Wubi but now I have it installed on an actual partition. (The Wubi install, for whatever reason, had little internet problems.) I use wireless internet, and though my network card was recognized out of the box and can connect to my network, the Internet is very slow. It takes almost a minute to look up Google. Also, Firefox will often report that it cannot find the server for whatever website I try to look up, after trying to connect to it/look it up. I also cannot access the web configuration page for my router. (192.168.1.1). The network app reports that I often have a signal strength of 40% or lower. The following is my hardware/internet:
Ubuntu 9.04 Jaunty TrendNet TEW-424UB adapter (54mbps) Westell VersaLink 327W router ISP: CenturyTel/CenturyLink High speed internet (512kbps)
I am the only Linux computer on my network. (There is no encryption on my network. I know there should be. but my parents are not very computer literate and they are the ones who have access to the network. It is easier just to go without.)
I have tried disabling ipv6, setting custom DNS server names under ipv4, and setting the wlan rate (or something similar) to 1492. Nothing works. This does not seem to be a network problem because my internet works fine in Windows, and I can access the configuration page for my router to change channels, PPP, etc..
I recently bought a new wireless router (Cisco E1000) to use in my house. The E1000 supports mixed-mode 802.11n/g/b, which is what I have enabled. It is the first 802.11n router I've had. My netbook (an HP/Compaq Mini 110) only supports b/g. When connected to this new router, I can only see my status as root. NetworkManager shows a little red exclamation point, and 'iwconfig' shows nothing. It's missing in the 'iwlist scanning' list. Even still, I'm connected and can do everything just fine. However, everything shows up fine when I run 'sudo iwconfig' or 'sudo iwlist scanning'. These have always worked as a standard user before.
After forgetting my wifi router password, I had to reset and reconfigure the router. I enabled WEP, and after I typed the password, the computer now recognises it automatically. But I can't connect to the internet no matter how long I wait. (The wired internet connection works fine.) How can I get the wifi to connect to the internet?
I have multiple devices in my garage that need internet connectivity. I have my main Netgear router inside the house. I have a computer running Ubuntu in the garage with dual NICs.
Here's a map of how I have it setup now: [URL] Here's my /etc/network/interfaces: Code: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.60 netmask 255.255.255.0 gateway 192.168.1.1
I was trying to keep everything on the same subnet. Eth0 is the external NIC, connected to the router in the house. eth1 is the internet NIC, which would go out to the devices in the garage. Now, I know it would be easiest to just connect a switch up and run all the devices in the garage off that switch. But the switch I have is a 10/100, and my network in the house is gigabit, and I want the PC in the garage to have gigabit access... which is why I'm doing this dual NIC setup and using the PC as a router, then the other devices in the garage will be 10/100.
In addition, I used the shell script as described in this article: [URL] to setup iptables. I also uncommented the net.ipv4.ip_forward=1 line in /etc/sysctl.conf. What am I doing wrong here? None of the devices in the garage that I connect up to the Ubuntu PC are getting connectivity. None are getting a DHCP lease from the main router in the house. The Ubuntu PC itself has internet access just fine though.
I am trying to get an arp packet from my wireless wifi router (access point), to which I am not connected. I simply tried ping 192.168.0.1, but the answer was connect: network is unreachable. What can I do about that?
I am planning to setup a home network with Ubuntu.the home network consists of ~3/4 computers; a mediaserver (reelbox) and 2 more PCs.Can I setup the server as a DSL router and get rid of my modem/router I have right now?