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 09-26-2006, 04:39 AM   #1
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Rep: Reputation: 0
Network card needs static IP address reset


Hi everyone
My name is Gerard and I am new to linux so please forgive my ignorance as I was brought up on Mac and windows and I may not be in the right area to post this.

My Problem
The motherboard on our Linux based email server recently packed in after 4 years and had to be replaced which has caused the network card to loose its settings and I don't know how to do this in linux as the rest of our network is windows based. I have tried to ping our email server via windows but it times out and I have tried to ping our windows server from the email server but cannot connect. I have checked our router which is a Vigor 2600 and it can see our network and internet but dosn,t see the email server either. The email server has Linux Mandrake 9.0 installed and uses a static IP. I have no problem logging in at root on the linux server and following instructions and am familiar with IP addressing.

Can someone please help

Regards

Gerard
 
Old 09-26-2006, 05:22 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
Which Linux Distribution do you use?
 
Old 09-26-2006, 05:35 AM   #3
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
I'm sorry I don't know what you mean
 
Old 09-26-2006, 06:58 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Mandrake is a linux distribution.
What is the make / model of the new motherboard?
Integrated or PCI network adpater? Make/model?

If the network adapter is integrated in the motherboard the correct module may not be loading. In theory kudzu (hardware detection utility) if it is running should of recognized a new adapter. However, Mandrake 9.0 is old and probably does not have the driver for the newer network adapter.

The output of the lspci will show what type of network adpater / chipset of the motherboard or installed adapter. The output of the lsmod command will show what modules are being loaded. The output of the ifconfig command will show the network adapter status if the module is loading.
 
Old 09-26-2006, 07:44 AM   #5
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
so it's all about this mandrake email server (@michaelk of course I know that this is a distri...) so yes as michaelk said if you are able to login as root on this email server and the new nic is on lom or inserted it will be configured listen on DHCP on default. If it shows up with ifconfig then we can say it starts onboot...so to edit it w/o a gui you should have a look a file called ifcfg-eth0 if its only one card.
and lspci -v gives you a more sorted output.
So do you want to change it to static and you found that file and you won't use a gui then for e.g.
Quote:
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0F:1F:ED:5D:AA
ONBOOT=yes
TYPE=Ethernet
USERCTL=yes
IPV6INIT=no
PEERDNS=yes
NETMASK=255.0.0.0
IPADDR=10.0.0.2

Last edited by odcheck; 09-26-2006 at 07:57 AM.
 
Old 09-26-2006, 07:58 AM   #6
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
Hi michaelk

In my initial question I had stated that I was using Mandrake 9.0 so I wasn't sure what odcheck meant, sorry.

The motherboard was taken from a server built at the same time but seldom used and is a Gigabyte P4 Titan 533
The network card is just a cheap PCI card I think the make is PTC. I have tried the lspci command but it isn't recognised the ifconfig command shows the following:-

ETH0 Link encap Ethernet
inet addr: (our static IP) Bcast 192.168.0.255 Mask 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric 1


lo Link encap Local loopback
inet address 127.0.0.1 Mask 255.0.0.0
UP LOOPBACK RUNNING MTU 16436 mETRIC 1

I hope this helps

Kind regards

Gerard
 
Old 09-26-2006, 08:11 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
So it appears that eth0 is working and being assigned the correct IP address.
And pinging the IP address of this server fails?

Have you checked the ethernet cables? are the link lights illuminated on both ends of the cable? Check the output of the command mii-tool. Does it show a good connection? Don't worry yet if the command fails since it does not support all ethernet devices.
 
Old 09-26-2006, 08:22 AM   #8
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
I have tried pinging the email server again but it just times out. I have also checked the ethernet cable and it it making a link on both sides. The mii-tool responded with:- eth0: negotiated 100baseTx-FD, link OK.
 
Old 09-26-2006, 08:31 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Can you ping any other computer from the email server?
Disabling Plug and Play in the motherboard BIOS configuration sometimes fixes this problem.
 
Old 09-26-2006, 09:04 AM   #10
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
No I can't ping any other computer or the router. When the server is booting only one error:-
Modprob: insmod usb-vhci failed.
I don't know if this has anything to do with the problem.

I went into the bios and p&p has only an Auto feature or a number for each slot. The PCI card is in slot 3 should I try moving or changing it?
 
Old 09-26-2006, 09:13 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Try it and see.
 
Old 09-26-2006, 10:21 AM   #12
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
I have tried changing the network card but the computer didn't recognise it at all.
I tried using /sbin/ifconfig eth0 inet (static IP) netmask 255.255.255.0 but got a reply that it could not recognise eth0 so I'm back to the drawing board.
 
Old 09-26-2006, 10:31 AM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Did you change with the same make/model network card?
 
Old 09-26-2006, 10:59 AM   #14
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
No it was an Intel board
 
Old 09-26-2006, 11:21 AM   #15
gcscullion
LQ Newbie
 
Registered: Sep 2006
Location: Co Derry Ireland
Posts: 9

Original Poster
Rep: Reputation: 0
Hi Michaelk

Thanks for all your help it is now 5.20pm here and I'm supposed to finish at 5.00pm. I will try again tomorrow and maybe get something sorted.

Thanks again

Regards

Gerard
 
  


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
Changing Mac Address on Network Card? neopiper Linux - Networking 10 11-21-2007 02:14 AM
[SOLVED] Converting static IP-address to dynamic IP-address Blue_Ice Linux - Networking 3 07-20-2006 03:35 AM
Crash, reset, and network card failure timelord726 Linux - Newbie 3 08-12-2004 11:25 AM
how do I reset the IRQ of my network card? Admiral Yoshi Linux - Networking 2 05-15-2002 10:02 PM
help: network card seems to work, but can't get ip address via dhcp. aidano Linux - Networking 1 10-30-2001 11:27 PM

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

All times are GMT -5. The time now is 04:54 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