why Interface devname 'em' changed to 'eth' after installation of CentOS6.6 pxe kickstart?

B

badpasta

Guest
OS: Centos6.6
Environmental: PXE Kickstart
Server: Dell PowerEdge R730

Main(): ^^
It's very successfully for PXE kickstart OS installation. But when reboot, i found my server interface devname was changed. My 70-persistent-net.rule </etc/udev/rules/> call me ,DeviceName = eth0. But the default, Dell Server DevName is "em" <em0>. And my server config file /etc/sysconfig/network-scripts/ifcfg-em1 "Device = em1". Call me why? What's happen for this?

File: pxelinux.cfg/C0A8FF22
Code:
default vesamenu.c32
#default linux
prompt 0
timeout 10

display boot.msg

menu background splash.jpg
menu title Welcome to PXE Install OS!
#menu color border 0 #ffffffff #00000000
#menu color sel 7 #ffffffff #ff000000
#menu color title 0 #ffffffff #00000000
#menu color tabmsg 0 #ffffffff #00000000
#menu color unsel 0 #ffffffff #00000000
#menu color hotsel 0 #ff000000 #ffffffff
#menu color hotkey 7 #ffffffff #ff000000
#menu color scrollbar 0 #ffffffff #00000000

label testserver
        kernel vmlinuz
        menu label testserver
        append initrd=initrd.img  ksdevice=em1 kssendmac text ks=C0A8FF22.ks

#ksdevice=booif choose eth*

File: C0A8FF22.ks

Code:
unsupported_hardware
auth  --useshadow  --enablemd5
bootloader --driveorder=sda
text
firewall --disabled
firstboot --disable
keyboard us
lang en_US
url --url=

network --bootproto=dhcp --device=em1 --onboot=on
reboot

rootpw 123456
selinux --disabled
skipx
timezone  Asia/Shanghai
install
part /boot --size=2048 --fstype=ext4
part swap --size=16384 --fstype=swap
part / --size=51200 --fstype=ext4
part /home --size=1 --grow --fstype=ext4


%pre
/usr/sbin/parted -s /dev/sda mklabel gpt
%end

%post
cat > /etc/sysconfig/network-scripts/ifcfg-em1 << EOF
DEVICE=em1
BOOTPROTO=static
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=10.0.3.34
GATEWAY=10.0.3.1
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes
EOF

cat > /etc/sysconfig/network << EOF
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=gp5
GATEWAY=10.0.3.1
EOF

cat > /etc/sysconfig/network-scripts/route-em1 << EOF
10.0.0.0/16 via 10.0.3.1
EOF
%end
 

Members online


Latest posts

Top