Skip to content

Some hooks to get vlan and bond interfaces to work with initramfs

License

Notifications You must be signed in to change notification settings

malakudi/initramfs-tools-network-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

initramfs-tools-network-hook

You can add this hooks to your initramfs-tools to get support for bond interfaces or vlan interfaces during boot. You can configure the hooks in your /etc/initramfs-tools/initramfs.conf. Tested successfully under debian 9. It should also work on other debian based Distros like ubuntu.

Requiments

The package ifenslave for bonding support. The package vlan for vlan support.

Installation

Copy the files to the corresponding folder on your system. Make the hooks and scripts are executable.

Add VLAN Interface

Add the following Line to your /etc/initramfs-tools/initramfs.conf to enable the VLAN IDs 221 and 222 on eth0:

VLAN="eth0:221 eth0:222"

Add Bond Interface

Add the following Line to your /etc/initramfs-tools/initramfs.conf to enslave eth0 and eth1 to bond0 and eth2 and eth3 to bond1.

BOND="bond0:eth0,eth1 bond1:eth2,eth3"

With the following Line you can define the Bonding Driver Options For example use:

BOND_MODE="mode=802.3ad miimon=100"

Other Things you should know

Maybe you have to add the driver for your NIC to your initramfs via modprobe

About

Some hooks to get vlan and bond interfaces to work with initramfs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%