Here are the configuration that fix the errors messages "Unable to connect to EA online" on my Battlefield Bad Company 2 in my Xbox 360
My switch is a D-LINK DI-524, and I use the Wireless Network to connect my Xbox .
If yours switch is another type or has a diferent manufacturer, you can configure these parameters too, if your switch permits that.
Step 1 - First configure a Static IP for your Xbox:
In Home, DHCP,
Create a Static IP using the MAC Adress of your Xbox and IP that you want.
If you already connected your Xbox once, it will appear on the list, and you just have to set this MAc a static IP.
In this example I will use the IP 192.168.0.8 for my Xbox, just an example.
Step 2 - In Advanced, on Virtual server, configure two Virtual Servers with the following properties:
Name: XBOX LIVE
IP: 192.168.0.8(put in this field your Private Xbox IP)
Protocol: UDP
Private Port: 88
Public Port: 88
Schedule: Always
Name: XBOX LIVE 2
IP: 192.168.0.8(put in this field your Private Xbox IP)
Protocol: Both(UDP & TCP)
Private Port: 3074
Public Port: 3074
Schedule: Always
Step 3 - In Advanced, Application, configure two Specials Applications:
Name: Battle.net
Trigger Port: 6112
Trigger Type: TCP
Public Ports: 6112
Public Type: TCP
Name: MSN Gaming Zone
Trigger Port: 47624
Trigger Type: TCP
Public Ports: 2300-2400,28800-29000
Public Type: TCP
Step 4 - Disable "UPnP Setting":
In Tools, Misc:
Locate the "UPnP Setting" and select "Disabled".
Step 5 - Enable the "XBOX Support" feature:
In Tools, Misc,
Locate the "XBOX Support" and select "Enabled"
After this you are already to enjoy a better connection with Xbox Live, and fix the errors messages "Unable to connect to EA online".
I hope that I can help you.