LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   "how to config network card manually" (https://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 ??

zameer_india 10-04-2004 10:54 PM

hi ,Siemens.....

I solve IT.....................

I am very sorry .... actually problem was that network card was not perfectly slotted in slot .. somebody disturbed that card.... that's why i didn't get eth0 configuration.......

Anywhere Thanq for u r reply.... However i got experience how to process if network card fails...
I note u r reply (by copy and paste) and save it into my folder... next time if i got similar problem then i follow u r procedure......

Lot of thanks to you and hats of to u r kind reply and kind heart ... I never forget U and ur help in my life......

Bye My friend......
With regds,
Zameer Ahmed Syed

dreambrother 10-31-2004 01:24 PM

@emailsent
 
hi, i stumbled on the thread and this is exactly the information i was looking for! at home i have a dsl router with a dhcp server, but when i bring my laptop to work i need to log into the network (without dhcp) by assigning it an IP address etc. and i hadn't figured out how with debian sarge.

can i use the same procedure you wrote in your answer to zameer? i'll need to assign a DNS address too though, how do i do that? i tried to directly rewrite the /etc/resolv.conf file but that didn't seem to work.

thanks!

mh

symen 11-01-2004 01:22 AM

Hi,
it really depends on what approach you want to take. If your dsl router has dhcp capabilities (and your want to use them), then you can make your interfaces file look like
auto eth0 inet dhcp

otherwise you need to assign settings manually

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

about the DNS server, if you are using the dhcp approach. you should enter the address of the dhcp server (that is the IP address of a dns server provided by your ISP) in the configuration of the router.
the router will pass on this info to the dhcp clients in your network automatically.

if you are using static ip you should add a line in /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx

which points to the DNS server of your ISP


All times are GMT -5. The time now is 12:02 AM.