hello there.
following is the result I got with 'cat', 'augtool', 'ncftool'
on
/etc/sysconfig/network-scripts/ifcfg-eth0:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:1E:4F:D8:CB:7E
IPV6INIT=yes
IPV6_AUTOCONF=yes
ONBOOT=yes
OPTIONS=layer2=1
# augtool
augtool> print /files//etc/sysconfig/network-scripts/ifcfg-eth0
/files/etc/sysconfig/network-scripts/ifcfg-eth0
/files/etc/sysconfig/network-scripts/ifcfg-eth0/DEVICE = "eth0"
/files/etc/sysconfig/network-scripts/ifcfg-eth0/BOOTPROTO = "dhcp"
/files/etc/sysconfig/network-scripts/ifcfg-eth0/HWADDR =
"00:1E:4F:D8:CB:7E"
/files/etc/sysconfig/network-scripts/ifcfg-eth0/IPV6INIT = "yes"
/files/etc/sysconfig/network-scripts/ifcfg-eth0/IPV6_AUTOCONF = "yes"
/files/etc/sysconfig/network-scripts/ifcfg-eth0/ONBOOT = "yes"
/files/etc/sysconfig/network-scripts/ifcfg-eth0/OPTIONS = "layer2=1"
augtool>
# ncftool
ncftool> dumpxml eth0
<?xml version="1.0"?>
<interface type="ethernet" name="eth0">
<start mode="onboot"/>
<mac address="00:1E:4F:D8:CB:7E"/>
<protocol family="ipv4">
<dhcp/>
</protocol>
<protocol family="ipv6">
<autoconf/>
</protocol>
</interface>
As we can see above, netcf lost "OPTIONS=layer2=1". Is it expected so?
Regards
osier
Show replies by date