Networking Forums

Networking Forums > Computer Networking > Linux Networking > Delete an interface

Reply
Thread Tools Display Modes

Delete an interface

 
 
delphinuscadmus@yahoo.com
Guest
Posts: n/a

 
      03-22-2006, 08:59 PM
First some history, I 'ghosted' a Linux image to a computer and at the
same time replaced the Gigabit 10/100/1000 NIC. The original NIC was a
dual i/f (no name brand). I replaced it with a better card (also a dual
i/f).

Now the problem is, that all four of the eth's are shown in 'ifconfig'.
Let me clarify, there are four i/f's listed, they are: eth0, eth1,
eth2, and eth3. My presumption is that I should have only: eth0 and
eth1. That is, two eth's, one for each of the two interfaces that are
currently attached.

My question is should I get rid of the unused eth i/f listed in
ifconfig?
And if so, how?

The cause for alarm is that I have no way of knowing which one is the
real i/f?

Thanks,

Delphinus

 
Reply With Quote
 
 
 
 
shrini
Guest
Posts: n/a

 
      03-23-2006, 01:23 AM
Hi Delphinus .

give
ifconfig eth0 down
ifconfig eth1 down
ifconfig eth2 down
ifconfig eth3 down

This will remove all interfaces.

Now give

/etc/init.d/network restart

now give ifconfig.

two interfaces will shown
and one loopback will shown.

now set 2 ip address for each one as

ifconfig eth0 A.B.C.D
ifconfig eth1 A.B.C.D

This is enough.

regards,
T.Shrinivasan.

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      03-23-2006, 04:32 AM
"shrini" <(E-Mail Removed)> writes:

>Hi Delphinus .


>give
>ifconfig eth0 down
>ifconfig eth1 down
>ifconfig eth2 down
>ifconfig eth3 down


>This will remove all interfaces.


>Now give


>/etc/init.d/network restart


>now give ifconfig.


>two interfaces will shown
>and one loopback will shown.


And network restart should have given them IP addresses already.


>now set 2 ip address for each one as


>ifconfig eth0 A.B.C.D
>ifconfig eth1 A.B.C.D


Better be different addresses for each.


>This is enough.


>regards,
>T.Shrinivasan.


 
Reply With Quote
 
shrini
Guest
Posts: n/a

 
      03-23-2006, 05:19 AM
Sorry guys.

we have to give different IP address for the two cards.

I used A.B.C.D just for IP address format, as a skeleton.

Thanks Unruh.

regards,
T.Shrinivasan.

 
Reply With Quote
 
delphinuscadmus@yahoo.com
Guest
Posts: n/a

 
      03-23-2006, 03:24 PM
And THANKS to you both for your help!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Ad Hoc?? Brian Lynn Wireless Networks 3 09-18-2009 03:57 AM
How can I delete shared folders that won't delete ? russ Network Routers 3 06-10-2006 05:31 PM
I am in need of a netsh script that will disable the "Local Area Connection" interface then re-enable that same interface. Spin Windows Networking 3 11-03-2005 12:58 AM
serial interface to ethernet interface Kenneth Sparre Linux Networking 9 11-01-2005 12:27 PM
Linux API to create logical interface on a physical interface? Zarko Coklin Linux Networking 2 07-18-2004 01:50 AM



1 2 3 4 5 6 7 8 9 10 11