LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   /sbin/ifconfig IP fix (https://www.linuxquestions.org/questions/linux-networking-3/sbin-ifconfig-ip-fix-292871/)

navaladi 02-21-2005 02:36 AM

/sbin/ifconfig IP fix
 
my IP address is volatile.it is deleted after shutdown.
so again i need to fix the Ip by /sbin/ifconfig eth0 10.245.233.121
so i need the fixed IP address so how to configure that.

thanks

linuxxed 02-21-2005 02:48 AM

If using redhat/fedora then add files inside /etc/network-scripts else

add the lines to /etc/rc.local.

navaladi 02-21-2005 02:56 AM

hello sir i am using mandrake 10.0
i have the file /etc/rc.local.
now which line should i add and where.
thanks

gr33ndata 02-21-2005 03:43 AM

/etc/sysconf/network-scripts/eth0

suguname 02-21-2005 03:51 AM

hello sir i have the scripts under

/etc/sysconfig/network-scripts

the file like this

DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
NEEDHOSTNAME=yes

now what should i edit

fr_laz 02-21-2005 05:49 AM

hi,

Here's a sample,

DEVICE=eth0
IPADDR=10.245.233.121
NETMASK=255.255.255.0
NETWORK=10.245.233.0
BROADCAST=10.245.233.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

check out the netmask, network and broadcast to be sure they match your config.

I found this sample at : http://www.faqs.org/docs/securing/file-netfunc.html, in case you need more infos


All times are GMT -5. The time now is 10:31 PM.