Two Network Interfaces and DNS

Hi -
Sorry for asking what sounds like a simple question. I'm running 10.6.2 on and early 2009 Xserve.
I have two interfaces. One that I'm using for web traffic and the other for a SIP PBX that's running on the Xserve. I know how to point the the inbound traffic to the correct interface (web vs. SIP) through WAN to LAN rules (I have a separate pubic IP for each service), but how do tell a particular service to use that interface for outbound traffic?
Is this done by creating a machine name locally for that interface? When I do that, I notice that in server admin, that DNS name is linked to that IP. I have outbound rules that tie that LAN IP to external IP, but I just want to make sure the Xserve is sending out traffic on the correct interface.
Thanks!

Static routes likely won't help here - they're based on the destination IP address and you're not likely to know that for all possible incoming connections. In addition, it's entirely possible that the same client IP establishes a web and a SIP connection so now you're hosed - you're only going to use one destination-based route for that client address.
My first suggestion would be to simplify your network and run on a single public interface. What's your thinking behind using two interfaces here? Unless you have > 1gbps WAN link you're not going to saturate the link. Even if you do you could bond the two interfaces together to get a 2gbps link to your switch/router.
Then you use your firewall to manage the address translation based on port (port 80 -> WAN IP 1, 5060 -> WAN IP 2).
That said, Snow Leopard appears to support source-based routing where the default route is based on the source (i.e. server-side) IP address. This could solve your issue, but I can't confirm this since my network is architected to not use source-based routing so I haven't needed to look at that option.

Similar Messages

  • JBOss, Two Network Interfaces, Flex Problem

    Hi,
    I am using JBoss as an application server, and has a flex
    application trying to reach WebServices (Apache),
    located on the server.
    I'm using Flex's WebService class to connect to the web
    service. The machine on which JBoss is running has two
    network interfaces (two ip addresses). One reachable, the
    other is not (and It must be that way).
    I load the web services using m_webService.wsdl =
    "http:XXX/A/B/x.wsdl",
    In the logs I can see that the wsdl loads, but when I try to
    call to some remote method, flash tries to access it
    using the unreachable IP (again it can be seen with log
    file).
    Does somebody knows how to solve the problem?
    Does somebody knows where from flex knows the unreachable ip,
    (I never pass it!)?
    Thank you.

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Flash, Web Services, and Data Binding:
    TV: JBoss's Seam: Eliminate Complexity and Build
    Next-Generation Web 2.0 Applications .... Example 3 - Not Using the
    Web Service Connector or Data Binding
    Link:
    http://flex.sys-con.com/node/48956
    Vic on Flex: asp.net c# webservice consumed by flex:
    using System.Web; using System.Web.Services; namespace
    Director { public class Hello : System.Web.Services.WebService ....
    Flash 8, Flex 2, LocalConnection
    Link:
    http://viconflex.blogspot.com/2006/10/aspnet-c-webservice-consumed-by-flex.html
    Flash, Web Services, and Data Binding:
    The First and Only Independent Magazine for Adobe Flex
    Developers .... Once opened, we can load the WSDL of a Web service
    into it and Flash will parse it
    Link:
    http://flex.sys-con.com/node/48635
    Vic on Flex: asp.net C# data webservice for Flex:
    Oct 2, 2006 ... public class MemberService :
    System.Web.Services.WebService .... Flash 8, Flex 2,
    LocalConnection · October (8)
    Link:
    http://viconflex.blogspot.com/2006/10/aspnet-c-data-webservice-for-flex.html
    How to send parameters to webservice and get data back:
    I'm able to connect the webservice threw my Button in Flex.
    .... Are you able to retrieve a valid response from the web service
    using an alternative tool
    Link:
    http://www.flexdeveloper.eu/forums/index.php?topic=935.msg2810
    web service array result undefined - ActionScript.org Forums:
    Nov 28, 2007 ... web service array result undefined Flash
    Remoting. ... Hi just a idea you are returning a Number aka integer
    from your jboss function
    Link:
    http://www.actionscript.org/forums/showthread.php3?t=154047
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • BadRequest: Virtual machines with secondary network interfaces and virtual machines with no secondary network

    I'm trying to create an "ExtraLarge" VM with multiple NICs.  The New-AzureVM returns the following error:
    BadRequest: Virtual machines with secondary network interfaces and virtual machines with no secondary network
    interfaces are not supported in the same deployment, also a virtual machine having no secondary network interfaces
    cannot be updated to have secondary network interfaces and vice-versa.
    But I have no other VMs.  Or at least I did and then deleted them and all their disks.  The service has no deployments (either staging or production).
    Why is New-AzureVM complaining about a mismatch of VMs with and without secondary network interfaces when no other VMs exist?
    I have tried many things to fix this, including the deletion of ALL of my resources.  I have deleted and created the service many times, both with an affinity group and without.  I have a screen print of the -debug output if your interested.
    Thanks for the outstanding help.

    Hi Ron,
    IMPORTANT NOTE: Please do not post the CONFIDENTIAL DETAILS ever on the public forums, this is HIGH RISK action.
    Please send an email with your contact details to my email
    [email protected] so that I guide you on steps which help you come out of the current scenario. Thank you for understanding.
    I suggest you to create a new VNET and new VM with cloud services. Create Multiple NIC VM. Let us know the results.
    Ref:
    http://azure.microsoft.com/blog/2014/10/30/multiple-vm-nics-and-network-virtual-appliances-in-azure/
    http://blogs.technet.com/b/canitpro/archive/2014/11/04/step-by-step-create-a-vm-with-multiple-nics-in-azure.aspx
    If you are unable to create a VM with multiple NIC, please open a support case as it requires more confidential information which is out of scope of FORUM support offerings.
    Regards,
    Girish

  • Two network adapters and Real Application Cluster

    Hello
    I have got one problem. I have got 2 computers and each of them has got only 1 network adapter. Is it possible to make Cluster having only 1 network adapter on each node?
    Do 2 adapters are needed (they must be)? I know that I can add two different IP addresses to one network adapter. Another question is: is it possible to make two networks (private and public in Oracle 10g )on one adapter to create cluster? If it is ,please expalin how to do it or give a link,please . I will be happy then :)
    user502165

    You need two network adapter which is separate from creating two VIPs for the same adapter

  • Setting network interface and ttl for MulticastSocket

    Hello
    I've tried to set the network interface and the TTL for a MulticastSocket, but it has no effect. For testing I set the TTL to '4' and the network interface to 'lo' (localhost), but everybody in the local area network get my message with TTL=1...
    I use Fedora Core 5 (Linux), with no settings in the iptables.
    Here is the code I used:
    private String networkInterface="lo";
    private String address="239.192.0.5";
    private int port=54321;
    private int mcastTtl=4;
    public void send(){
    InputStream input=getContextClassLoader().getResourceAsStream("something.xml");
    byte[] buffer = new byte[1480];
    int length = input.read(buffer,0, 1480);
    inetAddress = InetAddress.getByName(address);
    nInterface=NetworkInterface.getByName(networkInterface);
    MulticastSocket socket = new MulticastSocket(port);
    socket.joinGroup(inetAddress);
    DatagramPacket packet = new DatagramPacket(buffer, length,
    inetAddress, port);
    socket.setTimeToLive(mcastTtl);
    socket.setNetworkInterface(nInterface);
    socket.send(packet);
    socket.leaveGroup(inetAddress);
    For simplicity I took the Error handling off here, but certainly I have it in my code. No errors, no problems, everybody get the correct message... But not with the settings I made.
    Any tips?
    Thanks:
    Bence

    I'm seeing the exact same thing. It's as if setNetworkInterface() doesn't actually do anything at all.
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode)
    OS: Linux kernel 2.6.14.3, CentOS 4.2
    Code example (parts removed for clarity) follows. This code works perfectly when I allow it to attach to the default (eth0) interface. When I try to change the interface it binds to, all packets are still multicast to eth0 ONLY! I see nothing on lo or eth1.
    Properties props = System.getDefaultProperties();
    props.setProperty("java.net.preferIPv4Stack","true");
    MulticastSocket mcs = new MulticastSocket(localPort);
    mcs.setNetworkInterface(NetworkInterface.getByName("eth1"));
    InetAddress group = InetAddress.getByName("230.1.1.1");
    String payload = "This is my payload";
    DatagramPacket dgram = new DatagramPacket(payload.getBytes(),
    payload.length(),
    group, groupPort);
    mcs.send(dgram);

  • 3510 network interfaces and # of direct attached hosts

    Hi,
    I have 3510 array with Dual FC controllers and each controller has a network interface. I am trying to congiure both NICs with separate IPs but I only see one interface through console. How to set the 2nd interface up?
    And there are 8 FC host ports but I only see 4 , I need to attach 6 to 8 hosts directly to the array and not able to see 8 channels. Need help to see all 8 channels and to maps Logical drives to all 8.
    Thanks
    ssgn

    The array is configured to use the controllers for failover.

  • Two Network : Ethernet and Wifi

    Hello
    I'm connect at two sort of network :
    1- Ethernet
    2- Wifi
    When i connect to my network, with ftp client, the soft take by default the Ethernet Netword.
    How do forced my FTP client or other soft to take the wifi Network by default ?
    Thank you

    Hi,
    Go to Network>Show>Network Port Configurations, and make sure Airport or en1 is dragged to the top of the list. At least that's the position the OS looks in first for Internet connection.

  • Network interface and usb device not working.

    hi everyone,
    I just installed Solaris 10 3/05 S10_74L2a x86
    on my home pc.
    My motherboard comes with an in-built ethernet port for networking.
    But after installing the OS, I can't access to the Internet (I logged in as root).
    Then I do an ifconfig -a command, I see only the loop interface, my ethernet port interface connected to my modem is missing.
    I also try to plug in a USB flash drive into my USB port but I cannot see what is inside my USB flash drive.
    I have done a devfsadm -v command for that added USB flash drive.
    anyone knows what go wrong?
    any help given will be greatly appreciated.
    thank you.
    good day :)
    szehanz

    But after installing the OS, I can't access to the
    Internet (I logged in as root).
    Then I do an ifconfig -a command, I see only the loop
    interface, my ethernet port interface connected to my
    modem is missing.Maybe your ethernet driver is loaded but not attached.
    Check device name with prtconf and see if your device
    is in /etc/drivers_aliases or not.
    I also try to plug in a USB flash drive into my USB
    port but I cannot see what is inside my USB flash
    drive.I had the similar problem before. First, check USB
    ports are "alive" (see ehci, uhci, ohci are correctly
    loaded and attached). If it's ok, insert you USB flash
    drive and restart vold with "pkill -HUP vold".

  • CSS redundant interface and DNS server

    We're attempting to implement a pair of CSS's using redundant ASR and GSLB where the CSS's act as DNS servers.
    But I'm not sure if the 2 features are compatible. The CSS's answer DNS queries to their direct interface but not the redundant interface.
    Does anyone have any suggestions or work-arounds? We're running version 8.20.
    TIA,
    Dan

    Dan doing some research I can see that the option to configure redundant-interface to resolve dns queries is not included on CSS 11500 series, this from the documentation.
    On the document for CSS 11000 series that I provided before shows:
    Configuration Requirements and Restrictions
    The following requirements and restrictions apply to the configuration of this feature.
    •You can configure this feature only on Cisco 11000 series CSSs (not 11500)
    If I look at the redundant-interface configuration on old CSS 11000 series I see the option for dns:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11000series/v6.10/configuration/advanced/guide/VIPRedun.html#wp1067528
    Look at this line:
    dns-server - Keyword that enables the CSS to respond to DNS queries destined for the redundant interface IP address. For more information, see the "Configuring a Redundant Virtual Interface to Respond to DNS Requests" section.
    On new CSS 11500 series this option is not available:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v8.20_v8.10/configuration/redundancy/guide/VIPRedun.html#wp1067528
    I am trying to find if there is any workaround but so far semms that is expected to miss this feature on CSS11500.

  • I cannot get MainStage 3 to find the Aggregate Device I am trying to use for input.  I have two USB interfaces and need to use both for input.

    The MainStage 3 Audio preferences window will not find the Aggregate Device input.  I have both an Apogee Jam and a MOTU Mike Ultralight in USB ports.  The Audio aggregator finds them and treats them as one device.  The Aggregate Device does not show up in either Logic or MainStage.  However, unlike Logic, MainStage does not show "System Settings" an input device.

    The iphone 3G can only support 4.2.1
    There are no newer updates availabel for this model.

  • SCVMM 2012 R2 – two iSCSI network interfaces connected to the same subnet

    I would like to configure two networks in SCVMM 2012 R2 which will be used by VMs to connect to iSCSI SAN. Both of these networks should be connected to the same subnet (192.168.100.0/24) because they will connect VMs to Dell EqualLogic using iSCSI MPIO.
    Those networks should be available on all Windows Server 2012 R2 Hyper-V cluster nodes.
    When I try to create two logical networks in SCVMM with the same subnet, I receive error (Unable to assign the subnet 192.168.100.0/24 because it overlaps with an existing subnet)
    How should I configure networking in SCVMM to allow one virtual machine to connect to the same subnet using two network interfaces?

    "How should I configure networking in SCVMM to allow one virtual machine to connect to the same subnet using two network interfaces?"
    You can achieve this by simply adding multiple vNICs to a VM - connected to the same VM Network. 
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • Two network cards configuration

    Hi
    I have problem with my network - I have two network cards and it seems they can't live both but I need them both so:
    1st card (rtl8139) is connected to cable modem and gets ip by DHCP (eth0="dhcp" in rc.conf)
    2nd card (nv forcedeth) is connected to router and gets ip by DHCP too (eth1="dhcp")
    When I start them both -> 1st and 2nd card gets good IP by DHCP but when I want to ping google.com for example packet is lost.
    What I want ? I want to use my eth0 (1st card) for internet and my 2nd card for local network.
    ##EDIT##
    My resolv.conf is 192.168.1.1 but I need DNS from 1st interface -> how to do this?
    Last edited by cpu (2007-02-22 22:46:09)

    Messy setup IMO, but anyway....
    Your faulty resolv.conf is the reason you can't ping google. Edit it manually as required, and then use the -R flag in /etc/conf.d/dhcpcd to prevent it being overwritten. DHCP on both interfaces will probably cause routing issues as well, in which case you will need the -G flag.

  • How to configure network interface only when cable inserted?

    Hi there,
    I was wondering if anyone here could help me with a minor configuration problem. I have a server with two network interfaces, I'll call one "internal" and the other one "external". It has NAT configured so that the "internal" interface gets served DHCP, can access the Internet, etc. My problem is that sometimes I want to run the server without anything connected to the internal interface, and at these times it seems that the boot process gets stuck on the "bringing up internal interface" part. (It's a bit hard to know exactly what's going on because the server is headless.)  I am using a script in /etc/network.d/, set to static IP address, for the internal interface.
    Does anyone know how I could configure Arch so that it only tries to bring up the internal interface if something is actually connected to the port? Otherwise I have to physically go to my server and plug in my laptop to keep the boot process going... let me know if I should provide more details.
    Thanks for your suggestions!

    ifplugd? Which is used by net-auto-wired from netcfg.

  • Multiple network interface....

    I have group (cloud) of systems and each system has two network interfaces. One interface is 172.17.0.0/19 and other is 192.168.x.x.
    The 192.168.x.x network interface is dedicated to NFS (usually). So I want to configure that interface do not listen to inetd services and SSH. I want only RPC and Portmap services should be listening on that interface. And other interface (172.17.0.0/19) for normal services.
    ( Note: all system running Solaris 9)
    --Ritesh Patel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hello.
    WHY do you want inetd not to listen on this interface?
    I do not think that is possible with inetd. If you wish to prevent users to connect from another interface you must use the "tcpd" tool (on the companion CD). However inetd will listen on the interface; tcpd will just block incoming connections.
    Martin

  • How to choose the good Network Interface on a server ?

    Hi all,
    On server you have generally more than one ip address so ...How to choose the good Network Interface on a server for the NoSQL Node ?
    Thank you for all
    C.Pruvost.

    Hi Charles I only consider storage nodes and their replicated nodes.
    Actually I show an error in the logs saying that one of my storage node use a loopback address. On my laptop I have a network interface and a loopback address (disabled)...when starting sn1 I show that the port 5000 is only linked to the ip address 0.0.0.0 so it is not the good ip address..although i use for configuring :
    java -jar ..\lib\kvstore-2.0.23.jar makebootconfig -root root1 -port 5000 -admin 5001 -host ipaddress_of_my_laptop -harange 5010,5020
    and after
    java -jar ..\lib\kvstore-2.0.23.jar start -root root1
    If you have a sample tutorial that explains how simulate on the same laptop an Oracle NoSQL architecture running on 3 disctinct servers please give us this information.
    Thank you for all.
    Christophe.
    PS : error message
    Failures: Task 1 ERROR at 2013-01-15 07:23:19 UTC: DeploySN sn3(pruv
    ost-pc:5200): 1/DeploySN failed.: Register: Cannot mix loopback and non-loopback
    addresses in the same store. The store value is not configured to use loopback
    addresses but storage node pruvost-pc:5200 is a loopback address. (11.2.2.0.23)
    : Register: Cannot mix loopback and non-loopback addresses in the same store. T
    he store value is not configured to use loopback addresses but storage node pruv
    ost-pc:5200 is a loopback address. (11.2.2.0.23) java.lang.IllegalStateException
    : Register: Cannot mix loopback and non-loopback addresses in the same store. T
    he store value is not configured to use loopback addresses but storage node pruv
    ost-pc:5200 is a loopback address.
    at oracle.kv.impl.sna.StorageNodeAgent.register(StorageNodeAgent.java:15
    48)
    at oracle.kv.impl.sna.StorageNodeAgentImpl$2.execute(StorageNodeAgentImp
    l.java:194)
    at oracle.kv.impl.sna.StorageNodeAgentImpl$2.execute(StorageNodeAgentImp
    l.java:188)
    at oracle.kv.impl.fault.ProcessFaultHandler.execute(ProcessFaultHandler.
    java:90)
    at oracle.kv.impl.sna.StorageNodeAgentImpl.register(StorageNodeAgentImpl
    .java:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    Edited by: chpruvos on Jan 14, 2013 11:24 PM
    And my ipconfig
    Windows IP Configuration
    Wireless LAN adapter Wireless Network Connection 2:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Ethernet adapter Local Area Connection 3:
    Connection-specific DNS Suffix . :
    IPv4 Address. . . . . . . . . . . : 172.20.10.2
    Subnet Mask . . . . . . . . . . . : 255.255.255.240
    Default Gateway . . . . . . . . . : 172.20.10.1
    Ethernet adapter Local Area Connection* 24:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Wireless LAN adapter Wireless Network Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    and
    C:\Users\cpruvost>ping pruvost-pc
    Pinging PRUVOST-PC.fr.oracle.com [172.20.10.2] with 32 bytes of data:
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Ping statistics for 172.20.10.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    Edited by: chpruvos on Jan 14, 2013 11:25 PM

Maybe you are looking for