LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-21-2005, 02:36 AM   #1
navaladi
Member
 
Registered: Dec 2004
Location: chennai
Distribution: chennai
Posts: 81

Rep: Reputation: 15
/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
 
Old 02-21-2005, 02:48 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
If using redhat/fedora then add files inside /etc/network-scripts else

add the lines to /etc/rc.local.
 
Old 02-21-2005, 02:56 AM   #3
navaladi
Member
 
Registered: Dec 2004
Location: chennai
Distribution: chennai
Posts: 81

Original Poster
Rep: Reputation: 15
hello sir i am using mandrake 10.0
i have the file /etc/rc.local.
now which line should i add and where.
thanks

Last edited by navaladi; 02-21-2005 at 02:58 AM.
 
Old 02-21-2005, 03:43 AM   #4
gr33ndata
Member
 
Registered: Aug 2003
Location: DMZ
Distribution: Ubuntu
Posts: 144

Rep: Reputation: 15
/etc/sysconf/network-scripts/eth0
 
Old 02-21-2005, 03:51 AM   #5
suguname
Member
 
Registered: Jan 2005
Location: chennai
Distribution: mandrake
Posts: 70

Rep: Reputation: 15
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
 
Old 02-21-2005, 05:49 AM   #6
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
/sbin/rc: line 271: /sbin/devfsd: No such file or directory Alexander.s Linux - General 3 04-22-2005 04:44 PM
Want2use /sbin cmds undr non-root account w/o sudo. Is it safe 2 add /sbin 2 my PATH? kornerr Linux - General 4 02-25-2005 09:29 AM
/usr/sbin and /sbin world read/executable... why? lazlow69 Slackware 3 04-29-2004 05:06 PM
/sbin/ifconfig gives command not found - help dmalsbury Linux - Software 8 01-06-2004 09:14 PM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration