Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Robert on February 04, 2001, 03:56:08 PM
-
How do i release a NIC in Linux?
-
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
-
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.
-
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