Tuesday, March 20, 2018

How to Fix Unison 6.2 VM's issue where lmhostid returns "" and not mac address

edit /etc/udev/rules.d/70-persistent-net.rules

it contains:

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:aa:6d:77", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

just change NAME= to NAME="eth0", keep the rest as is.



edit /etc/sysconfig/network-scripts/ifcfg-eth0

it contains:
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="00:0C:29:AA:6D:77"
DOMAIN="ltx.com ltx-credence.com ltxc.com"
IPV6INIT="no"
IPV6_AUTOCONF="yes"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"

make sure the HWADDR is set to correct mac address. you can get mac address from call to ifconfig


restart the system

No comments:

Post a Comment