I have a new CentOS 7.4 install as a guest on a CentOS 6.9 Xen 4.6.6 host. It was installed with virt-install:
Code: Select all
virt-install --paravirt --name dns-1 --ram 2048 --vcpus 2 --disk path=/dev/vg_xxx/lv_xxx --network bridge=xenbr0 --location http://vault.centos.org/7.3.1611/os/x86_64/ --graphics none --initrd-inject=/root/Xen/Kickstarts/centos7.3_vm180105.01.ks --extra-args "ks=file:/centos7.3_vm180105.01.ks"
Code: Select all
network --device=eth0 --bootproto=static --ip=xx.xx.xx.179 --netmask=255.255.255.0 --gateway=xx.xx.xx.115 --nameserver=xx.xx.xx.180,xx.xx.xx.181,208.67.222.222,208.67.200.200 --ipv6 auto --hostname=host.domain.com --onboot=yes
Looking in /etc/sysconfig/network-scripts, there are two config files: ifcfg-eth0 and ifcfg-eth0-1. I know that ifcfg-eth0:1 would be for a virtual IP. Is the "-1" a backup that a script created at some point (I haven't edited anything yet) or is it actually used by the system. Both files have the same IP address.
Here are the redacted file contents for reference:
ifcfg-eth0
Code: Select all
# Generated by dracut initrd
NAME="eth0"
HWADDR="00:16:3e:85:cf:20"
ONBOOT=yes
NETBOOT=yes
UUID="103241a0-6d18-4a31-9646-38756cffebcb"
IPV6INIT=yes
BOOTPROTO=none
IPADDR="xx.xx.xx.179"
NETMASK="255.255.255.0"
GATEWAY="xx.xx.xx.115"
TYPE=Ethernet
DNS1="xx.xx.xx.180"
DNS2="xx.xx.xx.181"
DNS3="208.67.222.222"
DNS4="208.67.200.200"
Code: Select all
TYPE="Ethernet"
BOOTPROTO="none"
IPADDR="xx.xx.xx.179"
PREFIX="24"
GATEWAY="xx.xx.xx.115"
DNS1="xx.xx.xx.180"
DNS2="xx.xx.xx.181"
DNS3="208.67.222.222"
DNS4="208.67.200.200"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="eth0"
UUID="02bfb71c-4240-403e-b822-25cedb366c00"
DEVICE="eth0"
ONBOOT="yes"