Skip to content

Instantly share code, notes, and snippets.

@arrjay
arrjay / sparsify.c
Created July 24, 2016 01:14 — forked from kempniu/sparsify.c
sparsify - copy non-zero blocks of data from source to destination
/*
***********************************************************************
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long

RedHat manual

[root@centos7 ~]# nmcli con add type vlan ifname enp3s0.100 dev enp3s0 id 100
Connection 'vlan-enp3s0.100' (2c0faef4-95ec-4a1b-87fa-c3c70446cf53) successfully added.
[root@centos7 network-scripts]# nmcli c add type bridge ifname brenp3s0-100
Connection 'bridge-brenp3s0-100' (7e46c607-832e-4bdf-82d4-c08b32364ffe) successfully added.