LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-04-2004, 04:43 PM   #1
scoobdoobery
LQ Newbie
 
Registered: Aug 2004
Distribution: Yoper, Gentoo
Posts: 6

Rep: Reputation: 0
How do you switch the default ethernet adapter (eth0 to eth1)?


Perhaps this has been asked before, but I've had no luck finding any info thus far...
I currently have two network adapters, though I'm only using one of them for now. As it is, the one I'm not using is recognized as eth0. Now, I know that I could just switch my cable to the other adapter to have things load instantly, but that would be too easy and make too much sense. Currently, I'm just doing:
ifconfig eth1 up
dhclient eth1
in order to get things working, though I would like to how I can just load eth1 on boot and have it use dhcp. Also, I'm using Yoper which seems to differ from Gentoo on how this is done. Please don't say just switch the cable to the other adapter... I know I can do that, but I'd just like to know how to do it this way too.

Thanks
 
Old 09-04-2004, 08:34 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Put your distro in your profile... Better.
On Slackware, /etc/rc.d/rc.inet1.conf is the answer.
 
Old 09-04-2004, 10:55 PM   #3
scoobdoobery
LQ Newbie
 
Registered: Aug 2004
Distribution: Yoper, Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah, I'm sorry about that, I should have been more clear earlier on. Just in case I confused anybody else, I am using:
*****************
Yoper v2 (2.1.0)
*****************
Again, sorry about burying that deep in the text before.

Anyway, thanks for the reply, but unfortunately, Yoper seems to have its own way of doing things... I ran a search for rc.inet1.conf but found no such file. When searching for just anything with rc in /etc, I didn't really seem to find anything useful Mainly, I found a bunch of scripts; for example, /etc/rc.d contains rc.sysinit, but nothing where a simple edit to add in eth1 or anything would actually work. As an aside, outside of this crazy net stuff, Yoper is really nice. Anyway, thanks for your help thus far.
 
Old 09-05-2004, 01:29 PM   #4
scoobdoobery
LQ Newbie
 
Registered: Aug 2004
Distribution: Yoper, Gentoo
Posts: 6

Original Poster
Rep: Reputation: 0
Found out how to do it

Through some trial and error, I found that (in the case of Yoper) all you need to do is edit the /etc/init.d/network script and change all instances of eht0 into eth1. Fairly simple.

Thanks
 
  


Reply


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
how do i assign/switch eth0 & eth1 the-sloth Linux - Networking 10 02-05-2011 12:48 PM
eth0 and eth1 switch cards at run time! haxcess Linux - Networking 8 12-12-2005 04:17 PM
How To Rename Ethernet Card Eth1 to Eth0 chammoud Linux - Networking 4 04-20-2005 06:01 AM
Mandrake is switching the eth1 and eth0 interfaces... how can I switch them back? LaptopLinux Mandriva 3 03-28-2005 09:23 PM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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