ath9k virtual interfaces
hi all,
My question is not directly related to the drivers itself but anyway here it goes.
I have been playing with the virtual interfaces feature of this drivers and I have a small problem.
I am able to create multiple virtual interfaces and have them configured by network manager with all of them obtaining an IP address. The only problem is that only the first interface gets the default gateway configured. For the others I have to add a default gateway manually.
As anyone encountered this problem before? is there anyway I can make this process automatic?
Best Regards,
Rodolphe Marques
This is completely off-topic for this mailing list.
Quoted 2 lines · Rodolphe Marques
The only problem is that only the first interface gets the default gateway configured.
In a normal system there is only one default gateway.
Please consider if you really must handle multiple default gateways.
In any case - how will your system know when to use which gateway? Study the ip rule command. I recommend http://lartc.org/ for more information.
//Peter
Hi Peter,
I do an overload to the socket system call so that I can choose to which interface a given application should bind.
The problem I think is that linux is not expecting to have several interfaces connected to the same network so only the first interface as a default gateway configured. So applications that I bind to interfaces other than the first have no network connectivity.
Rodolphe
Quoted 22 lines · Peter Stuge
This is completely off-topic for this mailing list.
Quoted 3 lines · Rodolphe Marques
The only problem is that only the first interface gets the default gateway configured.
In a normal system there is only one default gateway.
Please consider if you really must handle multiple default gateways.
In any case - how will your system know when to use which gateway? Study the ip rule command. I recommend http://lartc.org/ for more information.
//Peter
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Quoted 2 lines · Rodolphe Marques
The problem I think is that linux is not expecting to have several interfaces connected to the same network
The problem is not with Linux, but with you seeming to misunderstand sockets and IP networks. (You'll get same results on all other OSes.)
I think you need a different solution, regardless of what actual problem you are solving. Please don't post about this on this mailing list, and please look for a new approach to solving your problem, if what I suggested before did not help. (Did you already read all of lartc.org?)
//Peter
Peter Stuge a ?crit :
Quoted 9 lines
Quoted 3 lines · Rodolphe Marques
The problem I think is that linux is not expecting to have several interfaces connected to the same network
The problem is not with Linux, but with you seeming to misunderstand sockets and IP networks. (You'll get same results on all other OSes.)
Quoted 9 lines
I think you need a different solution, regardless of what actual problem you are solving. Please don't post about this on this mailing list, and please look for a new approach to solving your problem, if what I suggested before did not help. (Did you already read all of lartc.org?)
//Peter
You can have anything you want in the routing table, including multiple gateways. However, like Peter mentioned, you should be aware that the kernel will probably use only one gateway at the end.
I think network-manager takes indeed care to not configure multiple gateways (and it changes default metric from 1 to 2 on wireless interfaces as well). Using dhclient on the command line will probably fix that part.
Regards,
Benoit