Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-14-2005, 09:29 PM   #1
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
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.

Old 10-14-2005, 10:42 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
route del default
route add default gw <IP OF GATEWAY FOR ETH2>
Old 10-15-2005, 04:15 AM   #3
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Rep: Reputation: 31
and dont forget to add it to
(with the correct syntax)
or to your boot script


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple-homed default interface? jschoolc Linux - Newbie 3 08-08-2005 05:03 PM
Changing the default network interface at startup frandres Linux - Newbie 1 01-16-2005 07:32 PM
Default X interface jelloguil Slackware 5 07-28-2004 08:30 PM
default network interface bhupee Linux - Newbie 1 07-02-2004 05:33 PM
setting default interface Sammy2ooo Linux - Networking 4 03-17-2004 03:18 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration