LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-14-2004, 01:40 PM   #1
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Rep: Reputation: 16
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.
 
Old 12-14-2004, 01:42 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
dhclient <ifname>
 
Old 12-14-2004, 01:48 PM   #3
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Original Poster
Rep: Reputation: 16
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?
 
Old 12-14-2004, 04:14 PM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
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
 
Old 12-14-2004, 04:17 PM   #5
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
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.
 
Old 12-14-2004, 10:35 PM   #6
ddu_
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 114

Original Poster
Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ipconfig /release/renew Red Squirrel Linux - Software 2 07-31-2005 09:09 AM
Release And Renew dna9 Linux - Networking 1 03-09-2005 04:24 PM
IP Release and Renew? keysorsoze Linux - Newbie 4 01-23-2005 10:52 AM
DHCP - Release/renew laoddien Linux - Networking 0 06-25-2004 05:09 AM
Release/renew an ip morfy50 Linux - Networking 1 09-19-2002 12:02 PM


All times are GMT -5. The time now is 12:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration