Ubuntu Networking :: Default Route Stops Working?
Mar 22, 2011
I'm currently working with Ubuntu 10.10.I wanted to add a default route to a gateway named ppp0.I did it with the command> route add default ppp0It works ok. But then from time to time it suddenly stops and I have to go back again to the server and retype the command. I'm clueless as to why is it happening. I can assure no one is working at the server or doing anything over there.Does anyone know causes that might be triggering route default to stop working?Btw where is the best place to add this command so it will be executed automatically on start-up and without needing to login to the server?
View 5 Replies
ADVERTISEMENT
Nov 13, 2010
I'm running Ubuntu 10.10 Maverick Meerkat 64-bit on my desktop with a wired internet connection (with no firewall). For the past 2 days, I have observed that1. Firefox randomly throws up errors like "Problem loading page" whenever I click on a hyperlink. When I click on Reload, the page loads up just fine. This has been happening a lot recently..and I do not remember updating anything consciously. By the way, ipv6 is disabled in Firefox.2. The network stops working all of a sudden (usually indicated by the Firefox error). The Autho Eth0 indication is active, but I am unable to connect to any external machine.
3. Needless to say, this error is manifesting itself in apt-get as well. I get "something wicked happened" errors all the time, and am unable to download or install anything.That this is not a problem with the ISP is obvious because I also have Windows (from which I'm typing this, ironically), which is able to access the internet.Is this a bug in Ubuntu 10.10?
View 9 Replies
View Related
Feb 28, 2010
In an attempt to get something that, well, you know, just works... I migrated a laptop to Karmic server today. Which works fine, except for one thing: when I use wvdial and a Huawei E160g USB modem to connect to the Internet (which is the only option out here in the sticks where I live) no default gateway is set. When I add one manually everything is fine, except that the default gateway keeps disappearing after a while (at irregular intervals, as far as I can see). Nothing appears in any logfile that even mentions the default route, let alone a reason for its magical vanishing trick. My wvdial.conf is fairly pedestrian:
[Code]...
What's going on here? I'm stumped. And the mighty Googlebrain doesn't seem to know, either. How do I get wvdial & friends to set the correct default route upon connecting? Given the fact that without a default route a PPP connection to a remote network is little use, I would expect this to be a standard feature and not something that I'd have to script a work-around for myself. But then, I have been wrong before. Secondly, and more importantly, why does my default route keep disappearing without a trace?
View 4 Replies
View Related
May 24, 2010
I ask your help to diagnose a problem. For business reasons I use a broadband internet connection via a mobile phone's connected via bluetooth [rfcomm]. Speed is not the maximum but it is more than sufficient for my work. For configuration of ppp I followed this guide Pon pulls up dialup, but I can't navigate also if resolv.conf and default route are correct. In addition I would like to use the NetworkManager that by default, does not see the device. I worked around the problem this way:
I modified the / etc / rc.local so that launch at boot time: # Rfcomm bind yes
After starting Lucid Lynx, bluetooth connects to the phone but NetworkManager does not see the modem.
When I run the connection manually, by: # Pon BluetoothDialup
NetworkManager sees the device, but can not use it because obviously it is locked by the ppp daemon.
So I close the connection with: # poff
Now NetworkManager sees the broadband modem via / dev/rfcomm0, dialup is performed properly. I can finally surf and just enable vpn with NetworkManager. all start automatically at boot, without the need to manually connect and disconnects the dialup to use, finally, the NetworkManager.
View 1 Replies
View Related
Jul 6, 2009
I have the following network/server configuration:
[Code]....
How do I prevent eth1 from being able to overwrite the default gateway that eth0 has already set?!? I read that one can create route-* files in the /etc/sysconfig/network-scripts/ directory to setup static default routes.But those seems to require one to know the IP address of the gateway, but in my case the ISP's gateway is served via DHCP and so it could vary from day to day. Here are the contents of some of the relevant files:
[code]...
View 2 Replies
View Related
Aug 21, 2010
I am attempting to run apache on my linux router while connected to a VPN. My default route is set to the VPN endpoint and I cannot control port forwarding at that end. I cannot seem to connect to any service that i bind to the eth0 interface. I believe that my iptables rules and OpenVPN are the source of the problem.
/sbin/iptables -t nat -A POSTROUTING -o tun1 -j MASQUERADE
/sbin/iptables -A FORWARD -i tun1 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth1 -o tun1 -j ACCEPT
View 5 Replies
View Related
Jan 12, 2011
I'm trying to set up load balancing using iproute2 following this guide. I've got 4 dsl links as follows:
eth1 - 100.100.100.1
eth2 - 100.100.100.2
eth3 - 100.100.100.3
eth0 - 111.111.111.111 (main uncapped line)
eth0 is the default route, and eth3 is being used for something else. So what I want to do is load balance browsing between eth1 and eth2. I've added all of the routes in the LARTC guide, but the command to enable the load balancing:
Quote:
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 nexthop via $P2 dev $IF2 weight 1 obviously involves creating a new default route. Since I'll be using Squid to push the traffic through the relevant line, how can I set up a load-balanced link for eth1 and eth2 without changing the existing default route on the server?
View 1 Replies
View Related
Mar 26, 2009
So I have two network Interfaces
eth0 - NAT behind a router
eth1 - Public IP
When ever I restart the machine, both interfaces pull a IP, but the it randomly chooses eth0 or eth1 to have the gateway. I want the gateway to be eth0 always.
[Code]...
Is there some file or setting I can modify in Fedora10 that will always choose 192.168.1.1 on eth0 as the default gateway?
View 2 Replies
View Related
May 5, 2010
I have been encountering this problem, not only on 10.4, but on older versions too: I use a wifi router to connect my laptop to the Internet, but sometimes I need to connect directly to another computer to move some files over GLAN. But Ubuntu's Network manager doesn't allow me to configure the eth0 interface without specifying a gateway (no gateway = grey submit button), but when a gateway is specified, it always rewrites the default gw specified already by the active wifi connection and returns back after unplugging the eth cable.
Of course this can be solved by a few route commands, but this is unacceptable since it is needed to establish the cable connection without any further assistance from within and as well without replacing the default gw and thus breaking the Internet connection. Is there, please, any possibility how to prevent Network Manager from replacing these routes?
View 2 Replies
View Related
May 8, 2011
I have 3 network interfaces on my Linux Router :
Interface - Gateway - Type
Code:
br0 - 192.168.0.1 - Internet
eth2 - 192.168.1.1 - LAN
tun0 - 10.0.0.2 - VPN (via br0)
What I'd like to do is to route all TCP packets coming from eth2 to tun0 where a VPN client is running on 10.0.0.2. If I delete all default routes and if I add a new route to tun0 like :
Code:
route del default
route add default gw 10.0.0.2
Everything is fine, and everyone on eth2 can reach the Internet using the VPN access. Now the problem is that my VPN client does not allow any other protocols other than TCP. And I also want to allow VPN access only to eth2, no other LAN nor the router itself. use iptables to filter any TCP packets and mark them, so they can be sent to tun0, while any other packets can reach the Internet via br0 (192.168.0.1). I found on the Internet that we can mark packets before they get routed. Using the following commands :
Code:
iptables -t mangle -A PREROUTING -j MARK --set-mark 85 -i eth2 -p tcp --dport 80
ip route add table 300 default via 10.0.0.2 dev tun0
ip rule add fwmark 0x55 table 300
First of all, --dport 80 never work... :/ I wanted to filter TCP 80 packets coming from eth2, but none of them seems to be HTTP packets... oO (very strange...). Nevermind, I decided to forget about the --dport option. I use the "iptables -L -v -t mangle" command to see how many packets are marked, and it is working fine, all TCP packets coming from eth2 are marked. Now the problem is that none of them are routed to tun0 they are all respecting the "route -n" rules... and not the "table 300" rule I have created.
View 4 Replies
View Related
Jun 16, 2010
I'm having some problems with wireless, it works fine on boot but after a while pretty much randomly, it can be a few days or it can be a few hours, it stops working. I'm not sure which command would tell you what and it would take a little while to debug it because like I said it's random, but if anyone knows what to do please tell me! I'm on Lucid Lynx 10.04.Another something that's really bothering me (But not related to wireless) is that for some reason when I restart my computer, the top panel keeps changing the applets locations.
View 9 Replies
View Related
Oct 22, 2010
I have created a Samba share, using the fantastic Webmin tool. I have a network media player which can connect to my router, and then access windows (samba) shares. Most of the time, it works fine - it's able to stream HDTV wirelessly across the network. However, every so often, it just stops working ... the media player sees :
Network, then
WORKGROUP, then
FILESERVER-1 (machine name), then
Media (share name), then
Video (subdir, then
TV_Shows (subdir), then
MyShow.AVI ... just hangs
if I use the Webmin tool, I see multiple samba connections all from the media player. Restarting samba seems to have no effect. The only way to fix it, is to reboot.
logfile I can check, or a setting I can tweak to fix this issue ?
When it get like this, trying to access the share from a windows machine, just gives me an error saying it can't find the machine. But when it's rebooted, it works fine.
I have mapped the "nobody" linux user to "guest" which is what the media player is defaulted to login with (it's primarily sold as a "Windows" media player), and using Webmin I have assigned the "nobody" user read-only rights to the samba share. It worked fine for 6 months, until I added this new drive.
View 2 Replies
View Related
Apr 29, 2009
I would like to add a static route, however I do not understand what is meant by the Address setting below
GATEWAY2=10.241.58.62
NETMASK2=255.255.255.224
ADDRESS2=10.241.57.32
Does this mean any addresses beginning with 10.241.57.32 are routed over the gateway 10.241.58.62 an address range
View 3 Replies
View Related
Feb 10, 2010
This should be easy for the Ubuntu Gods to sort out:
I have a Sabrent USB 802.11N adapter. (I am using 64-bit Ubuntu in all below)
I plug it into a 9.04 box and it works fine. Plug it into a 9.10 box. Network manager sees it and can attach to the network, but has 0% signal strength, no internet.
Rebuild the 9.04 box with a fresh install to 9.10. 0% signal, no internet. Try 10.04 Alpha 2, 0% signal strength, no internet.
Rebuild same box down to 9.04. Works perfectly. 100% signal strength. I do all updates and then the upgrade to 9.10 using the USB. Everything works fine until the reboot. Then, USB connects, but 0% signal strength, no internet. Oh! ifconfig says the wlan0 interface is up, but it has a random ip address.
I don't mind using 9.04 because for the forseeable future, the box is just going to count aliens for Seti, but my wife wants it off the counter and I would like to upgrade someday.
View 3 Replies
View Related
Jul 24, 2010
I have an Intel PRO/Wireless 5100 AGN [Shiloh] on my HP Pavilion dv7 running a fully updated Lucid (10.04).I can connect to the wifi on my smartphone and I have no problems at all.However, after a recent update I found myself unable to use my home wifi connection.Once connected, I can usually transfer about 1 MB of data and then nothing else will go through.# uname -aLinux lappy 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/LinuxSince the home wifi router, a Linksys Wireless-G SRX, is a bit more advanced than the wifi capabilities of the smartphone, I'm inclined to think there is some feature being used that is now broken in the iwlagn driver.I've tried to disable the "11n" support with this:
# modprobe -r iwlagn
# modprobe iwlagn 11n_disable=1
but the problem continues even after that ... is there something else I can try to disable?r some way of getting the details of these two connections to see exactly what the difference is?
View 1 Replies
View Related
Aug 13, 2010
I upgraded to the newest version of Ubuntu a few months ago, and ever since then, the ethernet connection to my router stops working when I restart the machine. It eventually comes back, but after varying amounts of time. Sometimes 20 minutes, sometimes 2 days.
Restarting the computer and cycled reboots of the router don't seem to have any beneficial effect, at least that I can detect.
The light for the slot on the router does not light up like it normally would, so it's almost like the OS doesn't even recognize the network card.
Ubuntu 10.4,64-bit. Dell XPS 410.
View 9 Replies
View Related
Oct 15, 2010
New Toshiba laptop dual booting with Windows 7. I really like MM 10.10 and most things are working great! Periodically I will be web browsing and I lose connection. At first I thought it was Firefox but if I try to disconnect wireless and reconnect it will no longer connect unless I reboot. My network is hidden but Ubuntu finds it no problem on a fresh boot and connects per my settings and it is not a network problem since I can connect to Windows all day long and the rest of the family never has problems.
My wirless device is: Realtek Semiconductor Co., Ltd. RTL8191SEvB Wireless LAN Controller (rev 10)n and all OS updates are applied that I can find. I am thinking about un-hidding my network since years ago that used to be a problem with Redhat and even early Ubuntu but beyond that I cannot think of what else to try.
View 9 Replies
View Related
Oct 22, 2010
networking stops working after suspend/hibernate on Ubuntu 10.10 and it used to happen on 10.04 though i did not bother to resolve the issue then
output of sudo lshw -C network
*-network DISABLED
description: Wireless interface
product: AR9285 Wireless Network Adapter (PCI-Express)
vendor: Atheros Communications Inc.
physical id: 0
bus info: pci@0000:08:00.0
code....
View 1 Replies
View Related
Apr 15, 2011
i am getting some troubles with WiFi. I got a Lenovo G550 with a BCM4312, at first i found some troubles making it work but i managed to find a proper driver and it is working "fine" Every 5 minutes or so my WiFi freezes and internet stops working. I don't get disconnected from the network, but until i don't reconnect to it, internet will not work.
Rare thing is, i realised that this happens ONLY when my notebook is plugged in. When it's working on battery, this does not happen. If i use it on battery it works for 30-40 mins (or more) and 3 minutes after i plug it in, it just stops working. I'm using Ubuntu 10.10, if there is any information i could give, just tell me. I also have a Windows partition and this does not happen there, either plugged in or on battery.
View 3 Replies
View Related
May 25, 2011
I have a Trendnet TEW-649UB Wifi N dongle, and I'm using the latest Realtek firmware downloaded from their website. It works ok, but everytime, after an hour or two, the blue light turns off and the dongle stops working. I have to unplug it and plug it back to bet my network back up.
View 2 Replies
View Related
May 26, 2011
My Ubuntu when i start it up, go to the wireless networks , try to connect to my network it trys to connect stops than says disconnected. My internet card is a Cisco Aironet wireless (idk the model number)
View 1 Replies
View Related
Sep 1, 2011
I have a wireless network using this driver:
Bus 001 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
and everything works fine for some time. After a few hours or maybe less (if I push bandwidth to the limit) the Internet freezes. I can't even ping my router. If I disconnect and reconnect either the device or the connection via network manager , it does work for a minute only and then freezes again. If I restart Ubuntu entirely, it works again. But for a while...
It works 100% in Win7 and I have no problem at all there. But I am very annoyed that I cant have reliability in Ubuntu. I want Ubuntu as default.
It has something to do with drivers or an inner variable or buffer or something.
At least, is there any way to reset my network connection without rebooting the OS?
I tried sudo /etc/init.d/networking restart but it gives me: Ignoring unknown interface wlan0=wlan0.
View 2 Replies
View Related
Jun 27, 2011
I have just installed Fedora 15 xfce on my desktop. When I 1st start my computer my RaLink RT2870 works but after a while it disconnects and won't start again till I restart.
I can't see any pattern I am doing to make it stop. I been doing various tasks when it stopped working. I don't what command prompt or configuration file to look for or what to configure in the file.
View 1 Replies
View Related
Apr 18, 2010
This holds true in Transmission and NOT in Vuze. UPnP is enabled, ports are randomized and open each time. Pings to outside still work fine, but I cannot browse to websites (404 errors) when the app is running. I'm stumped, is Transmission locking all other in bound traffic/ports except the one it wants to use?
View 2 Replies
View Related
Jul 28, 2010
Previously my wifi has worked just fine in 10.04, but as of recently I keep losing my connection after leaving my laptop on for a while (and this happens sooner and sooner each time, used to be daily, now it's every few hours), I can no longer see any networks at all, and I have to reboot to get it working again. I haven't even installed or removed any packages lately, so I'm not such what might've caused this to break all of a sudden.
View 7 Replies
View Related
Oct 13, 2010
I am trying to get a network bridge configured but every time I make the changes and restart networking (or reboot) eth0 appears to come up OK but I can no longer talk to the outside world via it. With no bridge defined, I can talk to the web using either wireless or wired; wicd is configured to switch to a wired connection when available (got rid of Network Manager. It didn't recognise eth0(!)).
I want to use the bridge so virtual machines (LXC containers) can talk to the web when the machine is wired to the wireless router. Eth0 gets its IP address (192.168.1.4) via DHCP from the router and I want to bridge to another subnet, 192.168.154.n say, and the containers will have fixed IP addresses 192.168.154.101, 102, 103 etc.
[Code]...
View 3 Replies
View Related
Oct 23, 2010
I'm trying to get internet set up on my grandad's laptop (sony pcg-f590), which has a fairly old pcmcia belkin 54g wireless card. I've installed the relevant bcmwl5a.inf driver through ndiswrapper, and for a time wireless worked so I installed updates through update manager. however after restarting the network manager menu comes up with "wireless networks disconnected" and no list of networks (I know there are because my laptop works and his is sitting next to the router!). The light is on on the network card so I know the laptop is talking to it. Unplugging and replugging the card does nothing, and neither does restarting again.
View 1 Replies
View Related
Dec 19, 2010
After a while, my connection suddenly drops and I'm no longer able to see any networks or anything. The only way I can regain my connection is to reboot over time this happens, which is a pain. I've searched around and can't find any fix for this card.
View 7 Replies
View Related
Mar 2, 2011
Not sure if I've listed the specs of this machine before, so I'll do it again. 'm running an HP Pavilion 760n with 512MB of RAM and (I think?) a Pentium III processor... not sure on that one right now. It's currently running a laptop version of Ubuntu 10.04.I went to log into my online classes tonight only to find that the computer wasn't responding at all. I did a hot shutdown and restarted it, and now the system isn't detecting the internet connection at all. It should be noted that the connection was working perfectly fine earlier today, perhaps 6 or 7 hours ago.I know it's something to do with my computer and not my router, as I'm on my wireless network from a Windows 7 laptop and it's connecting just fine.
In viewing another thread,..lems+-wireless, I found a bunch of commands that it was said would be helpful diagnosing this issue. That said, below is the output of all the commands that I could think of.
Sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:e0:18:5c:45:7a
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
[code]...
View 1 Replies
View Related
Sep 1, 2011
I have a problem with my wireless connection in ubuntu (natty with amd64bit) There seems to be intermittent disruption in my connection. Havent seen a pattern as yet, though it happens once a day. After that I cant get it to work at all and only restarting + reconnecting the USB device helps. Dont know what is going on.I have already read these pages : Commands and Wireless Troubleshooting.Here is my line of though1) Given that I am able to connect other devices to it while I am not able to connect through this desktop, I think the router is OK.2) I am able to work with it after restart + re-connection . And so the driver is OK and is loaded. The driver seems to be oK and loaded even while I am not able to connect.So why is this happening and how can I get this under control without having to reboot and re-connect the device everytime.Here are the output for the commands which will give you a more detailed idea of the process. Before reboot while I was not able to connect:
Code:
Script started on Tue 23 Aug 2011 01:40:08 PM CDT
raja@UshRaj: ~raja@UshRaj:~$ sudo nm-tool
[code]....
View 3 Replies
View Related