Results 1 to 10 of 11
Working with ubuntu, latest version.
I can get wireless working if I run the following commands:
ifconfig wlan0 down
ifconfig wlan0 192.168.1.244 netmask 255.255.255.0 up
route add default gw 192.168.1.1
...
- 05-25-2009 #1Just Joined!
- Join Date
- May 2009
- Posts
- 9
Not working on reboot
Working with ubuntu, latest version.
I can get wireless working if I run the following commands:
ifconfig wlan0 down
ifconfig wlan0 192.168.1.244 netmask 255.255.255.0 up
route add default gw 192.168.1.1
iwconfig wlan0 essid "linksys"
iwconfig wlan0 mode Managed
dhclient wlan0
This works and everything is fine. But I don't want to run this script everytime.
I thought I should configure etc/network/interfaces here is my file:
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet static
wireless-essid linksys
address 192.168.1.222
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
iface eth0 inet dhcp
auto eth0
After reboot, I can ping 192.168.1.222 and ping 127.0.0.1 but not my router.
Any ideas on what I am screwing up?
Bill
- 05-26-2009 #2
I'm not sure exactly what the problem is. But is usually better to have the wireless receive its IP address through DHCP. You can configure the router to always give it the same IP address, as it identifies it through the MAC address.
By manually setting the IP address on the computer, you will have trouble connecting to any other wireless network. (assuming that this is a portable laptop)Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 05-26-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 9
I had the same problem using DHCP. It is desktop computer so DHCP is not necessary.
When I had the settings on DHCP it would not pick up the router. Using the above iwconfig lines everything works fine. But the lease goes out in 10 minutes(The router is configured for 1 day leases).
But I can't get it to work when it boots up.
I thought using a static IP would be easier to work with the router, but I have little experience working with wireless on linux, so I can go back to DHCP.
Is there any other config file I need to tweak besides /etc/network/interfaces ??
Do my settings look right? Any other reported problems similar to this?
Thanks,
Bill
- 05-26-2009 #4Just Joined!
- Join Date
- May 2009
- Posts
- 9
I should also add that the eth0 works just fine when I plug in a network cable. And the wireless card will pick up it's DHCP address(when I had it configured that way) when the cable is plugged in.
Not sure if that is important but thought it was at least interesting.
Maybe I should run wireshark and see if DHCP reponses are being properly sent out and if the routers ever responds.
Other ideas?
Bill
- 05-26-2009 #5
It looks like all network configuration is now done through the NetworkManager program. You can right-click the tray icon and select "Edit Connections".
I don't know if it even uses the /etc/network/interfaces file anymore.Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 05-26-2009 #6Just Joined!
- Join Date
- May 2009
- Posts
- 9
- 05-26-2009 #7
Yeah, I don't understand why Ubuntu doesn't have a network configuration program. It is important.
It may be possible that the wireless signal is dropping out. This would happen because of interference (walls, electronics, etc), distance, or just a weaker wireless chip.
You may need to go to the Ubuntu forums for this. I don't know if instructions for older versions apply to 9.04.Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 05-26-2009 #8
Check this out, and see if it helps:
ubuntu 9.04(jaunty jackalope) internet configuration for static ip | iTech7.com
In my resolv.conf, I have this:
So put your router IP address in there.Code:# Generated by NetworkManager domain gateway.2wire.net search gateway.2wire.net nameserver 192.168.1.254
Paul
Please do not send Private Messages to me with requests for help. I will not reply.
- 05-26-2009 #9Just Joined!
- Join Date
- May 2009
- Posts
- 9
Great I will check it out tonight when I get home.
Bill
- 05-26-2009 #10Just Joined!
- Join Date
- May 2009
- Posts
- 9


Reply With Quote

