Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
Ik wil graag via KVM een aantal machines virtualiseren. Op zich is dat niet zo'n probleem, ware het niet dat ik er gewoon niet uitkom met bridged networking en dan met name het verkrijgen van een ip-address in de range van mijn router (zoals de rest van mijn netwerk).

Doel:
Machines zowel benaderbaar vanuit LAN Als toegang tot WAN.
De machines moeten een ip adres krijgen in de range van mijn interne netwerk 192.168.178.1

De instellingen binnen mijn machine zijn nu als volgt:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 192.168.178.100
        network 192.168.178.0
        netmask 255.255.255.0
        broadcast 192.168.178.255
        gateway 192.168.178.1
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off


De output hiervan zie je hier:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$ ifconfig
br0       Link encap:Ethernet  HWaddr 00:22:4d:6b:ef:b4
          inet addr:192.168.178.100  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: 2001:980:4822:1:222:4dff:fe6b:efb4/64 Scope:Global
          inet6 addr: 300:9095:0:e803:222:4dff:fe6b:efb4/64 Scope:Global
          inet6 addr: fe80::222:4dff:fe6b:efb4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:120870883 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118093531 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:325714350676 (325.7 GB)  TX bytes:8856705828 (8.8 GB)

eth0      Link encap:Ethernet  HWaddr 00:22:4d:6b:ef:b4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:221592358 errors:0 dropped:0 overruns:0 frame:0
          TX packets:118110462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:333736087955 (333.7 GB)  TX bytes:9966510234 (9.9 GB)
          Interrupt:20 Memory:fb100000-fb120000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:125697 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125697 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:80715200 (80.7 MB)  TX bytes:80715200 (80.7 MB)

virbr0    Link encap:Ethernet  HWaddr 8e:0a:36:47:74:e4
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:ae:98:ad
          inet6 addr: fe80::fc54:ff:feae:98ad/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:185 errors:0 dropped:0 overruns:0 frame:0
          TX packets:158 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:29323 (29.3 KB)  TX bytes:14956 (14.9 KB)


Tijdens het creeren van een VM guest, vul ik nu het volgende in:

Afbeeldingslocatie: http://img513.imageshack.us/img513/6255/br0bridge.jpg

Dit werkt echter niet.

Ik heb zo'n beetje elke tutorial op internet al gehad, maar het wil niet werken :(

//edit:

Bij een eerder ifconfig kreeg ik slechts dit te zien: (vnet0 mist ineens?)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ifconfig
br0       Link encap:Ethernet  HWaddr 00:22:4d:6b:ef:b4
          inet addr:192.168.178.100  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: 2001:980:4822:1:222:4dff:fe6b:efb4/64 Scope:Global
          inet6 addr: 300:9095:0:e803:222:4dff:fe6b:efb4/64 Scope:Global
          inet6 addr: fe80::222:4dff:fe6b:efb4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:120523694 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117740808 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:324963137701 (324.9 GB)  TX bytes:8784483780 (8.7 GB)

eth0      Link encap:Ethernet  HWaddr 00:22:4d:6b:ef:b4
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:221012988 errors:0 dropped:0 overruns:0 frame:0
          TX packets:117754868 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:332965119489 (332.9 GB)  TX bytes:9891199654 (9.8 GB)
          Interrupt:20 Memory:fb100000-fb120000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:95684 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95684 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:56145434 (56.1 MB)  TX bytes:56145434 (56.1 MB)

virbr0    Link encap:Ethernet  HWaddr 8e:0a:36:47:74:e4
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[ Voor 26% gewijzigd door Vuurvoske op 24-04-2012 10:21 ]

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • henkie32
  • Registratie: November 2007
  • Laatst online: 15:34
Wat gaat er precies fout? Volgens je ifconfig gaat er wel degelijk verkeer over je bridge (br0)

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
henkie32 schreef op dinsdag 24 april 2012 @ 10:19:
Wat gaat er precies fout? Volgens je ifconfig gaat er wel degelijk verkeer over je bridge (br0)
Ik kan niet op internet. Noch kan ik interne ip adressen pingen. (screenshots volgen)

Dat zware verkeer wat je ziet is data copy van windows machine(fysiek) naar host machine(fysiek)

Afbeeldingslocatie: http://img19.imageshack.us/img19/6264/guestosifconfigubuntu.jpg

[ Voor 23% gewijzigd door Vuurvoske op 24-04-2012 10:29 ]

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • henkie32
  • Registratie: November 2007
  • Laatst online: 15:34
Vuurvoske schreef op dinsdag 24 april 2012 @ 10:25:
[...]


Ik kan niet op internet. Noch kan ik interne ip adressen pingen. (screenshots volgen)

Dat zware verkeer wat je ziet is data copy van windows machine(fysiek) naar host machine(fysiek)
Lukt dit niet vanuit de host machine of de guests?

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
henkie32 schreef op dinsdag 24 april 2012 @ 10:27:
[...]


Lukt dit niet vanuit de host machine of de guests?
Vanuit allebei niet, ik krijg geen ip_adres.

Bij het instellen van een static ip, kan ik wel 192.168.178.1 pingen

Plaatjes:

Afbeeldingslocatie: http://img19.imageshack.us/img19/6264/guestosifconfigubuntu.jpg
Afbeeldingslocatie: http://img515.imageshack.us/img515/5361/guestosnetworkmanubuntu.jpg
Afbeeldingslocatie: http://img842.imageshack.us/img842/7466/interfacesstatic.jpg
Afbeeldingslocatie: http://img440.imageshack.us/img440/612/networkconnectionestnot.jpg

Met deze instellingen werkt het volgende wel / niet:

WEL:

ping -c 4 192.168.178.100

NIET
ping -c 4 192.168.178.1
ping -c 4 192.168.178.37 (andere machine op het netwerk)
ping -c 4 8.8.8.8
ping -c 4 www.google.com

[ Voor 59% gewijzigd door Vuurvoske op 24-04-2012 11:03 ]

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • henkie32
  • Registratie: November 2007
  • Laatst online: 15:34
Vuurvoske schreef op dinsdag 24 april 2012 @ 10:30:
[...]


Vanuit allebei niet, ik krijg geen ip_adres.
Kan je vanaf de host machine je gateway pingen?
Is je /etc/resolv.conf correct? (DNS)

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
henkie32 schreef op dinsdag 24 april 2012 @ 10:54:
[...]


Kan je vanaf de host machine je gateway pingen?
Is je /etc/resolv.conf correct? (DNS)
/etc/rsolv.conf (op host machine):
code:
1
2
3
domain fritz.box
search fritz.box
nameserver 192.168.178.1

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • henkie32
  • Registratie: November 2007
  • Laatst online: 15:34
Vuurvoske schreef op dinsdag 24 april 2012 @ 11:04:
[...]


/etc/rsolv.conf (op host machine):
code:
1
2
3
domain fritz.box
search fritz.box
nameserver 192.168.178.1
Firewall? met wat geeft bijv. het commando "iptables -L" terug?

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
henkie32 schreef op dinsdag 24 april 2012 @ 11:08:
[...]


Firewall? met wat geeft bijv. het commando "iptables -L" terug?
Ik werk met UFW overigens, iptables is me te chaotisch..

Anyways iptables -L geeft het volgende terug:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:domain 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootps 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:bootps 
ufw-before-logging-input  all  --  anywhere             anywhere            
ufw-before-input  all  --  anywhere             anywhere            
ufw-after-input  all  --  anywhere             anywhere            
ufw-after-logging-input  all  --  anywhere             anywhere            
ufw-reject-input  all  --  anywhere             anywhere            
ufw-track-input  all  --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             192.168.122.0/24    state RELATED,ESTABLISHED 
ACCEPT     all  --  192.168.122.0/24     anywhere            
ACCEPT     all  --  anywhere             anywhere            
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 
ufw-before-logging-forward  all  --  anywhere             anywhere            
ufw-before-forward  all  --  anywhere             anywhere            
ufw-after-forward  all  --  anywhere             anywhere            
ufw-after-logging-forward  all  --  anywhere             anywhere            
ufw-reject-forward  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ufw-before-logging-output  all  --  anywhere             anywhere            
ufw-before-output  all  --  anywhere             anywhere            
ufw-after-output  all  --  anywhere             anywhere            
ufw-after-logging-output  all  --  anywhere             anywhere            
ufw-reject-output  all  --  anywhere             anywhere            
ufw-track-output  all  --  anywhere             anywhere            

Chain ufw-after-forward (1 references)
target     prot opt source               destination         

Chain ufw-after-input (1 references)
target     prot opt source               destination         
ufw-skip-to-policy-input  udp  --  anywhere             anywhere            udp dpt:netbios-ns 
ufw-skip-to-policy-input  udp  --  anywhere             anywhere            udp dpt:netbios-dgm 
ufw-skip-to-policy-input  tcp  --  anywhere             anywhere            tcp dpt:netbios-ssn 
ufw-skip-to-policy-input  tcp  --  anywhere             anywhere            tcp dpt:microsoft-ds 
ufw-skip-to-policy-input  udp  --  anywhere             anywhere            udp dpt:bootps 
ufw-skip-to-policy-input  udp  --  anywhere             anywhere            udp dpt:bootpc 
ufw-skip-to-policy-input  all  --  anywhere             anywhere            ADDRTYPE match dst-type BROADCAST 

Chain ufw-after-logging-forward (1 references)
target     prot opt source               destination         
LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 10 LOG level warning prefix `[UFW BLOCK] ' 

Chain ufw-after-logging-input (1 references)
target     prot opt source               destination         
LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 10 LOG level warning prefix `[UFW BLOCK] ' 

Chain ufw-after-logging-output (1 references)
target     prot opt source               destination         

Chain ufw-after-output (1 references)
target     prot opt source               destination         

Chain ufw-before-forward (1 references)
target     prot opt source               destination         
ufw-user-forward  all  --  anywhere             anywhere            

Chain ufw-before-input (1 references)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ufw-logging-deny  all  --  anywhere             anywhere            state INVALID 
DROP       all  --  anywhere             anywhere            state INVALID 
ACCEPT     icmp --  anywhere             anywhere            icmp destination-unreachable 
ACCEPT     icmp --  anywhere             anywhere            icmp source-quench 
ACCEPT     icmp --  anywhere             anywhere            icmp time-exceeded 
ACCEPT     icmp --  anywhere             anywhere            icmp parameter-problem 
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request 
ACCEPT     udp  --  anywhere             anywhere            udp spt:bootps dpt:bootpc 
ufw-not-local  all  --  anywhere             anywhere            
ACCEPT     udp  --  anywhere             224.0.0.251         udp dpt:mdns 
ACCEPT     udp  --  anywhere             239.255.255.250     udp dpt:1900 
ufw-user-input  all  --  anywhere             anywhere            

Chain ufw-before-logging-forward (1 references)
target     prot opt source               destination         

Chain ufw-before-logging-input (1 references)
target     prot opt source               destination         

Chain ufw-before-logging-output (1 references)
target     prot opt source               destination         

Chain ufw-before-output (1 references)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED 
ufw-user-output  all  --  anywhere             anywhere            

Chain ufw-logging-allow (0 references)
target     prot opt source               destination         
LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 10 LOG level warning prefix `[UFW ALLOW] ' 

Chain ufw-logging-deny (2 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            state INVALID limit: avg 3/min burst 10 
LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 10 LOG level warning prefix `[UFW BLOCK] ' 

Chain ufw-not-local (1 references)
target     prot opt source               destination         
RETURN     all  --  anywhere             anywhere            ADDRTYPE match dst-type LOCAL 
RETURN     all  --  anywhere             anywhere            ADDRTYPE match dst-type MULTICAST 
RETURN     all  --  anywhere             anywhere            ADDRTYPE match dst-type BROADCAST 
ufw-logging-deny  all  --  anywhere             anywhere            limit: avg 3/min burst 10 
DROP       all  --  anywhere             anywhere            

Chain ufw-reject-forward (1 references)
target     prot opt source               destination         

Chain ufw-reject-input (1 references)
target     prot opt source               destination         

Chain ufw-reject-output (1 references)
target     prot opt source               destination         

Chain ufw-skip-to-policy-forward (0 references)
target     prot opt source               destination         
DROP       all  --  anywhere             anywhere            

Chain ufw-skip-to-policy-input (7 references)
target     prot opt source               destination         
DROP       all  --  anywhere             anywhere            

Chain ufw-skip-to-policy-output (0 references)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain ufw-track-input (1 references)
target     prot opt source               destination         

Chain ufw-track-output (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            state NEW 
ACCEPT     udp  --  anywhere             anywhere            state NEW 

Chain ufw-user-forward (1 references)
target     prot opt source               destination         

Chain ufw-user-input (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:2200 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:2200 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:sunrpc 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:sunrpc 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:nfs 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:nfs 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:13025 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:13025 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:netbios-ns 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:netbios-ns 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:netbios-dgm 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:netbios-dgm 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:netbios-ssn 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:netbios-ssn 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:microsoft-ds 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:microsoft-ds 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:ssh 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:ssh 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:16509 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:16509 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:16514 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:16514 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:5901 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:5901 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:5900 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:5900 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:5801 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:5801 
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:5800 
ACCEPT     udp  --  anywhere             anywhere            udp dpt:5800 

Chain ufw-user-limit (0 references)
target     prot opt source               destination         
LOG        all  --  anywhere             anywhere            limit: avg 3/min burst 5 LOG level warning prefix `[UFW LIMIT BLOCK] ' 
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable 

Chain ufw-user-limit-accept (0 references)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain ufw-user-logging-forward (0 references)
target     prot opt source               destination         

Chain ufw-user-logging-input (0 references)
target     prot opt source               destination         

Chain ufw-user-logging-output (0 references)
target     prot opt source               destination         

Chain ufw-user-output (1 references)
target     prot opt source               destination

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • henkie32
  • Registratie: November 2007
  • Laatst online: 15:34
Als je de mogelijkheid hebt, schakel al je firewall regels eens uit en test of je vervolgens wel met de guests een ip adres ontvangt van je fritzbox.

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
henkie32 schreef op dinsdag 24 april 2012 @ 11:20:
Als je de mogelijkheid hebt, schakel al je firewall regels eens uit en test of je vervolgens wel met de guests een ip adres ontvangt van je fritzbox.
Naar aanleiding van je tip heb ik gegoogled en kwam ik de volgende tip tegen:

http://wiki.libvirt.org/p...#Debian.2FUbuntu_Bridging

De volgende regels losten het probleem op:

Finally add the '/etc/sysctl.conf' settings
code:
1
2
3
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

And then load the settings with
code:
1
 sysctl -p /etc/sysctl.conf

To ensure that the bridge sysctl settings get loaded on boot, add this line to '/etc/rc.local' just before the 'exit 0' line. This is a work around for Ubuntu bug #50093.
code:
1
 /sbin/sysctl -p /etc/sysctl.conf


Bewijs ;-)

Afbeeldingslocatie: http://img7.imageshack.us/img7/8125/pingsuccesubuntuguest.jpg

Ik krijg ook gewoon DHCP ip adres toegekend. (ook in windows xp sp3)
Afbeeldingslocatie: http://img833.imageshack.us/img833/3291/guestosifconfigubuntudh.jpg
_
Afbeeldingslocatie: http://img826.imageshack.us/img826/3246/winxpdhcpsucces.jpg

[ Voor 15% gewijzigd door Vuurvoske op 24-04-2012 11:47 ]

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • henkie32
  • Registratie: November 2007
  • Laatst online: 15:34
Vuurvoske schreef op dinsdag 24 april 2012 @ 11:41:
[...]


Naar aanleiding van je tip heb ik gegoogled en kwam ik de volgende tip tegen:

http://wiki.libvirt.org/p...#Debian.2FUbuntu_Bridging

De volgende regels losten het probleem op:

Finally add the '/etc/sysctl.conf' settings
code:
1
2
3
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0

And then load the settings with
code:
1
 sysctl -p /etc/sysctl.conf

To ensure that the bridge sysctl settings get loaded on boot, add this line to '/etc/rc.local' just before the 'exit 0' line. This is a work around for Ubuntu bug #50093.
code:
1
 /sbin/sysctl -p /etc/sysctl.conf
Je was me voor ;) Suc6 met je setup!

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
henkie32 schreef op dinsdag 24 april 2012 @ 11:42:
[...]


Je was me voor ;) Suc6 met je setup!
En jij bedankt voor de hulp! 8)

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • Lampuhkap
  • Registratie: Januari 2008
  • Laatst online: 08-09 20:21
Vuurvoske blij :D

Acties:
  • 0 Henk 'm!

  • lintweaker
  • Registratie: Oktober 2002
  • Laatst online: 15-08 14:59
Interessant topic, toevallig ook net aan het stoeien met VM's en bridging. Gelukkig werkt dit nu out-of-the box icm met NetworkManager. Kan bij ubuntu ook gebruik gemaakt worden van macvtap? Ik heb dit nu werkend en hiervoor zijn er (blijkbaar) geen aanpassingen aan de sysctl instellingen voor nodig.

code:
1
2
3
4
5
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-filter-vlan-tagged = 0
net.bridge.bridge-nf-filter-pppoe-tagged = 0

Acties:
  • 0 Henk 'm!

  • Vuurvoske
  • Registratie: Oktober 2003
  • Laatst online: 18:42

Vuurvoske

Nunquam cede!

Topicstarter
lintweaker schreef op dinsdag 24 april 2012 @ 20:04:
Interessant topic, toevallig ook net aan het stoeien met VM's en bridging. Gelukkig werkt dit nu out-of-the box icm met NetworkManager. Kan bij ubuntu ook gebruik gemaakt worden van macvtap? Ik heb dit nu werkend en hiervoor zijn er (blijkbaar) geen aanpassingen aan de sysctl instellingen voor nodig.

code:
1
2
3
4
5
net.bridge.bridge-nf-call-arptables = 1
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-filter-vlan-tagged = 0
net.bridge.bridge-nf-filter-pppoe-tagged = 0
Met welke distro e.d. werk jij? Ik lees op heel veel tutorial pages dat NetworkManager het best uitgeschakeld kan worden?

Beroeps brabander


Acties:
  • 0 Henk 'm!

  • lintweaker
  • Registratie: Oktober 2002
  • Laatst online: 15-08 14:59
Vuurvoske schreef op woensdag 25 april 2012 @ 10:45:
[...]


Met welke distro e.d. werk jij? Ik lees op heel veel tutorial pages dat NetworkManager het best uitgeschakeld kan worden?
Ik gebruik Fedora, de laatste versies van NetworkManager kunnen gelukkig met bridging omgaan of blijven in ieder geval van de bridging instellingen af.

[ Voor 0% gewijzigd door lintweaker op 28-04-2012 15:49 . Reden: typo ]

Pagina: 1