VirtualBox

Ticket #2396: interfaces

File interfaces, 2.3 KB (added by ZioNemo, 16 years ago)

/etc/network/interfaces used to setup the bridges.

Line 
1auto lo
2iface lo inet loopback
3
4#auto eth0
5#iface eth0 inet dhcp
6#iface eth0 inet static
7# address 192.168.0.5
8# netmask 255.255.255.0
9# gateway 192.168.0.254
10# gateway 192.168.0.15
11
12#auto eth2
13#iface eth2 inet dhcp
14#iface eth2 inet static
15# address 192.168.120.5
16# netmask 255.255.255.0
17# up route add -net 192.168.12.0 netmask 255.255.255.0 gw 192.168.120.1
18# down route del -net 192.168.12.0 netmask 255.255.255.0 gw 192.168.120.1
19
20## The primary network interface
21#auto br0
22#iface br0 inet static
23# address 192.168.0.251
24# netmask 255.255.255.0
25# gateway 192.168.0.254
26# bridge_ports eth0
27# post-up chgrp vboxusers /dev/net/tun
28#iface br0 inet manual
29# bridge_ports eth0
30# post-up chgrp vboxusers /dev/net/tun
31
32## The secondary network interface
33#auto br2
34#iface br2 inet manual
35# bridge_ports eth2
36# post-up chgrp vboxusers /dev/net/tun
37
38#--------------------------
39# permanent host interfaces
40#--------------------------
41
42# LAN -------------------------------
43auto eth0 tap0 br0
44
45iface eth0 inet manual
46
47iface tap0 inet manual
48 up ifconfig $IFACE 0.0.0.0 up
49 down ifconfig $IFACE down
50 tunctl_user mauro
51
52iface br0 inet static
53 address 192.168.0.5
54 netmask 255.255.255.0
55 #gateway 192.168.0.254
56 bridge_ports eth0 tap0
57 bridge_maxwait 0
58#-----------------------------------
59
60# WAN ------------------------------
61auto eth2 tap2 tap4 br2
62
63# physical interface to Ydea net
64iface eth2 inet static
65 address 192.168.120.5
66 netmask 255.255.255.0
67
68iface tap2 inet manual
69 up ifconfig $IFACE 0.0.0.0 up
70 down ifconfig $IFACE down
71 tunctl_user mauro
72
73iface tap4 inet manual
74 up /root/Ydea/tap-up.sh
75 down /root/Ydea/tap-down.sh
76 tunctl_user mauro
77
78iface br2 inet manual
79# address 192.168.120.5
80# netmask 255.255.255.0
81 bridge_ports tap4 tap2
82 bridge_maxwait 0
83#-----------------------------------
84
85# DMZ ------------------------------
86auto tap1 tap3 br1
87
88iface tap1 inet manual
89 up ifconfig $IFACE 0.0.0.0 up
90 down ifconfig $IFACE down
91 tunctl_user mauro
92
93iface tap3 inet manual
94 up ifconfig $IFACE 0.0.0.0 up
95 down ifconfig $IFACE down
96 tunctl_user mauro
97
98iface br1 inet static
99 address 192.168.77.5
100 netmask 255.255.255.0
101 bridge_ports tap1 tap3
102 bridge_maxwait 0
103#-----------------------------------
104
105

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy