LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-14-2005, 08:29 PM   #1
zero79
Member
 
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.

Peace.
Mike
 
Old 10-14-2005, 09:42 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try:
Code:
route del default
route add default gw <IP OF GATEWAY FOR ETH2>
 
Old 10-15-2005, 03:15 AM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 351

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


Reply



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 04:03 PM
Changing the default network interface at startup frandres Linux - Newbie 1 01-16-2005 06:32 PM
Default X interface jelloguil Slackware 5 07-28-2004 07:30 PM
default network interface bhupee Linux - Newbie 1 07-02-2004 04:33 PM
setting default interface Sammy2ooo Linux - Networking 4 03-17-2004 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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