Re: How to configure two NIC's in Debian 6.0.4 box?

2012-02-16 Thread Miroslav Skoric

On 02/15/2012 07:25 PM, Christofer C. Bell wrote:

On Wed, Feb 15, 2012 at 11:57 AM, Miroslav Skoricsko...@eunet.rs  wrote:


I wonder what is the best way to reconfigure the NIC's so the old card (now
eth0) boots as eth1, and the new card (now eth1) boots as eth0?


This is done using the file /etc/udev/rules.d/70-persistent-net.rules

Just open that in your favorite editor and the format should be
self-explanatory.  Edit that file to taste and reboot.

Good luck!



Thanks, that worked!


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f3d8072.7060...@eunet.rs



How to configure two NIC's in Debian 6.0.4 box?

2012-02-15 Thread Miroslav Skoric
I have a dual-boot Win$/Debian box having two cards, an older one 3Com 
(3C905TX in Win$, 3c59x in Deb) and a newer one TP Link (TF-3200 in 
Win$, sundance in Deb). Both cards are wired to the other two machines 
in the LAN, the older card links to an older box, the newer card links 
to a newer box.


The issue is that the 'central' box sees the old NIC as eth0 and the new 
NIC as eth1, though I would like it to be the opposite. Besides that, it 
seems that the cards get renamed during the system boot, as follows:


renamed network interface eth1 to eth1-eth0
renamed network interface eth0 to eth1
renamed network interface eth1-eth0 to eth0

The only stuff within /etc/network/interfaces is:

auto lo
iface lo inet loopback

and the working parameters for both cards are set by Network Manager 
Applet 0.8.1


I wonder what is the best way to reconfigure the NIC's so the old card 
(now eth0) boots as eth1, and the new card (now eth1) boots as eth0?



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f3bf208.5030...@eunet.rs



Re: How to configure two NIC's in Debian 6.0.4 box?

2012-02-15 Thread Christofer C. Bell
On Wed, Feb 15, 2012 at 11:57 AM, Miroslav Skoric sko...@eunet.rs wrote:

 I wonder what is the best way to reconfigure the NIC's so the old card (now
 eth0) boots as eth1, and the new card (now eth1) boots as eth0?

This is done using the file /etc/udev/rules.d/70-persistent-net.rules

Just open that in your favorite editor and the format should be
self-explanatory.  Edit that file to taste and reboot.

Good luck!

-- 
Chris


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOEVnYt4GZJHGHKgEjE6DtLETvPYiZMuTL8=5eyghj5qap1...@mail.gmail.com



Re: How to configure two NIC's in Debian 6.0.4 box?

2012-02-15 Thread Camaleón
On Wed, 15 Feb 2012 18:57:28 +0100, Miroslav Skoric wrote:

(...)

 The issue is that the 'central' box sees the old NIC as eth0 and the new
 NIC as eth1, though I would like it to be the opposite. Besides that, it
 seems that the cards get renamed during the system boot, as follows:
 
 renamed network interface eth1 to eth1-eth0 
 renamed network interface eth0 to eth1 
 renamed network interface eth1-eth0 to eth0

(...)
 
 and the working parameters for both cards are set by Network Manager
 Applet 0.8.1
 
 I wonder what is the best way to reconfigure the NIC's so the old card
 (now eth0) boots as eth1, and the new card (now eth1) boots as eth0?

You could use static naming based on the mac address, for instance, here 
you have an approach for the involved steps:

Udev: Renaming Network Interfaces
http://debianclusters.org/index.php/Udev:_Renaming_Network_Interfaces

(the file is named /etc/udev/rules.d/70-persistent-net.rules)

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jhgthd$q8i$5...@dough.gmane.org