eth0 to eth1

Irritus
Posts: 14
Joined: Sat Jan 01, 2011 3:42 pm

eth0 to eth1

Postby Irritus » Sun Jan 16, 2011 3:34 pm

Hey,
First off, I am I big time novice in Linux(Fedora12). I know the basics pretty much.
Second, my PSU blew out my motherboard. After swapping out the PSU and the motherboard I turned on the computer and gave it a shot. The machine itself runs fine, but there is no NIC access. Meaning:
-No internet via firefox
-No access to it from another machine via putty.

I'm guessing that is because the NIC on the blown-out motherboard is still thought of as eth0 and the one on this motherboard is thought of as eth1.

If anyone has any information on how I can get this to work, it would be very appreciated.
Thank you.

Note: I have PCIe NIC cards if that would be easier to configure.

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: eth0 to eth1

Postby rgmhtt » Mon Jan 17, 2011 9:21 am

This is hard coded in the /usr/bin/hdactl script. You will have to modify that to use eth1 over eth0.

It may take a couple boots to get things like Monit to be working with eth1 rather than eth0.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: eth0 to eth1

Postby moredruid » Mon Jan 17, 2011 11:45 am

probably there's nothing wrong with your setup except for the MAC address in your eth0 config.

run an "ifconfig -a" and note down the MAC address of the current ethernet adapter (it should be listed as eth0).
edit the following file:
/etc/sysconfig/network-scripts/ifcfg-eth0
check if the MAC address is different, modify it or put a "#" in front of the "hwaddress" line.
run the following command: "service network restart" and you should be up and running again.

note: everything should be run as root user.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Irritus
Posts: 14
Joined: Sat Jan 01, 2011 3:42 pm

Re: eth0 to eth1

Postby Irritus » Mon Jan 17, 2011 1:42 pm

Hello again,
eth0 doesn't show up when doing "ifconfig -a"
What does come up is the following:

Code: Select all

eth1 Link encap:Ethernet HWaddr 00:17:31:B9:B2:0C BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:21 Base address:0x4000 eth2 Link encap:Ethernet HWaddr 00:10:B5:4B:FD:D8 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Base address:0xc000 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:86 errors:0 dropped:0 overruns:0 frame:0 TX packets:86 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8235 (8.0 KiB) TX bytes:8235 (8.0 KiB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 b) TX bytes:5579 (5.4 KiB)
Also when I tried the "service network restart" command:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: eth0 to eth1

Postby moredruid » Tue Jan 18, 2011 1:34 am

hmm weird, this seems to be new behaviour, older versions just took the "new" eth0 as it was found.

can you try to add the following to the ifcfg-eth0 config file: 00:17:31:B9:B2:0C (it should be in place of the other MAC address) and move ifcfg-eth1 to your /root/ partition. Then again the service network restart.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Irritus
Posts: 14
Joined: Sat Jan 01, 2011 3:42 pm

Re: eth0 to eth1

Postby Irritus » Tue Jan 18, 2011 7:03 am

There wasn't a ifcfg-eth1 file in the network-scripts folder.
After changing the MAC address, I did "service network restart" and the same result came up:
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
EDIT:
I also took a peek into the hdactl file and I notice that it says:
# FIXME only eth0 supported for now - moving to do more

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: eth0 to eth1

Postby rgmhtt » Tue Jan 18, 2011 4:36 pm

You have a real problem with your motherboard netcard dead.

I am at the IEEE 802.11/.15 conference right now, so I can't do any testing to help you directly. This is something I would like to get working. Particularly support for wlan0 interfaces.

But I just had a thought.

Go into your BIOS config and disable the onboard ethernet. Now it is not even visible to the OS and the OS may at this point assign your addin netcard as eth0.

Worth a try,

Irritus
Posts: 14
Joined: Sat Jan 01, 2011 3:42 pm

Re: eth0 to eth1

Postby Irritus » Tue Jan 18, 2011 9:29 pm

Update:
After disabling the Onboard LAN, only eth2, lo, and tun0 shows up under ifconfig -a.

User avatar
rgmhtt
Posts: 421
Joined: Sun Jan 11, 2009 9:26 am

Re: eth0 to eth1

Postby rgmhtt » Wed Jan 19, 2011 3:36 pm

I am looking at:

http://docs.redhat.com/docs/en-US/Red_H ... index.html

And it has php 5.3, so may have to wait for Centos 5.6...

I seem comments on the Centos list about Ruby upgrades not coming until Centos 6.0, do we need that level of Ruby?

Irritus
Posts: 14
Joined: Sat Jan 01, 2011 3:42 pm

Re: eth0 to eth1

Postby Irritus » Wed Jan 19, 2011 5:19 pm

Ummm, I am confused..
Also, would it be simpler if I were to reload F12?
I have a 40GB drive that is my OS drive and a 2TB drive for the actual data.
My friend was the one who set up the F12/Amahi to begin with so I don't know how mount the 2TB drive on the 40GB drive..
I would really prefer for that to be the last option but yea..

Who is online

Users browsing this forum: No registered users and 65 guests