您的位置:首页 > 其它

kickstart配置文件适配 vlan 场景应用

2017-08-28 00:00 225 查看
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/sect-kickstart-syntax.html

---------------------
# 单网卡+Vlan+DHCP

network --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 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  kickstart