LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   how to specify default network interface? (https://www.linuxquestions.org/questions/debian-26/how-to-specify-default-network-interface-373181/)

zero79 10-14-2005 08:29 PM

how to specify default network interface?
 
This is likely a very simple question...i just don't have the answer offhand. Let's say i installed debian with eth0 as my default network interface, however, i have now switched to wireless and want eth2 to be my default interface. What do i need to do so that at boot eth2 will be configured automatically instead of eth0? I greatly appreciate any thoughts.

Peace.
Mike

Matir 10-14-2005 09:42 PM

Try:
Code:

route del default
route add default gw <IP OF GATEWAY FOR ETH2>


JJX 10-15-2005 03:15 AM

and dont forget to add it to
/etc/network/interfaces
(with the correct syntax)
or to your boot script
;)


All times are GMT -5. The time now is 02:54 AM.