Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #172098
| From | Charlie Kravetz <cjk@teamcharliesangels.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Defining TAP interfaces in /etc/network/interfaces |
| Date | 2016-09-12 23:40 +0200 |
| Message-ID | <sgH7j-FR-29@gated-at.bofh.it> (permalink) |
| References | <sgFRU-8ja-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On Mon, 12 Sep 2016 21:14:15 +0100
Andrew Wood <andrewjameswood@ymail.com> wrote:
>Im (slowly) trying to setup bridging and TAP interfaces to use with QEMU
>so each VM can have a 'real' IP on the network rather than NAT.
>
>
>I now have a bridge setup (br1) using eth1 which Ive done in
>/etc/network/interfaces with:
>
>auto eth1
>auto br1
>iface br1 inet dhcp
> bridge_ports eth1
> bridge_stp off
> bridge_fd 0
> bridge_maxwait 0
>
>
>However I cannot work out how to add TAP interfaces to this bridge using
>that file. Currently I have to do it with the tunctl & brctl commands in
>a separate script.
>
>
>It is possible to do it in /etc/network/interfaces ?
>
>Thanks
>Andrew
>
Change the bridge_ports to:
bridge_ports eth1 tap0
then add the tap lines:
auto tap0
iface tap0 inet static
address 192.168.??.?
netmask 255.255.255.0
tunctl_user vboxusers
Change these as needed for your own setup. This works for me using
virtual box.
- --
Charlie Kravetz
Linux Registered User Number 425914
[http://linuxcounter.net/user/425914.html]
Never let anyone steal your DREAM. [http://keepingdreams.com]
-----BEGIN PGP SIGNATURE-----
iQEcBAEBCAAGBQJX1xNUAAoJEIqui46mydCAgsIH/1fsOHvnc+Aj7aRLxqwyiclg
abcpmpKKWm3/hkottLNBa1BrKpTUzfeqD/Am8xt8/uPdwkhP8czTiOWDNGq78FD5
hlNPIakTp0jp4UQJ7TZXybUt+toUDP0bZWcMBD7tI0VMKuXjvUNsxIcA3P+LI+Q5
cD0Drq2RC+SZK6oXowkb23M9PKnzgaJJH2TzNoFYFQX4MMSqAyCCCbtd0LYCihaw
WO7k8k6/q7XIw99ruH4ApB0jfm5X8jDfm8LVqo5EUhv76+9BaTUh3JebefP3iRQC
Km21mgLAZH0oFmKoajkm4RP8LoRy2Xn3SbRA0ztMWRxAfiedtr+WnAGSQH/T1xA=
=zffI
-----END PGP SIGNATURE-----
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Defining TAP interfaces in /etc/network/interfaces Andrew Wood <andrewjameswood@ymail.com> - 2016-09-12 22:20 +0200
Re: Defining TAP interfaces in /etc/network/interfaces Nemeth Gyorgy <friczy@freemail.hu> - 2016-09-12 22:40 +0200
Re: Defining TAP interfaces in /etc/network/interfaces Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-09-12 23:40 +0200
Re: Defining TAP interfaces in /etc/network/interfaces "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu> - 2016-09-13 00:30 +0200
Re: Defining TAP interfaces in /etc/network/interfaces Andrew Wood <andrewjameswood@ymail.com> - 2016-09-16 21:50 +0200
csiph-web