hd-install and network?Forum: Networking Topic: hd-install and network? started by: dslrat Posted by dslrat on April 15 2005,16:43
I installed dsl-1.0 from dsl-1.0.iso on hard disk. After installI changed the hostname (hostname newname) and configured static -ipaddressetc. (via stsyem-net setup->netcardconfig). After a boot both the new hostname and static-ipaddress info disapprears( changes to hostname box and ip address obtained from DHCP server). Is there a way to keep the information acroos a reboot of system? -dslrat Posted by tronik on April 15 2005,17:04
add it to /opt/bootlocal.shifconfig eth0 ip netmask ip route add default, etc. echo "ip.of.nameserver.here" > /etc/resolv.conf hostname hostname.you.want.com the hostname is being changed by the knoppix/dsl bootup scripts. bootlocal is called from the rc init scripts, afterwards. enjoy dsl. Posted by ReTeP on April 25 2005,20:12
I want to configure static ip and your answer helps me a lot but one thing I still don't understand is the following line:route add default, etc. I really don't know wat to put there can you be more specific with an example ? Thanx in advantage !! Posted by Billsrock61 on April 25 2005,23:28
hey your route add is your default gateway of network if that helps any..
Posted by ReTeP on April 28 2005,14:35
This is what I've configured in the bootlocal.sh ifconfig eth0 10.0.0.202 netmask 255.255.255.0 route add default gw 10.0.0.138 echo 10.0.0.202 > /etc/resolv.conf hostname linuxpdm but it don't work. I still got an flexible ip instead of the static 10.0.0.202 Can somebody help me with this problem? Posted by AwPhuch on April 28 2005,16:32
did you do an ifconfig -aPerhaps putting that in a file such as /etc/network.kickstart
And then in the autostart script add
Make sure you chmod it to 700 Give that a shot..it should work ok for you Brian AwPhuch Posted by cbagger01 on April 28 2005,16:41
Also,You should add the word nodhcp to the boot command line or to the "append" line in your bootloader (IE: LILO or GRUB) and then rerun the bootloader program. Posted by ReTeP on April 28 2005,19:59
cbagger01 I added nodhcp right here (in /etc/lilo.conf) # append="" 99 append="hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi h dh=scsi nodhcp apm=power-off nomce noapic" Is this the correct way and place? AwPhuch You say something about a autostart-script. Sorry, but where can I find this file? Because I like the kickstart-method Posted by cbagger01 on April 28 2005,21:46
Yes, this is the correct place.Don't forget to: sudo lilo -v after you save your file in order to activate your changes. Posted by ReTeP on April 29 2005,07:33
This works for me great, thanx !!!
|