3

My mainboard hast two ethernet ports

So far i have only used one (eth1), which is connected to a router with a dhcp-server.

However, I want to use the other port (eth0) simultaneously to connect to another wlan router. The desktop is supposed to act as a hub, i.e. forward the dhcp services and all packages to the wlan, while still being a client in the network itsself.

  • Is there any tutorial on this topic? (I couldn't find anything useful on google)

So far I am using a static ip setup for the wlan router (eth0). As soon as I simply plug in the cable and connect with the network-manager, the internet connection is lost (even though the network manager shows, that both networks are connected). It appears that by default eth0 is then used for communication.

  • using firefox or any piece of software, (how) can i control which network interface is used individually and by default?
IARI
  • 183

1 Answers1

0

You can temporarily disable the unwanted interface - ifconfig eth0 down. Otherwise, if you want an interface disabled by default you can add the same command to /etc/rc.local. I suppose you could also set up xbindkeys to disable interfaces with keystroke as well.