LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-14-2005, 03:35 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
i can not get the constant ip addres..please.


EVICE=eth0
BOOTPROTO=static
IPADDR=10.255.240.111
NETMASK=10.255.255.0
NETWORK=10.255.240.0
BROADCAST=255.255.240.108
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
~
~
~
~
~
~
~
~
~
~
~
~
~
~
<ig/network-scripts/ifcfg-eth0" [readonly] 9L, 171C 1,1 All


when i reboot the system the ip addess automatically get changed..!!

how to fix it??
 
Old 04-14-2005, 04:34 AM   #2
Rinish
Member
 
Registered: Apr 2005
Location: Bangalore
Distribution: Redhat, CentOS, AIX
Posts: 93

Rep: Reputation: 15
the configuration is perfect
only this i see here at a glance is that
it should be ONBOOT= not onBOOT
linux is highly case sencitive
 
Old 04-14-2005, 04:50 AM   #3
Rinish
Member
 
Registered: Apr 2005
Location: Bangalore
Distribution: Redhat, CentOS, AIX
Posts: 93

Rep: Reputation: 15
i waited for u long please let me know if this worked
 
Old 04-14-2005, 05:01 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I'm surprised this is working at all. Your netmask and broadcast address make no sense. try:
Code:
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.255.240.111
NETMASK=255.255.255.0
NETWORK=10.255.240.0
BROADCAST=10.255.240.255
ONBOOT=yes
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""
 
Old 04-14-2005, 05:06 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
network connections are well sir..
 
Old 04-14-2005, 05:08 AM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
Originally posted by Rinish
i waited for u long please let me know if this worked
Just an FYI: I posted an uppcase ONBOOT in my reply. But for some reason, this forums software seems to change an uppcase ONBOOT to onBOOT when it starts at the beginning of a line.
 
Old 04-14-2005, 08:02 AM   #7
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
no sir that is not working

when i restart the service it is in the same IP adress.

what could be done..!!
 
Old 04-14-2005, 08:04 AM   #8
Rinish
Member
 
Registered: Apr 2005
Location: Bangalore
Distribution: Redhat, CentOS, AIX
Posts: 93

Rep: Reputation: 15
what is the IP addres u get when u restart ?
 
Old 04-15-2005, 06:02 AM   #9
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
the automatic IP address is 10.255.240.150.


i set as 10.255.240.101..

when i restart the computer 10.255.240.150
 
Old 04-16-2005, 12:34 AM   #10
Rinish
Member
 
Registered: Apr 2005
Location: Bangalore
Distribution: Redhat, CentOS, AIX
Posts: 93

Rep: Reputation: 15
How many eth ports do you have ?
Iam sure you might have confirmed that its not eth1

I think you will have to check the /etc/modules file too there you can specify an alias to a port, say, u can set a alias as eth0 for dling card which was actually supose to be eth 1
 
Old 04-16-2005, 01:32 AM   #11
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
sir i am quite newbie to linux ..please help me more..




# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/modules" 6L, 244C 1,1








[root@localhost staff]# lsmod
Module Size Used by
sg 38044 0
st 38616 0
sr_mod 17028 0
sd_mod 16832 0
scsi_mod 114648 4 sg,st,sr_mod,sd_mod
nfsd 173152 8
exportfs 5920 1 nfsd
parport_pc 32832 1
lp 12200 0
parport 38952 2 parport_pc,lp
i830 76768 28
md5 3872 1
ipv6 232352 12
snd-seq-oss 31232 0
snd-seq-midi-event 7552 1 snd-seq-oss
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-event
snd-pcm-oss 51812 0
snd-mixer-oss 17952 1 snd-pcm-oss
snd-intel8x0 32776 0
snd-ac97-codec 58148 1 snd-intel8x0
snd-pcm 93156 2 snd-pcm-oss,snd-intel8x0
snd-timer 24484 2 snd-seq,snd-pcm
gameport 4480 1 snd-intel8x0
snd-page-alloc 11972 2 snd-intel8x0,snd-pcm
snd-mpu401-uart 7072 1 snd-intel8x0
snd-rawmidi 23616 1 snd-mpu401-uart
snd-seq-device 8008 3 snd-seq-oss,snd-seq,snd-rawmidi
snd 52484 12 snd-seq-oss,snd-seq-midi-event,snd-seq,snd-pcm-
oss,snd-mixer-oss,snd-intel8x0,snd-ac97-codec,snd-pcm,snd-timer,snd-mpu401-uart,
snd-rawmidi,snd-seq-device
soundcore 9248 1 snd
af_packet 20520 0
hid 53312 0
ide-floppy 18752 0
ide-tape 34864 0
ide-cd 40548 0
cdrom 37184 2 sr_mod,ide-cd
floppy 59444 0
8139too 23712 0
mii 4992 1 8139too
ohci1394 33956 0
ieee1394 287856 1 ohci1394
nls_cp850 4736 1
vfat 13760 1
fat 45120 1 vfat
nls_iso8859-1 3904 3
ntfs 85932 2
intel-agp 17372 1
agpgart 31016 3 intel-agp
ehci-hcd 24196 0
uhci-hcd 29104 0
usbcore 99132 5 hid,ehci-hcd,uhci-hcd
rtc 11576 0
ext3 110408 1
jbd 54328 1 ext3
[root@localhost staff]#



[root@localhost staff]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:09:1C:E0:7C
inet addr:10.255.240.101 Bcast:10.255.240.255 Mask:255.255.255.0
inet6 addr: fe80::211:9ff:fe1c:e07c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38188 errors:0 dropped:0 overruns:0 frame:0
TX packets:22775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11573407 (11.0 Mb) TX bytes:3587990 (3.4 Mb)
Interrupt:23 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:159 errors:0 dropped:0 overruns:0 frame:0
TX packets:159 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11850 (11.5 Kb) TX bytes:11850 (11.5 Kb)

[root@localhost staff]#



with this help me what to modify??
 
Old 04-16-2005, 05:04 AM   #12
Rinish
Member
 
Registered: Apr 2005
Location: Bangalore
Distribution: Redhat, CentOS, AIX
Posts: 93

Rep: Reputation: 15
which Distro are u using ?
iam surpriced to see a /etc/modules empty!!
if i was you and i have all rights to work on th machine, i ll

1) rm -f /etc/sysconfig/network-scripts/ifcfg-eth*
2) vi /etc/modules ==> here I will comment(#) all lines that describesanything abt eth
3 vi /etc/sysconfig/hwconf ==> here ill remove the entire set that says any NETWORK (there might be 2 set of NETWORK if you have 2 RJ45 port
4 at my propmpt [root@host root]# kudzu
this will prompt me for ipaddress here ill say whatever i want
5 root@hos root]# /etc/init.d/network restart




this will make my system network configuration perfect
and if still this exists then :-?

/ Rinish.P
 
Old 04-16-2005, 06:39 AM   #13
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i am using mandrake 10.0.

and i have no command like kudzu


and i do not have /etc/sysconfig/hqconf file

Last edited by bruse; 04-16-2005 at 06:42 AM.
 
Old 04-16-2005, 08:10 AM   #14
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Based on the output of ifconfig in a previous post, it looks like your NIC module (probably 8139too) is loading correctly. BTW: I think the module file is /etc/modprobe.conf, not /etc/modules.

Since the IP address "appears" to be reassigned, then I would start checking:

1) if some init script is possibly starting dhcpcd/dhclient.
2) You have a /etc/sysconfig/ifcfg-eth1 file that is refernecing DEVICE=eth0

Something along those lines.
 
  


Reply



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
ping6 error "conect: cannot assign requested addres lamsteven Linux - Networking 0 06-30-2005 07:57 PM
there is no fixed IP addres suguname Linux - Networking 2 03-05-2005 12:52 AM
Determining IP addres for eth0 failed nutthick Fedora 2 11-14-2004 12:23 PM
finding ip addres from url sanjith11 Programming 1 04-08-2004 04:30 AM
how to activate addres book in Kmail (KDE) vinthund Linux - Software 0 02-24-2004 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration