Tag Archives: Linux

Ubuntu Server: rename eth1 to eth0

Today I needed to change / rename network interface name ‘eth1’ to ‘eth0’, after replacing broken network card. I searched for the file ‘/etc/iftab’, and it was not there.

The solution lies in the file ‘/etc/udev/rules.d/70-persistent-net.rules’:
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0b:49:81:02:13", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

Changing NAME=”eth1″ to NAME=”eth0″ did the trick.

Tested on Ubuntu Server 9.04.

VMware ESXi enable remote ssh access (unsupported)

To enable VMware ESXi 4.0 SSH (Windows Putty) access:

  • At physical console press ALT+F1. VMware ESXi banner will appear.
  • There is no prompt on the screen, but type ‘unsupported’ and press Enter.
  • Now at password prompt type root password.
  • You are logged in Linux console. Type:

vi /etc/inetd.conf

  • Locate line with commented SSH – ‘#ssh tcp …’, and uncomment it – delete ‘#’. (Press Insert to go into edit mode, delete ‘#’, press Esc to go back, type ‘:wq’ to save and quit.
  • Now you can restart server, or restart services using:

/sbin/services.sh restart

Tested on VMware ESXi 4.0.