LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   "how to config network card manually" (http://www.linuxquestions.org/questions/linux-networking-3/how-to-config-network-card-manually-238468/)

zameer_india 10-03-2004 11:17 PM

"how to config network card manually"
 
Hi,

Here i got some problem reg NIC card, to day i boot my sys then i got a message u r network card has been removed ... and it asks me optins llike "keep configuration ", "remove configuration", "no changes". then i select" remove config " option ... after i would like to config manually....

when ever iam trying to activate network card it gives me a message
" cannot activate etho " configuration for etho not found "
"usage /sbin/ifup <device name>"

what should i do ..... iam new to linux admin just enter into it.. so can anybody do help regarding this issue....



Thanking you,
zameer ahmed syed

symen 10-04-2004 01:23 AM

you need to configure your interfaces file.
Depening on your distribution it'll be called /etc/network/interfaces, or something similar.

example:

auto eth0
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.138

zameer_india 10-04-2004 01:56 AM

Thanx for ur kind reply

Could u please send correct path. iam having Linux 9 version, where i could get correct info or site..... plz kindly reply

symen 10-04-2004 02:23 AM

linux 9 is not a distribution.
type man interfaces. that will tell you where you can find your interfaces file

zameer_india 10-04-2004 02:30 AM

I typed man interfaces

but it shows no manual entries for interfaces...
what's next to proceed

Thanq

zameer_india 10-04-2004 02:46 AM

Hai Siemens,
Sorry for the disturbances,
I found one file in name "ifcfg-eth0" in the path
/etc/sysconfig/networking/devices/

here i am having the following information

DEVICE= eth0
ONBOOT=yes
BOOTRECORD=dhcp
USERCTL=no
PEERDNS=no
TYPE=ETHERNET

IAM TOTALLY CONFUSED
MY BOSS SAID THAT U PLZ RE INSTALLED
BUT I DON'T WANT IT, PLZ SOLVE MY PROBLEM... RE INSTALL IS NOT THE SOLUTION I THINK.....

HELP ME ......

THANQ

zameer_india 10-04-2004 02:49 AM

ONE MORE THING IS BY TYPING /ETC/RESOLV.INF FROM TERMINAL USING CAT COMMAND IT SHOWS SERVER IP ADDRESS.........

THANQ

zameer_india 10-04-2004 02:53 AM

Siemens,
first of all iam very thanqfull to ur patience......

Iam providing full information what happened...

ACTUALLY PROBLEM IS...
Here i got some problem reg NIC card, to day i boot my sys then i got a message u r network card has been removed ... and it asks me options llike "keep configuration ", "remove configuration", "no changes". then i select" remove config " option ... i think i can config it manually....

when ever iam trying to activate network card it gives me a message
" cannot activate etho " configuration for etho not found "
"usage /sbin/ifup <device name>" even it doesn't shows me a network card from hardware devices....

I use netconfig command through terminal , here i change IP Address , subnetmask , gateway address , and i clicked on... then i check through ifconfig command there i got Loopback address

now tell me what to do... u have complete information ..... plz don't tell do whatever u boss said......

I will really appretiate if i solve this problem......

ThanQ Siemens for ur patience

symen 10-04-2004 02:58 AM

do you have a file called /etc/networking/interfaces ?
what linux distribution do you have?

zameer_india 10-04-2004 04:23 AM

hai siemen, could you got any solution .................. plz help me......

thanq and sorry for inconvinience....................

bye,
zameer ahmed syed

symen 10-04-2004 04:51 AM

well can you please answer my questions then?

zameer_india 10-04-2004 05:00 AM

hey man iam new for this linux admin .... however if possible i can but not sure man............

symen 10-04-2004 06:22 AM

these are the questions:
do you have a file called /etc/networking/interfaces ?
what linux distribution do you have?

If you cannot answer these, then sorry but I cant help you further

zameer_india 10-04-2004 06:44 AM

no i don't have

emailssent 10-04-2004 10:18 AM

Hi zameer_india,

be patient and don't be confused...........

Ok, now come to your ethernet card configuration,

I think u might be using Red Hat 9, plz. check it by looking at message show and boot time , and u can even check this by runing these commands

#dmesg |grep version

#cat /etc/issue.net

#uname -r

and show me the output and try to find your self also through these commands output...


now run as a root show me the output of this command
do the following things as a root,

#ifconfig

and now steps to configure network card

#vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
IPADDR= <enter the ip address of the system>
NETMASK=255.255.255.0 (set it according to ur ip)
NETWORK=192.168.1.0 (set it according to ur ip)
BROADCAST=192.168.1.255 (set it according to ur ip)
ONBOOT=yes
MII_NOT_SUPPORTED=yes
GATEWAY=192.168.1.1 (set it according to ur ip)

#/etc/init.d/network restart

#ifconfig

now try pinging other system on the netwok


--return back ??


All times are GMT -5. The time now is 07:39 PM.