Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
This is probably a simple question. Is it normal that when I make a change to the routing table using 'route', for example 'route add default gw 192.168.1.1', that it should take a while for the changes to start working? When I make such a change, the routing table seems to be changed immediately, in that when I type 'route' again, and wait, eventually the whole thing is displayed... But it hangs on the route I just added, the default gw. Only after somewhere between 30 seconds to a few minutes, does the route start working.
Not sure how clear I'm being here. Basically, if I add a default gateway for example, "route add -net default gw 192.168.1.1 dev ra0", then try to ping 192.168.1.1 (my router), or some other host such as google.com, there is no response... If I try again in a minute or two, it is suddenly working.
Any explanations for this? Is this normal behaviour?
When you make an update to route (i.e. changing your gw [gateywa] address), do a quick route -n (the minus n will show IP addresses only, not resolved into hostnames -- thus, it's faster, more immediate). Are you deleting your previous gateway if one was set? Also, what kernel rev of Linux are you running? (just curious)
I'm running Debian with kernel 18.104.22.168 (soon to be 2.6.9 since I need to do a recompile for some other reason, and I figured I might as well go with the latest).
Actually I was a bit silly here. I don't know why I was so quick to assume it was the route that wasn't being updated quickly... It occured to me that even without that route in place, I should still be able to ping 192.168.1.1. However, I wasn't able to... So basically, what the problem actually is isn't anything to do with the route. It's that when I apply settings to my wireless adapter with iwconfig, *those* settings take a while to kick in.
That is, if my wireless interface is down, and I type:
Everything seems fine. It shows the MAC address of my access point, yet when I try to ping it (192.168.1.1) I get "Host Unreachable", or something like that. That is, until I wait a minute or so. Then suddenly it starts working.
If I type "ping 192.168.1.1" and just leave it, I get loads of errors, until all of a sudden I start getting replies, and after that starts happening, everything works fine... Until my connection with the router is lost for whatever reason. Then I have to undergo the same slow process again.
Any ideas why the connection is being slow to start working?
When its not working, do an ifconfig and a route -n -- save the outputs. When it is working correctly do the exact same commands and check the outputs against the time it wasn't working. If they're different, and you still can't figure it out, post both of the output files here.
As you can see, the differences are in the second half of the ifconfig output. I don't understand what that stuff is unfortunately... But it looks like the sort of thing that is supposed to change anyway.