Results 1 to 7 of 7

Thread: Static IP address

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    3

    Static IP address

    Any ideas how a hdd installation can be configured to a static ip address on boot up? (I am currently running netcardconfig each time my computer starts up!)

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    you could save your home directory and the configs with the two comands (in the kde menus).
    that is: klick yourself to these.
    KNOPPIX | Configure | Create a persistent KNOPPIX home
    AND (taken from the faq at http://www.knoppix.net/docs/index.php/FaqUsing )
    directory
    Go to the K-menu > KNOPPIX > Configuration and choose "save config", you can save to floppy or to an already existing partition on the harddrive. (on a windows partition s fine)
    sadlt that about wndows only aplies if you do NOT have NTFS on the partition.
    To restore it, at the "boot:" prompt type in "knoppix myconfig=scan", and it should find and restore your saved settings at boot time.
    if you save to hdd or floppy or usb pendrive you can then reopen with the cheatcodes

    boot: knoppix home=scan myconfig=scan
    and of course any other necesary cheatcodes, you should have all settings/bookmarks... intact.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    oops, hdd installed!
    eeeh, then it SHOULD keep the settings.
    have you gotten any error messages?
    what does dmesg|grep eth say?

  4. #4
    Junior Member
    Join Date
    Apr 2004
    Posts
    3
    On boot up the ethernet card is detected - it just defaults to dhcp - although it does store the ip address in the file /etc/sysconfig/network-scripts/ifcfg-eth0, it just ignores it on boot.
    I've tried passing the kernel option nodhcp, but then the network card isn't configured at all.
    Oh well I had better start delving into the init.d scripts.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    555
    Quote Originally Posted by jdally
    although it does store the ip address in the file /etc/sysconfig/network-scripts/ifcfg-eth0, it just ignores it on boot.
    I think it is /etc/network/interfaces you need to be looking at.

  6. #6
    Junior Member
    Join Date
    Apr 2004
    Posts
    3
    Ok I've not got static IP address on my hdd install, by doing the following:-
    edit /etc/init.d/networking
    Change the first "ifup -a" to "ifup --force -a"

    cd cd /etc/rc5.d/
    ln -s /etc/init.d/networking S90networking

    Changing /etc/init.d/networking is a bit ugly, but it works.

    You can also add other links to /etc/rc5.d/ for other services at boot, eg ssh:-
    ln -s /etc/init.d/ssh S99ssh

  7. #7
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    235
    A cleaner solution is to edit /etc/pcmcia/network.opts and put the static lines in there accordingly except for dns. Also, if you needed to add startup scripts to start services, open a console as root and type:
    Code:
     update-rc.d servicetostart defaults
    and press enter.

Similar Threads

  1. Want a fixed IP address
    By RT in forum Networking
    Replies: 1
    Last Post: 06-26-2004, 09:18 AM
  2. MAC address in Knoppix
    By Flower in forum Networking
    Replies: 3
    Last Post: 05-25-2004, 04:57 AM
  3. Static IPs?
    By A. Jorge Garcia in forum General Support
    Replies: 3
    Last Post: 03-06-2004, 12:18 AM
  4. Can't resolve address ?
    By koselan in forum Networking
    Replies: 2
    Last Post: 12-15-2003, 06:21 AM
  5. Reconfiguring IP Address
    By koselan in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 07-18-2003, 12:43 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
  •  


Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture

Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive

$259.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$188.99



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

$119.99



New 8TB 870 EVO Internal Solid State Drive Hard Disk SSD 2.5 Inch picture

New 8TB 870 EVO Internal Solid State Drive Hard Disk SSD 2.5 Inch

$149.45



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

$15.50



Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot picture

Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot

$16.99



4tb Ssd 870evo Internal Solid State Drive Hard Disk 2.5 Inch Sata SSD For Laptop picture

4tb Ssd 870evo Internal Solid State Drive Hard Disk 2.5 Inch Sata SSD For Laptop

$47.79



SSD 512GB 1/2/4TB 870 EVO SATA III SSD 2.5'' Solid State Drive Upgrade PC Laptop picture

SSD 512GB 1/2/4TB 870 EVO SATA III SSD 2.5'' Solid State Drive Upgrade PC Laptop

$39.99



Fanxiang SSD 1TB 2TB 4TB Sata SSD Lot 2.5 512GB 256GB 6Gb/s Solid State Drive picture

Fanxiang SSD 1TB 2TB 4TB Sata SSD Lot 2.5 512GB 256GB 6Gb/s Solid State Drive

$189.04



Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture

Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot

$109.99