View previous topic :: View next topic |
Author |
Message |
mkjtravel
Joined: 20 Sep 2006 Posts: 7
|
Posted: Wed Sep 20, 2006 5:46 pm Post subject: Problems with static ip |
|
|
Hi
I have installed DSL-not on harddisk hda2 and have great problems to change the confiuration for static ip.
I have already changed the file /opt/bootlocal.sh to match my situation. But they are not accepted after reboot.
I have set it o be
ifconfig eth0 192.168.0.199
route add default gw 192.168.0.253
echo nameserver XXX.XXX.XXX.XXX > /etc/resolv.conf
ifup eth0
What am I doing wrong?
Thanks for help
Juergen |
|
Back to top |
|
|
roberts
Joined: 17 Apr 2006 Posts: 320 Location: OC CA USA
|
Posted: Wed Sep 20, 2006 7:29 pm Post subject: |
|
|
Make sure you also add the nodhcp option to your boot parameters in grub or lilo. |
|
Back to top |
|
|
mkjtravel
Joined: 20 Sep 2006 Posts: 7
|
Posted: Wed Sep 20, 2006 8:32 pm Post subject: How to append nodspc |
|
|
[quote="roberts"]Make sure you also add the nodhcp option to your boot parameters in grub or lilo.[/quote]
But how is that done? I have tried several things. I use grub and have ended to the menu.lst at the very end the line
APPEND="nodhcp"
it didn't work. Is that correct?
Thanks
Juergen |
|
Back to top |
|
|
roberts
Joined: 17 Apr 2006 Posts: 320 Location: OC CA USA
|
Posted: Wed Sep 20, 2006 9:03 pm Post subject: |
|
|
This is what I have:
title DSL-N
kernel /boot/linux root=/dev/hda2 quiet vga=791 noapm alsa nodhcp frugal noprompt noeject fromhd=/dev/hda2 restore=hda3 mydsl=hda3
initrd /boot/minirt.gz |
|
Back to top |
|
|
mkjtravel
Joined: 20 Sep 2006 Posts: 7
|
Posted: Wed Sep 20, 2006 9:42 pm Post subject: |
|
|
[quote="roberts"]This is what I have:
title DSL-N
kernel /boot/linux root=/dev/hda2 quiet vga=791 noapm alsa nodhcp frugal noprompt noeject fromhd=/dev/hda2 restore=hda3 mydsl=hda3
initrd /boot/minirt.gz[/quote]
Still does not work. I get the following message as the computers boots:
Route: xxxxxxxxxxxxx Files exists
The echo command is not executed. /etc/resolv.conf contains the old nameserveradress and not the on it should have.
Any idea
Juergen |
|
Back to top |
|
|
mkjtravel
Joined: 20 Sep 2006 Posts: 7
|
Posted: Thu Sep 21, 2006 6:18 am Post subject: |
|
|
[quote="mkjtravel"]
Still does not work. I get the following message as the computers boots:
Route: xxxxxxxxxxxxx Files exists
The echo command is not executed. /etc/resolv.conf contains the old nameserveradress and not the on it should have.
[/quote]
Does work now. Looks like a reboot ist not enough. After I turned the machine off and on the parameters were accepted.
Juergen |
|
Back to top |
|
|
|