level 1
6954658
楼主
<interfaces config:type="list"> <interface> <bootproto>static</bootproto> <device>eth4</device> <ipaddr>10.114.35</ipaddr> <name>NX3031 Multifunction 1/10-Gigabit Server Adapter</name> <netmask>255.255.255.0</netmask> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> <interface> <aliases> <alias2> <IPADDR>127.0.0.2</IPADDR> <NETMASK>255.0.0.0</NETMASK> <PREFIXLEN>8</PREFIXLEN> </alias2> </aliases> <broadcast>127.255.255.255</broadcast> <device>lo</device> <firewall>no</firewall> <ipaddr>127.0.0.1</ipaddr> <netmask>255.0.0.0</netmask> <network>127.0.0.0</network> <prefixlen>8</prefixlen> <startmode>auto</startmode> <usercontrol>no</usercontrol> </interface> </interfaces> <managed config:type="boolean">false</managed> <net-udev config:type="list"> <rule> <name>eth0</name> <rule>ATTR{address}</rule> <value>e8:39:35:a7:29:30</value>上面这段取自SUSE的静默安装文件autoinst.xml文件,主要的功能是设置IP。现在有一个问题想请教一下<device>eth4</device>这个标签内目前填写的是网卡设备号,能否换成MAC地址?如<device>ab:cd:ef:gh:ij:kl</device>这样的方式来设置IP?
2014年10月21日 13点10分
1