Hi all,
I'm a serious newby so sorry if this turns out to be a dumb question...
I would like to set my ethernet card to a fixed IP address, (have a small closed network) - using the command:
ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up
(GUI-tool gives a blocking bug when trying to apply changes).
I would like to include this in some script that is executed at startup; e.g. myIPConfig. Where should i put it?
- init.d, referring to it (link) from all relevant runlevel dirs, eg rc.3 and rc.5?
I noticed that this init.d dir only contains more complex stuff that uses expressions like exit; mine is however just some silly config setting!!!
So:
- Generally, where are network settings kept?
- And, where are config scripts typically put that apply to all runlevels and users?
Hope somebody can help me out on both these questions...
Thx, help very much appreciated!!!
I'm a serious newby so sorry if this turns out to be a dumb question...
I would like to set my ethernet card to a fixed IP address, (have a small closed network) - using the command:
ifconfig eth0 192.168.0.2 netmask 255.255.255.0 up
(GUI-tool gives a blocking bug when trying to apply changes).
I would like to include this in some script that is executed at startup; e.g. myIPConfig. Where should i put it?
- init.d, referring to it (link) from all relevant runlevel dirs, eg rc.3 and rc.5?
I noticed that this init.d dir only contains more complex stuff that uses expressions like exit; mine is however just some silly config setting!!!
So:
- Generally, where are network settings kept?
- And, where are config scripts typically put that apply to all runlevels and users?
Hope somebody can help me out on both these questions...
Thx, help very much appreciated!!!