specify different ethernet card ?

2 replies [Last post]
=ANU815=
outeris's picture
Offline
Joined: Feb 2007
Posts:

Hi.
Possible to specify diferent (only one) ethernet interface on Linux (or maybe some ways to restrict others) ?
By default, as i see, it binds to all intefaces.

The majority of people think they think, when really they just change their prejudices. Understanding is a matter of will in most cases.

Lietuvių excessiveplus draugija - Lithuanians National Team
Linux (1st E17+Compiz powered ! Built on Debian GNU/Linux.)

MODDB.com all cool things for Quake III Arena @ one place from E+


glizda
glizda's picture
Offline
Joined: Sep 2006
Posts:
specify different ethernet card ?

I assume, that every of your net cards has different IP assigned. So, try "q3ded +set fs_game excessiveplus +set dedicated 2 +set net_ip IP.you.want.to_use". If it still does not work (because it can be like that - depends on your network settings) and the kernel spreads your bandwidth over the other cards, you will have to take a closer look at your routing rules and modify them a bit. If you want just to drop connections coming from other interfaces, block apropriate udp ports with iptables (look at 'man iptables'). If you want to play with routing, read http://www.policyrouting.org/iproute2-toc.html and (still excellent, although slightly outdated) http://lartc.org and 'man ip'. PM me if you have more specific questions (including info on your network settings).
AVE SATAN

=ANU815=
outeris's picture
Offline
Joined: Feb 2007
Posts:
specify different ethernet card ?
glizda wrote:

I assume, that every of your net cards has different IP assigned. So, try "q3ded +set fs_game excessiveplus +set dedicated 2 +set net_ip IP.you.want.to_use". If it still does not work (because it can be like that - depends on your network settings) and the kernel spreads your bandwidth over the other cards, you will have to take a closer look at your routing rules and modify them a bit. If you want just to drop connections coming from other interfaces, block apropriate udp ports with iptables (look at 'man iptables'). If you want to play with routing, read http://www.policyrouting.org/iproute2-toc.html and (still excellent, although slightly outdated) http://lartc.org and 'man ip'. PM me if you have more specific questions (including info on your network settings).
AVE SATAN

I owe couple good cocktails for you, cheer !

The majority of people think they think, when really they just change their prejudices. Understanding is a matter of will in most cases.

Lietuvių excessiveplus draugija - Lithuanians National Team
Linux (1st E17+Compiz powered ! Built on Debian GNU/Linux.)

MODDB.com all cool things for Quake III Arena @ one place from E+