1 |
Issac |
2 |
I found that adding the few lines I was missing from your net to |
3 |
mine and then enabling the br0 device first and I was able to ping the |
4 |
outside world. One problem though, this line |
5 |
|
6 |
depend_br0() { need net.eth0 } |
7 |
|
8 |
refused to work ... it hung my net scripts ... the RC_need_br0=( |
9 |
"eth0" ) seems to work though. |
10 |
|
11 |
I will bootup my gentoo livecd shortly and see if I can ping the |
12 |
outside world from with in my VM .... |
13 |
|
14 |
|
15 |
|
16 |
Isaac Conway wrote: |
17 |
> Chris Brennan wrote: |
18 |
>> I am trying to set up a Bridge for Qemu to use. I followed the guide |
19 |
>> at |
20 |
>> |
21 |
http://gentoo-wiki.com/HOWTO:_Qemu#Using_TUN.2FTAP_interface_as_a_normal_user |
22 |
>> |
23 |
>> but when ever the bridge starts, I loose connectivity outside of my |
24 |
>> box :/ ... am I missing something .... |
25 |
>> |
26 |
>> |
27 |
>> I've includes the output of my /etc/conf.d/net file .... |
28 |
>> |
29 |
>> |
30 |
>> # This blank configuration will automatically use DHCP for any net.* |
31 |
>> # scripts in /etc/init.d. To create a more complete configuration, |
32 |
>> # please review /etc/conf.d/net.example and save your configuration |
33 |
>> # in /etc/conf.d/net (this file :]!). |
34 |
>> dns_domain=( "unworldly.org" ) |
35 |
>> nis_domain=( "unworldly.org" ) |
36 |
>> dns_domain_eth0=( "unworldly.org" ) |
37 |
>> dns_search_eth0=( "unworldly.org xaerolimit.net" ) |
38 |
>> dns_servers_eth0=( "192.168.1.1 4.2.2.1 4.2.2.2" ) |
39 |
>> |
40 |
>> ## |
41 |
>> # LAN |
42 |
>> ## |
43 |
>> config_eth0=( "192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255" ) |
44 |
>> routes_eth0=( "default via 192.168.1.1" ) |
45 |
>> |
46 |
>> ## |
47 |
>> # Bridge |
48 |
>> ## |
49 |
>> bridge_br0="eth0" |
50 |
>> config_br0=( "192.168.1.20 netmask 255.255.255.0 brd 192.168.1.255" ) |
51 |
>> #dhcpcd_br0="-t 10" |
52 |
>> RC_NEED_br0="net.eth0" |
53 |
>> brctl_br0=( "setfd 0" "sethello 0" "stp off" ) |
54 |
>> config_tap0=( "10.0.2.1 netmask 255.255.255.0" ) |
55 |
>> |
56 |
>> |
57 |
> I think what you are after is the following: |
58 |
> |
59 |
> bridge_br0="eth0" |
60 |
> config_br0=( "192.168.1.20 netmask 255.255.255.0" ) |
61 |
> routes_br0=( "default via 192.168.1.1" ) |
62 |
> config_eth0=( "null" ) |
63 |
> depend_br0() { |
64 |
> need net.eth0 |
65 |
> } |
66 |
> |
67 |
> You do not need an IP on the eth0 interface. This should get your |
68 |
> box online with the bridge setup. (not tested, but fairly certain) |
69 |
> Not totally sure what your intentions are for the tun interface. I |
70 |
> would assume you would want to add it to the bridge group, so that |
71 |
> it is on the same bridge as the outside world. Or perhaps you want |
72 |
> to route to the 192 IP to get to the 10. stuff.... Also, make sure |
73 |
> you setup /etc/init.d/net.br0 and /etc/init.d/net.tap0 and set them |
74 |
> to start with the box. Hope this helps. |
75 |
> |
76 |
|
77 |
-- |
78 |
gentoo-amd64@l.g.o mailing list |