Koozali.org: home of the SME Server

how do i release a NIC in Linux?

Robert

how do i release a NIC in Linux?
« on: February 04, 2001, 03:56:08 PM »
How do i release a NIC in Linux?

Michael Maxwell

Re: how do i release a NIC in Linux?
« Reply #1 on: February 04, 2001, 04:10:30 PM »
What do you mean by release ?... If you mean disable /sbin/ifdown ethX  the X stands for the ethernet adapter... Under e-smith it would be:eth0 for the local network and eth1 for the remote network

To Enable it /sbin/ifup ethX

Thanks, Michael

Robert

Re: how do i release a NIC in Linux?
« Reply #2 on: February 04, 2001, 04:20:41 PM »
The MAC nr. of my NIC is used to get an ip from my cable modem.
When for some reason i like to use another NIC connected to my modem i first have to "release" the old NIC, otherwise i can't get a new ip on the new NIC.
I can do two things:
1. ask my cable provider to relase the NIC
2. do i myself with a command in Linux.
Point 2 is the best choise, but i don't know how to do it.

Gordon Rowell

Re: how do i release a NIC in Linux?
« Reply #3 on: February 04, 2001, 05:09:17 PM »
Robert wrote:
>
> The MAC nr. of my NIC is used to get an ip from my cable modem.
> When for some reason i like to use another NIC connected to
> my modem i first have to "release" the old NIC, otherwise i
> can't get a new ip on the new NIC.
> I can do two things:
> 1. ask my cable provider to relase the NIC
> 2. do i myself with a command in Linux.
> Point 2 is the best choise, but i don't know how to do it.

A properly shutdown system (i.e. using the shutdown option) will send a
DHCP release to your ISP/cable provider. You should then be able to power
down and change NICs.

To do it manually run "/sbin/ifdown eth1" or "/sbin/ifdown eth0" if you needed
to use the "Swap Ethernet Assignment" option on your system.

Gordon