LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ip release/renew (https://www.linuxquestions.org/questions/linux-newbie-8/ip-release-renew-266363/)

ddu_ 12-14-2004 01:40 PM

ip release/renew
 
Hi, I'm looking for a command in linux similar to the Windows commands:

ipconfig /release
ipconfig /renew

I'm running Slackware10 and have a wireless PCMCIA and wired nic in my laptop. When it boots without the PCMCIA wireless, the wired pics up an address via DHCP fine. When it boots with the wireless, the wireless picks up an IP fine.

I need this command because I am constantly going from a wireless to a wired network, and only know that restarting with the card works.

Thanks for the help.

sigsegv 12-14-2004 01:42 PM

dhclient <ifname>

ddu_ 12-14-2004 01:48 PM

hrm, seems like it works when I pop the wireless card in and out (eth0)

But when I try to use it to refresh the hardwired (after ejecting the wireless)

dhclient eth1

it says:

eth1: unknown interface: No such device
eth1: unknown interface: No such device
eth1: not found

However, it is shown in ifconfig and lspci.

Any more suggestions?

Genesee 12-14-2004 04:14 PM

the status of the interface should be shown in the ifconfig output. if its not up, try "ifconfig <interface> up"

for more on ifconfig:

http://www.faqs.org/docs/linux_netwo....ifconfig.html

sigsegv 12-14-2004 04:17 PM

If dhclient doesn't see the interface, ifconfig probably won't either ;)

Just guessing -- When you eject the wireless, the wired goes from eth1 to eth0. ifconfig -a will show you that though.

ddu_ 12-14-2004 10:35 PM

Could this be an issues with having two network cards?

I did ifconfig -a and I could see both cards, but only one can obtain an IP address at a time.


All times are GMT -5. The time now is 02:16 AM.