https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html
--------------------- # 单网卡+Vlan+DHCPnetwork --bootproto=dhcp --noipv6 --activate --device=enp2s0f0 --vlanid=50 --interfacename=vlan70# 单网卡+Vlan+固定IP
network --device=enp2s0f0 --noipv6 --activate --bootproto=static --ip=10.245.254.107 --netmask=255.255.255.0 --gateway=10.245.254.1 --nameserver=10.245.254.168 --vlanid=50 --interfacename=vlan70# 双网卡绑定+Vlan+DHCP
network --device=bond0 --noipv6 --onboot=yes --bootproto=dhcp --bondslaves=enp2s0f0,enp2s0f1 --bondopts="mode=4 miimon=100 lacp_rate=fast" --vlanid=50 --interfacename=vlan50
PXE default.cfg中给网卡打标签
label rhel7bladekernel http://10.245.254.93/linux/rhel/7Server/x86_64/images/pxeboot/vmlinuz#append initrd=http://10.245.254.93/linux/rhel/7Server/x86_64/images/pxeboot/initrd.img inst.repo=http://10.245.254.93/linux/rhel/7Server/x86_64 vlan=vlan50:enp2s0f1 inst.vnc inst.vncpassword=foxCoappend initrd=http://10.245.254.93/linux/rhel/7Server/x86_64/images/pxeboot/initrd.img inst.ks=http://10.245.254.171/linux/ks/ks-rhel70-v3-blade.cfg vlan=vlan50:enp2s0f1