Jonatan Schlag
7b616db4e2
Network: add macvtap mode
...
This change make it possible to use a macvtap interface as a
standard interface (green0).
This is required by libvirt, because libvirt adds macvtap interfaces to
the physical interface, but this causes a problem. A VM with this
configuration can communicate with the whole network,
but not with the Host (IPFire).
To solve this problem, the host interface must be also a macvtap interface.
This is achieved by:
1. In /var/ipfire/ethernet/settings the mode of a interface could set
with GREEN_MODE= ...
When the mode is macvtap the physical interface is renamed to green0phys
instead of green0. If the mode is not set the normal configuration is
applied .
2. The network-hotplug-macvtap script checks if a physical nic ends
with "phys".
When the interface ends with "phys", the script adds a macvtap interface
to the physical nic which is named green0. The MAC address of this
interface is set to the MAC address of the physical nic. The MAC address
of the physical is set to a random value. We do this because the MAC
address of green0 should not change.
All services, IP addresses then binds to the macvatap interface, the
physical nic is not used.
PS.: The script works also with the orange or blue interface, just
replace green with orange or blue.
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org >
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org >
2016-06-01 22:22:29 +01:00
..
2016-05-17 14:03:54 +01:00
2010-11-30 15:38:32 +01:00
2015-09-11 00:16:41 +02:00
2013-06-27 06:36:38 +02:00
2007-11-04 00:50:30 +00:00
2015-05-05 14:00:20 +02:00
2012-09-06 21:55:49 +02:00
2008-10-28 18:14:09 +01:00
2008-10-28 18:14:09 +01:00
2013-07-31 18:06:05 +02:00
2015-12-12 13:11:45 +00:00
2016-03-22 22:04:16 +00:00
2016-03-19 12:49:00 +01:00
2010-11-30 15:38:32 +01:00
2012-10-09 15:48:01 +02:00
2012-10-09 15:49:06 +02:00
2014-01-19 10:57:34 +01:00
2016-04-25 18:02:53 +02:00
2007-10-18 05:55:08 +00:00
2014-07-23 17:31:59 +02:00
2014-10-10 15:03:45 +02:00
2014-08-07 14:49:50 +02:00
2008-04-09 19:02:30 +02:00
2014-03-11 18:03:59 +01:00
2007-08-29 13:25:32 +00:00
2008-10-28 18:14:09 +01:00
2016-03-31 13:55:35 +01:00
2016-01-20 19:28:56 +01:00
2016-03-08 22:44:01 +00:00
2016-02-24 22:12:53 -08:00
2013-06-14 13:07:02 +02:00
2013-12-29 20:14:01 +01:00
2015-11-11 22:05:15 +01:00
2007-10-08 18:34:12 +00:00
2013-08-28 09:43:44 +02:00
2016-04-08 14:59:40 +01:00
2010-10-21 00:24:24 +02:00
2015-07-10 15:14:15 +02:00
2014-05-29 19:35:38 +02:00
2012-08-24 15:26:30 +02:00
2007-08-29 13:25:32 +00:00
2012-08-06 22:29:56 +02:00
2016-01-20 19:28:56 +01:00
2015-09-15 20:46:37 +02:00
2014-08-06 10:30:44 +02:00
2015-08-13 17:59:19 +01:00
2013-01-26 19:54:51 +01:00
2016-05-06 11:22:05 +02:00
2016-01-07 17:41:43 +01:00
2011-06-01 23:46:42 +02:00
2016-01-22 11:48:51 +00:00
2015-04-12 22:44:50 +02:00
2008-10-28 18:14:09 +01:00
2016-03-17 23:04:54 +01:00
2016-04-20 16:23:22 +01:00
2015-06-23 14:45:06 +02:00
2008-10-28 18:14:09 +01:00
2008-10-28 18:14:09 +01:00
2012-10-26 17:43:29 +02:00
2015-08-17 20:31:28 +01:00
2010-07-22 11:52:52 +02:00
2015-12-02 14:17:34 +01:00
2015-03-12 12:55:05 +01:00
2012-01-21 20:11:01 +01:00
2015-08-02 21:41:21 +01:00
2016-04-26 22:28:18 +01:00
2015-09-14 13:07:22 +01:00
2015-03-19 19:18:49 +01:00
2015-08-02 21:34:12 +01:00
2012-08-07 11:28:52 +02:00
2015-10-17 01:26:46 +01:00
2010-07-12 00:24:26 +02:00
2007-08-29 13:25:32 +00:00
2012-08-29 20:32:25 +02:00
2008-05-30 22:43:15 +02:00
2015-02-18 12:47:37 +01:00
2016-02-01 07:31:46 +01:00
2016-05-01 14:20:34 +02:00
2008-10-28 18:14:09 +01:00
2008-10-28 18:14:09 +01:00
2008-10-28 18:14:09 +01:00
2015-02-07 22:22:31 +00:00
2016-04-17 20:21:55 +01:00
2016-04-01 19:12:47 +01:00
2016-04-10 09:41:08 +02:00
2016-05-19 18:25:21 +01:00
2010-04-05 15:58:06 +02:00
2011-11-13 14:30:18 +01:00
2015-05-05 22:34:30 +02:00
2015-01-02 00:49:34 +01:00
2011-09-16 21:12:18 +02:00
2016-03-22 22:21:25 +00:00
2016-04-01 08:25:08 +02:00
2016-03-29 14:13:42 +01:00
2007-08-29 13:25:32 +00:00
2015-05-13 19:46:18 +02:00
2008-10-28 18:14:09 +01:00
2014-11-23 14:30:47 +01:00
2015-02-01 17:17:32 +01:00
2016-05-01 14:20:34 +02:00
2009-05-29 15:00:36 +02:00
2010-02-16 22:06:17 +01:00
2012-08-15 18:53:30 +02:00
2008-06-03 20:46:42 +02:00
2014-11-29 23:55:57 +01:00
2013-12-26 14:16:23 +01:00
2015-02-07 22:22:31 +00:00
2014-02-28 16:09:45 +01:00
2015-08-17 20:34:33 +01:00
2016-05-01 14:20:34 +02:00
2015-09-09 15:32:09 +01:00
2012-08-07 20:29:06 +02:00
2015-05-03 21:51:04 +02:00
2016-03-05 17:07:23 +01:00
2012-06-17 17:00:08 +02:00
2012-08-24 15:22:10 +02:00
2013-10-24 15:21:42 +02:00
2015-01-13 16:41:32 +01:00
2008-03-27 08:48:22 +00:00
2007-08-29 13:25:32 +00:00
2015-03-02 21:12:20 +01:00
2007-08-29 13:25:32 +00:00
2016-05-01 14:20:34 +02:00
2016-05-22 10:56:57 +02:00
2007-08-29 13:25:32 +00:00
2007-08-29 13:25:32 +00:00
2007-08-29 13:25:32 +00:00
2007-08-29 13:25:32 +00:00
2015-02-15 13:33:29 +01:00
2016-05-01 14:20:34 +02:00
2007-08-31 09:20:15 +00:00
2016-03-24 15:32:26 +00:00
2012-08-24 15:20:30 +02:00
2016-02-17 19:47:50 +01:00
2016-03-21 21:52:42 +00:00
2014-07-18 12:52:20 +02:00
2016-04-08 16:12:14 +01:00
2011-03-21 09:29:53 +01:00
2014-11-29 21:40:22 +01:00
2013-07-03 21:38:17 +02:00
2014-06-19 14:40:56 +02:00
2016-04-26 22:29:42 +01:00
2015-02-01 17:23:28 +01:00
2016-01-10 19:35:42 +00:00
2014-01-10 16:19:43 +01:00
2013-10-24 18:14:22 +02:00
2007-08-29 13:25:32 +00:00
2015-04-09 14:35:54 +02:00
2015-08-17 20:36:04 +01:00
2016-04-26 22:32:17 +01:00
2014-06-03 20:57:30 +02:00
2012-08-15 16:48:15 -04:00
2008-10-28 18:14:09 +01:00
2008-10-28 18:14:09 +01:00
2013-08-21 16:10:49 +02:00
2016-03-21 21:47:47 +00:00
2015-02-15 13:33:23 +01:00
2008-10-28 18:14:09 +01:00
2009-03-04 22:32:44 +01:00
2007-08-31 09:20:15 +00:00
2014-11-03 23:16:19 +01:00
2009-06-19 16:03:46 +02:00
2016-04-01 08:20:36 +02:00
2013-07-03 10:31:53 +02:00
2013-12-25 20:49:26 +01:00
2016-05-06 15:40:38 +02:00
2014-10-25 14:56:23 +02:00
2011-03-10 16:53:59 +01:00
2012-12-31 17:00:48 +01:00
2007-08-29 13:25:32 +00:00
2013-09-27 00:48:55 +02:00
2007-08-29 13:25:32 +00:00
2011-03-14 18:49:20 +01:00
2016-04-05 23:47:36 +01:00
2015-09-05 10:14:34 +02:00
2015-09-19 18:49:24 +01:00
2015-11-07 09:11:27 +01:00
2015-06-23 13:58:41 +02:00
2013-08-30 15:43:30 +02:00
2014-12-26 07:46:13 +01:00
2013-06-19 11:49:34 +02:00
2014-12-07 11:11:41 +01:00
2014-08-01 20:37:36 +02:00
2009-09-05 17:22:01 +02:00
2013-10-15 16:46:15 +02:00
2013-07-04 17:31:30 +02:00
2014-12-26 18:00:51 +01:00
2015-06-23 14:48:56 +02:00
2013-11-18 19:00:51 +01:00
2015-10-02 19:00:13 +01:00
2009-05-17 12:11:22 +00:00
2009-10-24 18:55:37 +02:00
2013-06-10 12:31:30 +02:00
2016-04-14 11:24:40 +01:00
2014-04-14 13:05:40 +02:00
2016-04-26 22:43:54 +01:00
2015-07-09 12:09:16 +02:00
2014-12-07 15:23:57 +01:00
2015-06-18 13:19:37 +02:00
2015-01-02 11:11:22 +01:00
2013-01-14 21:46:22 +01:00
2010-12-06 18:45:39 +01:00
2014-12-07 15:46:39 +01:00
2010-07-13 18:42:44 +02:00
2015-07-07 23:05:18 +02:00
2012-08-07 20:29:06 +02:00
2014-12-07 15:40:39 +01:00
2015-09-12 15:52:45 +01:00
2015-09-12 15:53:18 +01:00
2008-10-28 18:14:09 +01:00
2007-09-29 19:52:15 +00:00
2015-02-08 14:35:49 +01:00
2014-02-28 16:09:04 +01:00
2013-01-03 16:27:38 +01:00
2015-12-22 12:40:26 +00:00
2011-08-08 22:45:25 +02:00
2015-08-22 12:27:21 +02:00
2015-05-26 14:17:48 +02:00
2015-06-23 13:46:46 +02:00
2015-06-23 14:01:44 +02:00
2015-06-23 13:56:46 +02:00
2015-06-23 13:52:08 +02:00
2015-06-23 13:37:57 +02:00
2013-08-27 20:20:47 +02:00
2014-08-07 14:49:50 +02:00
2012-08-07 12:11:47 +02:00
2015-12-04 22:18:08 +00:00
2015-08-01 20:43:49 +01:00
2012-04-07 11:30:03 +02:00
2015-12-04 22:18:37 +00:00
2008-10-28 18:14:09 +01:00
2014-07-30 22:02:35 +02:00
2012-08-21 14:40:14 +02:00
2016-03-22 22:03:51 +00:00
2012-11-13 23:49:45 +01:00
2010-06-29 14:51:18 +02:00
2016-05-17 14:08:45 +01:00
2015-02-01 17:39:33 +01:00
2013-01-30 09:58:29 +01:00
2015-06-18 13:23:55 +02:00
2015-06-18 13:24:04 +02:00
2012-08-07 10:32:36 +02:00
2008-10-28 18:14:09 +01:00
2016-03-29 14:40:52 +01:00
2015-02-01 20:34:36 +01:00
2016-04-17 23:31:43 +02:00
2011-09-07 13:01:44 +00:00
2015-01-02 00:48:33 +01:00
2014-11-30 09:30:58 +01:00
2011-10-04 22:16:04 +02:00
2013-12-19 22:45:34 +01:00
2015-04-21 19:16:26 +02:00
2015-03-16 18:01:39 +01:00
2015-03-08 09:57:17 +01:00
2007-08-29 13:25:32 +00:00
2015-12-22 22:27:39 +00:00
2014-08-23 16:20:48 +02:00
2015-01-13 11:09:05 +01:00
2015-11-04 21:11:07 +00:00
2016-02-24 22:12:53 -08:00
2011-04-02 12:15:19 +02:00
2015-07-09 12:09:07 +02:00
2012-06-15 11:34:09 +02:00
2008-10-28 18:14:09 +01:00
2016-05-18 22:23:53 +01:00
2016-04-06 19:44:34 +02:00
2015-12-04 22:17:13 +00:00
2015-01-11 18:21:59 +01:00
2016-03-27 11:04:49 +02:00
2009-03-24 22:39:11 +01:00
2011-04-02 12:13:59 +02:00
2010-07-01 17:01:53 +02:00
2015-01-11 18:21:59 +01:00
2015-01-03 16:23:26 +01:00
2014-08-12 12:23:44 +02:00
2015-12-04 22:18:13 +00:00
2008-11-05 15:57:10 +00:00
2015-10-18 00:31:06 +01:00
2013-06-06 11:08:23 +02:00
2013-10-24 15:20:48 +02:00
2011-08-08 22:46:13 +02:00
2012-10-20 18:54:54 +02:00
2011-05-17 21:35:39 +02:00
2016-03-21 21:55:28 +00:00
2016-03-19 12:54:12 +01:00
2007-08-29 13:25:32 +00:00
2015-01-13 16:34:57 +01:00
2013-06-15 13:48:57 +02:00
2014-08-23 16:20:48 +02:00
2014-01-26 19:29:37 +01:00
2015-02-07 22:22:31 +00:00
2011-12-29 19:35:48 +01:00
2009-07-03 13:52:37 -04:00
2016-03-29 13:15:41 +01:00
2015-02-08 15:04:35 +01:00
2016-04-08 16:12:19 +01:00
2008-10-28 18:14:09 +01:00
2016-05-01 14:20:34 +02:00
2013-12-26 13:58:07 +01:00
2008-10-28 18:14:09 +01:00
2008-10-28 18:14:09 +01:00
2009-10-25 21:36:13 +01:00
2012-03-06 22:53:07 +01:00
2014-06-03 21:06:30 +02:00
2015-08-26 23:47:33 +02:00
2015-05-31 18:56:13 +02:00
2016-03-21 21:30:07 +00:00
2015-02-01 20:39:16 +01:00
2016-05-18 16:41:51 +01:00
2014-12-29 16:51:25 +01:00
2016-04-08 16:12:16 +01:00
2007-08-29 13:25:32 +00:00
2015-03-02 21:12:20 +01:00
2016-01-10 21:18:20 +00:00
2014-05-08 21:22:22 +02:00
2013-07-15 17:03:53 +02:00
2012-08-22 13:06:56 +02:00
2007-10-28 16:20:37 +00:00
2016-05-03 11:56:19 +01:00
2016-05-03 21:28:28 +02:00
2015-12-04 22:18:31 +00:00
2016-01-04 22:41:46 +00:00
2016-03-29 21:56:05 +01:00
2016-01-06 15:09:16 +00:00
2015-09-14 19:50:13 +02:00
2015-01-11 18:21:59 +01:00
2012-06-17 17:00:10 +02:00
2008-10-28 18:14:09 +01:00
2012-08-24 15:26:30 +02:00
2014-09-30 19:28:55 +02:00
2016-03-22 15:40:38 +00:00
2016-03-22 15:40:07 +00:00
2016-03-22 15:40:21 +00:00
2012-08-11 18:13:23 -04:00
2016-04-05 22:56:33 +01:00
2012-08-20 14:14:44 +02:00
2011-08-26 07:00:42 +02:00
2016-04-04 16:28:09 +01:00
2015-06-17 20:39:36 +02:00
2013-06-23 23:16:21 +02:00
2013-06-23 23:16:21 +02:00
2013-06-23 23:16:21 +02:00
2011-01-19 13:23:10 +01:00
2014-02-01 22:08:04 +01:00
2014-02-01 22:10:10 +01:00
2014-04-16 16:05:12 +02:00
2014-04-16 16:05:12 +02:00
2015-08-21 09:33:02 +01:00
2014-02-01 22:09:44 +01:00
2013-06-23 23:16:21 +02:00
2007-08-29 13:25:32 +00:00
2011-01-19 13:23:10 +01:00
2015-06-17 20:39:34 +02:00
2015-08-21 09:33:02 +01:00
2015-06-17 20:39:28 +02:00
2014-08-06 13:38:21 +02:00
2013-04-26 12:00:34 +02:00
2015-01-03 14:03:20 +01:00
2013-06-23 23:16:21 +02:00
2013-10-03 12:39:16 +02:00
2008-03-04 18:39:29 +00:00
2014-08-23 16:00:08 +02:00
2012-08-24 15:26:30 +02:00
2016-03-22 22:12:51 +00:00
2012-08-23 22:49:43 +02:00
2015-09-11 15:06:09 +01:00
2015-04-10 13:48:47 +02:00
2015-06-18 13:17:38 +02:00
2014-08-19 16:17:44 +02:00
2012-08-13 16:33:33 -04:00
2016-05-16 16:03:08 +01:00
2007-08-29 13:25:32 +00:00
2012-11-28 16:32:43 +01:00
2012-10-09 11:34:28 +02:00
2015-06-18 21:22:51 +02:00
2010-07-25 20:13:50 +02:00
2011-03-09 08:53:33 +01:00
2011-03-10 11:17:46 +01:00
2010-07-25 20:13:50 +02:00
2011-09-24 11:02:15 +02:00
2016-03-02 21:13:31 +01:00
2010-07-25 20:13:50 +02:00
2015-07-09 17:55:05 +02:00
2011-03-09 10:03:12 +01:00
2016-03-29 21:49:35 +01:00
2010-07-25 20:13:50 +02:00
2010-07-25 20:13:50 +02:00
2016-03-29 21:48:36 +01:00
2011-03-09 10:04:03 +01:00
2016-03-29 21:49:48 +01:00
2014-09-29 13:51:26 +02:00
2012-08-20 12:12:39 +02:00
2012-08-11 18:13:23 -04:00
2014-06-19 14:24:13 +02:00
2016-05-17 14:08:47 +01:00
2014-04-29 23:01:45 +02:00
2015-12-11 18:43:24 +00:00
2016-01-26 18:02:00 +01:00
2016-04-27 18:18:20 +01:00
2016-05-23 23:08:01 +02:00
2014-08-22 12:05:39 +02:00
2015-05-26 14:09:40 +02:00
2014-11-30 17:09:38 +01:00
2012-06-15 11:35:13 +02:00
2016-04-26 22:24:07 +01:00
2016-02-08 01:33:53 +00:00
2012-12-31 17:00:48 +01:00
2007-08-29 13:25:32 +00:00
2014-08-12 12:19:10 +02:00
2007-08-29 13:25:32 +00:00
2015-02-01 20:45:58 +01:00
2014-11-07 12:47:08 +01:00
2015-11-04 21:18:56 +00:00
2007-08-29 13:25:32 +00:00
2015-10-04 16:01:33 +02:00
2011-01-19 13:23:10 +01:00
2009-12-14 22:59:26 +01:00
2016-03-29 21:49:43 +01:00
2016-03-29 21:49:38 +01:00
2015-01-11 17:02:46 +01:00
2016-06-01 22:12:15 +01:00
2015-12-17 11:35:53 +00:00
2014-10-30 17:49:43 +01:00
2014-06-02 00:54:19 +02:00
2008-12-07 14:13:04 +01:00
2013-12-27 11:29:10 +01:00
2014-05-16 17:12:43 +02:00
2015-10-15 22:44:47 +01:00
2013-05-16 10:19:50 +02:00
2012-08-24 16:24:10 +02:00
2012-11-13 22:31:39 +01:00
2013-04-12 13:53:33 +02:00
2015-12-19 14:09:10 +00:00
2016-02-23 09:43:25 -08:00
2014-05-28 20:23:13 +02:00
2013-06-23 23:16:21 +02:00
2015-01-27 20:21:17 +01:00
2011-02-06 15:20:44 +01:00
2013-05-03 17:10:16 +02:00
2012-08-11 18:13:23 -04:00
2015-02-03 07:26:34 +01:00
2015-09-05 10:14:13 +02:00
2011-09-04 19:21:44 +00:00
2012-11-11 19:02:40 +01:00
2009-01-18 17:41:15 +01:00
2015-03-29 13:35:16 +02:00
2010-10-23 09:42:57 +02:00
2015-06-18 13:15:51 +02:00
2012-05-27 21:36:44 +02:00
2007-08-29 13:25:32 +00:00
2012-08-09 16:59:31 +02:00
2016-03-22 15:40:13 +00:00
2007-08-29 13:25:32 +00:00
2009-02-13 20:52:31 +01:00
2015-07-07 23:09:01 +02:00
2016-05-07 13:23:28 +01:00
2012-05-12 19:32:23 +02:00
2015-07-07 23:09:01 +02:00
2008-03-17 18:53:43 +00:00
2016-04-26 22:30:26 +01:00
2016-03-16 22:58:21 +01:00
2016-06-01 22:22:29 +01:00
2008-10-28 18:14:09 +01:00
2015-08-22 12:30:38 +02:00
2008-10-28 18:14:09 +01:00
2012-10-09 11:17:28 +02:00
2014-05-08 16:37:07 +02:00
2014-05-08 16:37:07 +02:00
2013-11-21 00:01:21 +01:00
2014-01-11 14:21:02 +01:00
2014-03-03 16:28:51 +01:00
2014-03-03 16:31:59 +01:00
2016-01-28 13:39:09 +01:00
2015-08-26 23:42:19 +02:00
2013-05-18 16:49:35 +02:00
2013-05-18 16:49:35 +02:00
2014-05-19 19:38:00 +02:00
2013-04-23 21:25:36 +02:00
2013-10-04 14:52:44 +02:00
2013-03-21 12:28:08 +01:00
2015-12-03 13:14:23 +00:00
2015-06-02 09:02:37 +02:00
2013-08-27 20:24:43 +02:00
2014-04-27 19:37:42 +02:00
2013-07-30 15:24:30 +02:00
2015-05-05 14:00:20 +02:00
2014-11-06 23:53:01 +01:00
2007-08-29 13:25:32 +00:00
2007-08-29 13:25:32 +00:00
2010-09-15 17:41:36 +02:00
2015-01-04 18:21:06 +01:00
2016-04-26 22:37:44 +01:00
2013-12-19 10:55:57 +01:00
2014-08-21 10:58:30 +02:00
2013-08-18 16:20:59 +02:00
2008-10-28 18:14:09 +01:00
2015-12-04 22:18:23 +00:00
2015-02-07 22:22:31 +00:00
2016-02-24 22:12:53 -08:00
2011-07-24 09:53:55 +02:00
2010-01-14 21:26:09 +01:00
2014-11-05 21:48:57 +01:00