LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2010, 04:42 PM   #1
ndarkduck
LQ Newbie
 
Registered: Nov 2008
Location: Mex,Mex
Distribution: Fedora || Red Hat Linux
Posts: 28

Rep: Reputation: 7
VirtualBox Bridged Adapter + 8021q = [b]ridiculous performance[/b]


I'm configuring a CentOS 5.5 2.6.18-194.17.1.el5.centos.plus server in order to have multiple VirtualMachines in it. The throughput of the machine is at least 300KBps (yes KB), I configured two web servers one on the virtual machine and the other in the physical machine, the difference was:
300bps-3 KBps on the virtual machine
230KBps on the physical machine.

The configuration is as follows:
Code:
Physical machine: 
modprobe 8021q 
vconfig eth0 4
ifconfig 10.4.0.1

iptables-save (this is the summarized output):
*filter
-A FORWARD -d 10.0.0.0/255.0.0.0 -j ACCEPT 
-A FORWARD -s 10.0.0.0/255.0.0.0 -j ACCEPT 
-A FORWARD -j REJECT --reject-with icmp-port-unreachable 

*nat
-A PREROUTING -d <public_ip> -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.4.0.3:80 
-A PREROUTING -d <public_ip> -p tcp -m tcp --dport 443 -j DNAT --to-destination 10.4.0.3:443 
-A POSTROUTING -s 10.0.0.0/255.0.0.0 -o eth0 -j MASQUERADE 

cat /proc/net/vlan/config 
VLAN Dev name	 | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.2         | 2  | eth0
eth0.4         | 4  | eth0
eth0.5         | 5  | eth0

cat /proc/net/vlan/eth0.4 
eth0.4  VID: 4	 REORDER_HDR: 1  dev->priv_flags: 81
         total frames received            0
          total bytes received            0
      Broadcast/Multicast Rcvd            0

      total frames transmitted        68669
       total bytes transmitted      4957056
            total headroom inc            0
           total encap on xmit            0
Device: eth0
INGRESS priority mappings: 0:0  1:0  2:0  3:0  4:0  5:0  6:0 7:0
EGRESSS priority Mappings: 

Virtual machine:
ifconfig eth0 10.4.0.3
route add default gw 10.4.0.1
If I attach the public ip address to the virtual machine this gets smoothly. Someone Help please!?
 
Old 10-20-2010, 12:56 PM   #2
ndarkduck
LQ Newbie
 
Registered: Nov 2008
Location: Mex,Mex
Distribution: Fedora || Red Hat Linux
Posts: 28

Original Poster
Rep: Reputation: 7
bump?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridged networks in VirtualBox only works one way. enine Linux - Virtualization and Cloud 10 08-05-2010 06:21 AM
(ubuntu 9.10) XP in virtualbox, sluggish performance Michio Linux - Software 1 01-07-2010 09:34 PM
VirtualBox Bridged Network help bourne Linux - Software 4 07-21-2009 04:06 PM
VirtualBox-2.2 - bridged networking on Slackware-12.2 botnet Linux - Software 10 05-02-2009 01:56 AM
8021q and vconfig ultrix Linux - Networking 0 08-13-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration