LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-26-2006, 10:32 AM   #1
Axelll
Newbie
 
Registered: Nov 2006
Posts: 0

Rep: Reputation: 0
Two network cards, change eth0 and eth1


Hi,

I have 2 network cards in my linux computer (slackware) and I want to change that eth0 is eth1 and eth1 is eth0.

How can I do it?

Thank you for your help!

/Axel
 
Old 11-27-2006, 07:19 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,903

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I can't guess what you hope to accomplish. Usually, when two netcards are present, one is for connecting to the outside world (internet) and one for the inside world (lan), as in a server.

You might be able to change config files to reverse that configuration.

find /etc -type f | xargs grep 'eth0'

should find files in /etc to check out to see if you can do it.
 
Old 11-27-2006, 08:05 PM   #3
guzzi
Member
 
Registered: Jun 2004
Location: Lawrence, KS
Distribution: Slackware
Posts: 301

Rep: Reputation: 35
dual nic config

in /etc/rc.d/rc.local you could use rmmod or modprobe -r to unload the modules for your NIC's.

Then after that use modprobe to install the module for eth0 and then ifconfig the configuration for that card.

Do the same thing again but for the second NIC.

It may not be elegant, but I have used this method successfully.
 
  


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 change eth0 to eth1 during the first boot us901 Red Hat 8 01-12-2010 06:51 PM
eth1 cannot change it to eth0 jonnyhashem Linux - Hardware 2 01-05-2006 06:29 PM
eth0 and eth1 switch cards at run time! haxcess Linux - Networking 8 12-12-2005 05:17 PM
Suse 9.2 - How is determined which network cards becomes eth0 and which eth1 doublemax Linux - Networking 5 02-04-2005 11:25 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration