kickstart配置文件適配 vlan 場景應用

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.htmlhtml


---------------------
# 單網卡+Vlan+DHCPlinux

network --bootproto=dhcp --noipv6 --activate --device=enp2s0f0 --vlanid=50 --interfacename=vlan70


# 單網卡+Vlan+固定IPapp

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+DHCPide

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中給網卡打標籤ui

label rhel7blade
kernel 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=foxCo
append 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
相關文章
相關標籤/搜索