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

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

 

转载于:https://my.oschina.net/u/3362827/blog/1524913

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值