Two NIC Cards

Status
Not open for further replies.

djsuperstore

Joined
Feb 20, 2008
Messages
25
Reaction score
0
Hello,

I want to run 3cx on our existing Windows 2003 server. We have the main NIC connected to our 1st broadband for the data. I have added a second NIC card that is connected to a seperate broadband for our VOIP. Question is can I tell 3cx to use a specific network adapter for the VOIP trafic?
 
In Windows Server 2003 you can only specify a gateway for one network card. This means all your internet traffic will go over that network card by default.

You could enter a static route to your voip provider in your situation.

just enter in a command window

ROUTE ADD [IP VOIP PROVIDER] [255.255.255.255] [IP SECOND NETWORK CARD] -P

Now all internet traffic will go over the first network card except for the ip you entered in the static route.
If there are more ip's you could specify more ip's
 
Thanks for the information, tried this and all the traffic goes out on the second DSL
 
djsuperstore said:
Thanks for the information, tried this and all the traffic goes out on the second DSL
so all is ok now?
 
Not quite. I need to get the system running using the 1st NIC until I get my number ported over then I want to enable the route. I'm having trouble getting internal extensions talking to each other, see post

http://www.3cx.com/forums/unable-to-make-internal-calls-4342.html
 
djsuperstore said:
Not quite. I need to get the system running using the 1st NIC until I get my number ported over then I want to enable the route. I'm having trouble getting internal extensions talking to each other, see post

http://www.3cx.com/forums/unable-to-make-internal-calls-4342.html

please post route print
 
17:11:20.218 Call::Terminate [CM503008]: Call(2): Call is terminated
17:11:20.078 Call::RouteFailed [CM503014]: Call(2): Attempt to reach [sip:[email protected];user=phone] failed. Reason: Forbidden
17:11:20.078 CallLeg::onFailure [CM503003]: Call(2): Call to sip:[email protected] has failed; Cause: 403 Use Proxy; from IP:192.168.1.100:2057
17:11:20.000 MediaServerReporting::SetRemoteParty [MS210006] C:2.2:Offer provided. Connection(by pass mode): 192.168.1.102:55732(55733)
17:11:19.984 CallCtrl::onSelectRouteReq [CM503004]: Call(2): Calling: Ext:10@[Dev:sip:[email protected]:2057;line=at9dh5rf]
17:11:19.984 CallCtrl::onSelectRouteReq [CM503010]: Making route(s) to [sip:[email protected];user=phone]
17:11:19.984 MediaServerReporting::SetRemoteParty [MS210000] C:2.1:Offer received. RTP connection: 192.168.1.102:55732(55733)
17:11:19.968 CallLeg::setRemoteSdp Remote SDP is set for legC:2.1
17:11:19.968 Extension::printEndpointInfo [CM505001]: Ext.11: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [snom300/7.1.30] Transport: [sip:192.168.1.15:5060]
17:11:19.921 CallCtrl::onIncomingCall [CM503001]: Call(2): Incoming call from Ext.11 to [sip:[email protected];user=phone]
17:11:19.921 CallLeg::onNewCall [CM500002]: Info on incoming INVITE:
INVITE sip:[email protected];user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.102:2057;branch=z9hG4bK-rsnowtf9orpq;rport=2057
Max-Forwards: 70
Contact: [sip:[email protected]:2057;line=6lmrzat5];flow-id=1
To: [sip:[email protected];user=phone]
From: "Shopdesk"[sip:[email protected]];tag=j0faguswh4
Call-ID: 3c26746f22b5-jki3whidlt9o
CSeq: 2 INVITE
Session-Expires: 3600;refresher=uas
Min-SE: 90
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO
Proxy-Authorization: Digest username="11",realm="3CXPhoneSystem",nonce="12848260279:ba3439bc2c71319bd58e17bda18b15cb",uri="sip:[email protected];user=phone",response="3af498e8201d34b6570c730d285c58e9",algorithm=MD5
Supported: timer, 100rel, replaces, callerid
User-Agent: snom300/7.1.30
Allow-Events: talk, hold, refer, call-info
Content-Length: 0
P-Key-Flags: keys="3"
 
No, what he wanted was a route print.

i.e. go to the server, open a CMD prompt, type "route print" and press enter, mark and copy the output and paste it in here.
 
Code:
IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 0f ea 4f 76 f6 ...... NVIDIA nForce Networking Controller
0x3 ...00 50 56 c0 00 08 ...... VMware Virtual Ethernet Adapter for VMnet8
0x4 ...00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
0x5 ...7a 79 05 61 1c ca ...... Hamachi Network Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.15     20
          5.0.0.0        255.0.0.0      5.97.28.202      5.97.28.202     20
      5.97.28.202  255.255.255.255        127.0.0.1        127.0.0.1     20
    5.255.255.255  255.255.255.255      5.97.28.202      5.97.28.202     20
        127.0.0.0        255.0.0.0        127.0.0.1        127.0.0.1      1
      192.168.1.0    255.255.255.0     192.168.1.15     192.168.1.15     20
     192.168.1.15  255.255.255.255        127.0.0.1        127.0.0.1     20
     192.168.1.16  255.255.255.255        127.0.0.1        127.0.0.1     20
     192.168.1.20  255.255.255.255        127.0.0.1        127.0.0.1     20
     192.168.1.21  255.255.255.255        127.0.0.1        127.0.0.1     20
     192.168.1.22  255.255.255.255        127.0.0.1        127.0.0.1     20
    192.168.1.255  255.255.255.255     192.168.1.15     192.168.1.15     20
     192.168.13.0    255.255.255.0     192.168.13.1     192.168.13.1     20
     192.168.13.1  255.255.255.255        127.0.0.1        127.0.0.1     20
   192.168.13.255  255.255.255.255     192.168.13.1     192.168.13.1     20
    192.168.184.0    255.255.255.0    192.168.184.1    192.168.184.1     20
    192.168.184.1  255.255.255.255        127.0.0.1        127.0.0.1     20
  192.168.184.255  255.255.255.255    192.168.184.1    192.168.184.1     20
        224.0.0.0        240.0.0.0      5.97.28.202      5.97.28.202     20
        224.0.0.0        240.0.0.0     192.168.1.15     192.168.1.15     20
        224.0.0.0        240.0.0.0     192.168.13.1     192.168.13.1     20
        224.0.0.0        240.0.0.0    192.168.184.1    192.168.184.1     20
  255.255.255.255  255.255.255.255      5.97.28.202      5.97.28.202      1
  255.255.255.255  255.255.255.255     192.168.1.15     192.168.1.15      1
  255.255.255.255  255.255.255.255     192.168.13.1     192.168.13.1      1
  255.255.255.255  255.255.255.255    192.168.184.1    192.168.184.1      1
Default Gateway:       192.168.1.1
===========================================================================
Persistent Routes:
  None
 
Strange routing table..

Can you provide me:

IP-address of Router 1
IP-address of Router 2
IP-address of network-card 1
IP-address of network-card 2
IP-address of VOIP provider 1
IP-address of VOIP provider 2

Maybe I can help you fix it.

Thanks
 
Only 1 router connected at the moment.

1st IP Address : 192.168.1.1
1st Subnet Mask : 255.255.255.0

DHCP Start IP Address : 192.168.1.100
IP Pool Counts : 100
Gateway IP Address : 192.168.1.1
DNS Server IP Address : 192.168.1.15

The Server is set up as a DNS server.
 
djsuperstore said:
Only 1 router connected at the moment.

1st IP Address : 192.168.1.1
1st Subnet Mask : 255.255.255.0

DHCP Start IP Address : 192.168.1.100
IP Pool Counts : 100
Gateway IP Address : 192.168.1.1
DNS Server IP Address : 192.168.1.15

The Server is set up as a DNS server.

I'm sorry I was still looking at the 2NIC problem. Still your routing table looks strange to me. Does your server has 4 interfaces. From your routing table I can see 4 interfaces:

192.168.1.15 -> ip of server
5.97.28.202 -> hamachi I guess
192.168.13.1 -> where does this ip come from
192.168.184.1 -> this one I also don't understand

The reason your internal calls go wrong is Forbidden. This is quite strange for internal calls but maybe it had something to do with the multiple ip's. What you could do is enter the LocalSubnets in your ini file. See other posts or manual how to do this.

Something else you could try is connect by hostname. Enter the hostname of the server in the 3CX console under General and connect your phones to that hostname instead of the IP.
 
Yes, thats a VMware network. I did install the software on a XP box and have had everything working fine today. Although it would ne nice to have it running on our server.

Windows IP Configuration


Ethernet adapter Local Area Connection (Main LAN):

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.22
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.1.21
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.1.20
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.1.16
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IP Address. . . . . . . . . . . . : 192.168.1.15
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

Ethernet adapter VMware Network Adapter VMnet8:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.13.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet1:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.184.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter Hamachi:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 5.97.28.202
Subnet Mask . . . . . . . . . . . : 255.0.0.0
Default Gateway . . . . . . . . . :

C:\Documents and Settings\Administrator>
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,894
Messages
589,603
Members
164,763
Latest member
Techmansam