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
  •  


AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock picture

AMD EPYC 7282 CPU Processor 16 Cores 32 Threads 2.8GHZ up to 3.2GHZ 120W no lock

$74.00



Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc... picture

Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...

$419.99



Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc... picture

Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...

$619.99



Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1 picture

Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1

$39.99



Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62 picture

Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62

$46.03



Intel Core i5-13500 65w 14 core Raptor Lake Processor picture

Intel Core i5-13500 65w 14 core Raptor Lake Processor

$162.00



AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor picture

AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor

$79.00



AMD Ryzen 5 5600X Desktop Processor (4.6GHz, 6 Cores, Socket AM4) picture

AMD Ryzen 5 5600X Desktop Processor (4.6GHz, 6 Cores, Socket AM4)

$119.00



AMD Ryzen 5 4500 Processor (3.6 GHz, 6 Cores, Socket AM4) - 100-100000644BOX picture

AMD Ryzen 5 4500 Processor (3.6 GHz, 6 Cores, Socket AM4) - 100-100000644BOX

$69.99



AMD Ryzen 7 7700 Processor (5.3 GHz, 8 Cores, Socket AM5) No Box picture

AMD Ryzen 7 7700 Processor (5.3 GHz, 8 Cores, Socket AM5) No Box

$240.00