Wednesday, August 19, 2009

Mac address changed by itself (Debian linux)

Upon a hardware upgrade (new motherboard), the dual LAN card (Intel PRO100 S) installed on the system changed mac address by itself for one of its two adapters. The old harware mac 00:19:d1:25:d4:0b changed to 00:19:d1:55:7c:7c. Only the serial number changed and not the Vendor. I'm still looking for an explanation...

Here is the story (Debian Lenny)

The problem:
DHCP won't start (dhcpd will give IPs to only eth0). ifconfig shows eth0_rename, but no eth0 (like I used to have). Also, internal lan with a static IP address on eth0 won't work. It just won't start. This is how my /etc/network/interfaces looks like:
# Local - static IP
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255


The solution:
As I understand, udev saw the new mac and changed the name from eth0 to eth0_rename. Why it did so, and not renamed it with eth1 or eth2 etc.... like it would suppose to do, I don't know - but that's another story. My best friend Google sent me to some pages about bugs related to udev (which probably is the culprit in this case). I found out that I should try to remove the file /etc/udev/rules.d/70-persistent-net.rules (as I understand, it is generated by udev upon installation/first reboot, then updated as new LAN hardware is added). Then reboot. My effort was rewarded with a brand new /etc/udev/rules.d/70-persistent-net.rules file and all the problems fixed. Of course, the new mac is there and the old one is gone...



About / Despre acest blog
Disclaimer and privacy statement / Confidenţialitate
Updated / Actualizat: 2009-08-19.

___


Wednesday, August 12, 2009

Two ethernet cables over one physical cable

If, by any chance, in need to use 2 network cables (4-pins each) over a physical one (8-pins), I found a great post about it. In short, here's how:

Wires to connect for your first cable (at each end):
(Pin one is always the left-most pin if the flat side of the connector is facing you and the copper pins are facing away from you.)

Pin Color
1 white and orange
2 orange
3 white and green
4 UNUSED
5 UNUSED
6 green
7 UNUSED
8 UNUSED

Wires to connect for your "second" cable (at each end):

1 white and blue
2 blue
3 white and brown
4 UNUSED
5 UNUSED
6 brown
7 UNUSED
8 UNUSED


I successfully did it over a CAT5 cable (2 m long).

Helpful links:
- CAT 5 Cable / RJ 45 Connector


About / Despre acest blog
Disclaimer and privacy statement / Confidenţialitate
Updated / Actualizat: 2009-08-12.

___

Wednesday, August 5, 2009

Linux on VPC 2007 (SP1)

Installation
Installing linux on Microsoft Virtual PC 2007 gives kernel panic. To avoid this error, give to the installer the following kernel parameters:

noapic nolapic noreplace-paravirt

I found this info here.


What is my IP?
It looks like the website http://whatismyip.com has limited query of IP in their front page, for computers behind NAT, scripts or CLI browsers, such as links, links2, lynx...
The correct link for this purpose is http://whatismyip.com/automation/n09230945.asp.

I found other solutions:
# wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
# curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
# curl -s http://whatismyip.org
# lynx -dump checkip.dyndns.org



About / Despre acest blog
Disclaimer and privacy statement / Confidenţialitate
Updated / Actualizat: 2009-08-05.

___