-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Oct 17, 2011 at 07:17:47PM +0800, zhouxu(NUDT) wrote: > > Thank you very much for replying. I have tried your method and the > permission problem is solved. However, I have got another problem: when I > bridge my guest(192.168.5.60) through tap1, it can ping my > host(192.168.5.67), but cannot ping my gateway(192.168.5.1) or any other > physical machine out of of host. Therefore, currently I bridge one of my > guest through eth0, and another guest through br0, and they can both ping > any hosts in our network. The problem is this could only support two users. > So, are there any clues for my problem about the tap1? > > My command list for creating the bridge br0 is: > sudo tunctl -t tap1 -u myname > sudo brctl addbr br0 > sudo ifconfig eth0 0.0.0.0 promisc > sudo brctl addif br0 eth0 > sudo ifconfig br0 192.168.5.67 > sudo brctl addif br0 tap1 > sudo ifconfig tap1 up > > Thanks again.
You've only described what you're doing for one of your guests, and you said you have two of them. So, since I don't see what the problem is off the top of my head, let me write up what this should look like for both guests based on what you provided above, just so we're sure that we're on the same page. sudo tunctl -t tap0 -u myname sudo tunctl -t tap1 -u myname sudo brctl addbr br0 sudo brctl addif br0 eth0 sudo ifconfig br0 192.168.5.67 sudo brctl addif br0 tap0 sudo brctl addif br0 tap1 Assign one guest to tap0, and the other guest to tap1. A couple of notes on the above. First, I see you're configuring eth0 as 0.0.0.0, and putting it into promiscuous mode, why? Like I said in my previous post, you shouldn't assign an address to eth0, and adding it to the bridge will automatically put it into promiscuous mode. Second, you're bringing up the tap1 device. The only things you should be doing with the tap device on the host are to create it, add it to the bridge, and assign it to your guest, that's it. Try what I gave above, and see if that works for you with both guests. Greg - -- web site: http://www.romuald.net.eu.org gpg public key: http://www.romuald.net.eu.org/pubkey.asc skype: gregn1 (authorization required, add me to your contacts list first) - -- Free domains: http://www.eu.org/ or mail [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk6cg48ACgkQ7s9z/XlyUyDUmwCfdmzidWWyLTRcs9+vw7d8J/YL 8DQAoIzcTLlVN4ryCHRnl45F3r8J8lO/ =sjyU -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community
