Results 1 to 7 of 7

Thread: ipconfig = ifconfig, ok. /release = ???

  1. #1
    Junior Member
    Join Date
    May 2004
    Location
    earth
    Posts
    3

    ipconfig = ifconfig, ok. /release = ???

    Bonjour,

    My Internet Connection is through a cable modem. I know that to switch from Windows to Knoppix, I have to IPConfig /Release before leaving Windows.

    Can anyone can help me to release the adrress from within Knoppix to switch back to Windows ?


    (beside, does anyone has an idea about how to release the ip in my modem when neither Knoppix nor Windows have the lease ?)

  2. #2
    Junior Member registered user
    Join Date
    Apr 2004
    Posts
    23
    I don't know, but one possible solution is to use a hardware router/firewall. This device will use DHCP to get its address through the cable modem, and then route things so that the computer(s) behind it can use local addresses. Locally, it will be its own DHCP server so your computer can get automatically generated local addresses (with no limit), or you can use static IPs if you want.

    This piece of hardware costs money, of course, but IMHO it's worth the extra security. Basically, the router acts as a shield, preventing incoming packets to even hit the computer unless they were specifically requested. As an extra bonus, you can attach more than one computer or a videogame system or whatever.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    pump -r eth0 should do it.
    in slackware i is dhcpcd -k eth0.

  4. #4
    Junior Member
    Join Date
    May 2004
    Location
    earth
    Posts
    3
    Thanks, I'll try that.

    (and btw, if you're to make a google search on man pump, do it on google.com/linux rather than simply google.com, or be prepared for profanity ! )

  5. #5
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900

    Re: ipconfig = ifconfig, ok. /release = ???

    Quote Originally Posted by xave
    Bonjour,

    My Internet Connection is through a cable modem. I know that to switch from Windows to Knoppix, I have to IPConfig /Release before leaving Windows.
    Really? That's weird.

    Another way to answer to your question would be:
    ifconfig eth0 down

    (beside, does anyone has an idea about how to release the ip in my modem when neither Knoppix nor Windows have the lease ?)
    Ummm disconnect it? Your modem *should* hand out i.p. addresses automatically and I have not yet heard of anyone having to release an i.p. before changing OS's. Of course there's a first time for everything.

    It's been my experience that often times a cable modem will give the same i.p. based on your MAC address.

  6. #6
    Junior Member
    Join Date
    May 2004
    Location
    earth
    Posts
    3

    Re: ipconfig = ifconfig, ok. /release = ???

    Quote Originally Posted by mzilikazi
    Ummm disconnect it? Your modem *should* hand out i.p. addresses automatically and I have not yet heard of anyone having to release an i.p. before changing OS's. Of course there's a first time for everything.
    From my searches in the forum, it appears that I am not the first to have this problem when switching from Windows to Knoppix, even if I found no references to the other way round.

    Sadly, I tried but Knoppix hanged at first boot, leaving the IP leased and me unable to dhcp a new one before my (old) modem self releases the address, ie. a couple of hours later, no matter if I switch it off or not.

    I try to keep this kind of tests to the minimum, as I am not willing to jeopardize couples of hours of Net access.


    What bugs me is that there must be a way : If Windows freezes, I can boot up in Windows and it just gives me my IP back, but I cannot boot in Knoppix and have this address. If Knoppix freezes, neither Knoppix nor Windows will give me back the addresse before the end of my modem's lease.

  7. #7
    Senior Member registered user
    Join Date
    Mar 2004
    Location
    Berlin
    Posts
    436
    Do you think, you could reuse the ip?
    Then you could write a script.

    In windows you call ifconfig >C:\last_ip.txt
    I don't know how to invoke this automatically on shutdown - is this possible in Windows?

    In linux, you retrieve it by
    Code:
    cat /mnt/c/last_ip.txt | grep P-z-P | sed 's/.*Adresse:\([0-9\.]*\) .*/\1/g'
    Since my linux is localized to german, the grep pattern might be P-t-P and in the sed it might be 'address' for you.

    You could look for the timestamp to see if the file is recent, and delete it after usage.

    But I don't know how to tell your ppp to use this adress - my dhcp works perfectly.

Similar Threads

  1. ifconfig says yes ping says no
    By masticate in forum Networking
    Replies: 0
    Last Post: 06-14-2005, 08:45 AM
  2. ipconfig question/network commands help
    By digitalcry in forum Networking
    Replies: 1
    Last Post: 05-18-2005, 01:55 AM
  3. windows ipconfig equivalent
    By Brohan in forum Networking
    Replies: 2
    Last Post: 04-17-2004, 10:27 PM
  4. IPconfig /release equivalent
    By dugstratton in forum Networking
    Replies: 3
    Last Post: 01-14-2004, 09:30 PM
  5. ifconfig internet error..
    By jimjam in forum Networking
    Replies: 8
    Last Post: 12-01-2003, 02:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26 picture

SanDisk 1TB SSD Plus, Internal Solid State Drive - SDSSDA-1T00-G26

$74.99



Western Digital 1TB WD Blue PC Desktop 3.5'' Internal CMR Hard Drive - WD10EARZ picture

Western Digital 1TB WD Blue PC Desktop 3.5'' Internal CMR Hard Drive - WD10EARZ

$44.99



Western Digital 1TB WD Gold Enterprise Class SATA Internal HDD - WD1005FBYZ picture

Western Digital 1TB WD Gold Enterprise Class SATA Internal HDD - WD1005FBYZ

$84.99



Samsung PM991 1TB M.2 SSD Internal PCIe 3.0x4 2230 NVMe R31264 Solid State Drive picture

Samsung PM991 1TB M.2 SSD Internal PCIe 3.0x4 2230 NVMe R31264 Solid State Drive

$95.00



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$23.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Crucial - P3 Plus 1TB Internal SSD PCIe Gen 4 x4 NVMe picture

Crucial - P3 Plus 1TB Internal SSD PCIe Gen 4 x4 NVMe

$69.99



1TB HDD/SSD 2.5

1TB HDD/SSD 2.5" SATA Hard Drive for Laptop with Win 10/Win 11 Pro Pre-installed

$29.95



1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage US picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage US

$26.29



Fanxiang 2TB 1TB SSD M.2 For PS5 PCIe 4.0 NVMe Gaming Internal Solid State Drive picture

Fanxiang 2TB 1TB SSD M.2 For PS5 PCIe 4.0 NVMe Gaming Internal Solid State Drive

$239.98