Showing posts with label Network. Show all posts
Showing posts with label Network. Show all posts

Thursday, February 11, 2010

No netwrok after clone/copy using VMWare ESX

After making a copy/clone of an ubuntu server 8.10, i face a network problem.

1. "ifconfig" shows no eth0 device, just the 127.0.0.1 loopback
2. "/etc/init.d/networking restart" reports:

SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

Solution
When you create a complete clone/copy of your vmware machine, a new ethernet MAC address is assigned.

follow this step :
as a root
run this CLI
# rm -fr /etc/udev/rules.d/70-*
# reboot

after wakeup, try ifconfig.
now you get your network back.

Salud!

Monday, June 29, 2009

Change Hostname and network in Linux

In Linux, you can use command simply like this to change your hostname

shell#hostname nameyourhost

or directory store your hostname

in RHEL
shell#nano /etc/hosts
in Ubuntu
shell# nano /etc/hostname

in case to edit to static IP


in RHEL Interface for network locate at

nano /etc/sysconfig/network-scripts/interface

in ubuntu

nano /etc/network/interface

add DNS in ubuntu / RHEL

nano /etc/resolv.conf

finally restart your network in linux

/etc/init.d/network restart