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.

Similar Messages

  • How to configure network virtualization in SCVMM 2012 R2 with two host

    hi everyone... can you teach me how i configure networking in my infrastructure..
    i am getting confuse that i have 2 phisical server, i don't know to set the netwokring in scvmm. Every best practice, i found in internet is using more than 2 physical server.
    i have been tried before with the networking which i want..but it failed...
    any one help me please...

    This whitepaper should explain the required steps to get this working.
    http://gallery.technet.microsoft.com/Hybrid-Cloud-with-NVGRE-aa6e1e9a
    The whitepaper will use more than two hyper-v hosts, but you'll get the picture.
    You can have 1 host to run your NVGRE VMs, while the other host should be dedicated to run the virtualization gateway VMs.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )

  • How to get  Network Interface Cards information ?

    hi all,
    how to get Network Interface Cards information and tcp window size by java ?

    807262 wrote:
    how to get Network Interface Cards information Have a look at [url http://download.oracle.com/javase/6/docs/api/java/net/NetworkInterface.html#getNetworkInterfaces%28%29]NetworkInterface.getNetworkInterfaces()
    tcp window sizeWhich one?
    SO_RCVBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getReceiveBufferSize%28%29]Socket.getReceiveBufferSize()^
    SO_SNDBUF ^[url http://download.oracle.com/javase/6/docs/api/java/net/Socket.html#getSendBufferSize%28%29]Socket.getSendBufferSize()^

  • JET install: ERROR: Unable to configure network interface Exiting to shell

    Using SUNWjet v4.4.4 I'm trying to build a server using update 5 x86 which seems
    to work with one notable exception. The JET server and the build server do not
    reside on the same subnet. In order to get around not being able use PXE boot
    to boot the build server I'm booting from DVD after making the following modifications
    to the grub menu entry:
    kernel /I86PC.Solaris_10-1/multiboot kernel/unix - install nowin -B
    install_config=x.x.x.x:/opt/SUNWjet,
    sysid_config=x.x.x.x:/opt/SUNWjet/Clients/testclient,
    install_media=x.x.x.x:/export/install/media/s10u5-x86,
    install_boot=x.x.x.x:/export/install/media/s10u5-x86/boot
    This seems to kick off the installer however it fails to bring up the network interface:
    SunOS release
    Configuring devices
    Solaris Interactive Text ( Console Session )
    ERROR: Unable to configure network interface Exiting to shell
    # ifconfig bge0 x.x.x.x up netmask 255.255.255.0
    # route add default x.x.x.1
    # exit
    Using RPC
    Installation continues without any errors
    It seems that I'm forced to bring up the interface manually each time.
    This is what the template looks like:
    base_config_ClientArch=i86pc
    base_config_ClientEther=XX:XX:XX:XX:XX:XX
    base_config_ClientOS=s10u5-x86
    base_config_client_allocation="grub"
    base_config_products="custom eiscd sds"
    base_config_sysidcfg_nameservice=NONE
    base_config_sysidcfg_network_interface=PRIMARY
    base_config_sysidcfg_ip_address=x.x.x.x
    base_config_sysidcfg_netmask=255.255.255.0
    base_config_sysidcfg_root_password="XXXXXXXXXXXX"
    base_config_sysidcfg_system_locale="en_CA.UTF-8"
    base_config_sysidcfg_timeserver=
    base_config_sysidcfg_timezone="Canada/Eastern"
    base_config_sysidcfg_terminal=vt100
    base_config_sysidcfg_security_policy=NONE
    base_config_sysidcfg_protocol_ipv6=no
    base_config_sysidcfg_default_route=x.x.x.1
    I've also tried setting the following:
    base_config_sysidcfg_network_interface=PRIMARY
    vs
    base_config_sysidcfg_network_interface=bge0
    I don't mind doing this manually but of course I would much rather have it work automatically.

    Try giving more network interface settings in the sysidcfg settings:
    network_interface=value {primary hostname=host_name
                              default_route=ip_address or NONE
                              ip_address=ip_address
                              netmask=netmask
                              protocol_ipv6=yes_or_no}
    See http://docs.sun.com/app/docs/doc/817-5504/6mkv4nh2r?a=view

  • I'm having problems with my email account. I receive emails when I'm in a wifi zone.  But if the wifi is turned off and i'm not in a zone I don't receive my emails through the cellular network.  Only when I power off the phone and turn it back on, do I re

    I'm having problems with my email account. I receive emails when I'm in a wifi zone.  But if the wifi is turned off and i'm not in a zone I don't receive my emails through the cellular network.  Only when I power off the phone and turn it back on, do I receive the emails through the cellualr network (again with the wifi off)

    In your email settings on the phone check to make sure it is set to receive emails on cellular network.  It's a feature you can turn off so your phone isn't constantly updating emails on the cell network, but if you are usually in a place with wifi and aren't concerned about going over your data allowance, you can turn it back on. 

  • Smf / sometimes does not configure network interfaces in single-user mode?

    From http://groups.yahoo.com/group/solarisx86/message/14785
    When booting into single user mode, I often get a message
    on the console
    t_optmgmt: System error: Cannot assign requested addressand only the loopback interface is configured (lo0 inet, and lo0 inet6).
    The system's dnet0 interface is not plumbed any more. Configuration
    for the dnet0 network interface is via a static ip address; hostname
    in /etc/hostname.dnet0, and and ip v4 address for that hostname in
    /etc/hosts. This was a Solaris 10 x86 system, but the same problem
    has also been observed on Solaris 10 sparc, and the hme0
    interface.
    svcs -x in single-user mode reports no problems.
    Changing to multi-user mode by typing Ctrl-D still does not
    configure the real network interface.
    One thing that I've noticed is that smf's log file
    /etc/svc/volatile/network-physical:default.log
    is missing, when the nic interface was not configured.
    It seems that the problem with unconfigured network interfaces
    does not happen when I boot directly into multi-user mode.
    Why isn't the physical interface plumbed and configured when
    booting into single user mode on S10 b69?

    Hi everyone,
    I too have internet connection problem
    I have installed Solaris 10 on my Compaq Presario M2000 series
    Solaris Management Console Details:
    Hostname: HOME
    Host ID: 116c4141
    Model: i86PC
    no of CPUs: 1
    CPU: 0
    Type: Genuine Intel 6.13.8
    Clock Speed: 1,500 MHz
    Usage: 1%
    Status: Online
    Software SunOS 5.10
    Physical Mem: 222 MB
    Virtual Mem: 729 MB
    Virt MEM used: 41 % (298/729) 413 MB available
    IP address: 172.19.16.96
    Network Connection rtls0: Sending & Receiving Packets
    When running WinXP in my laptop before for same IP:
    IP address: 172.19.16.96
    Subnet mask: 255.255.240.0
    Default Gateway: 172.19.31.254
    while booting the OS said NFS+ version 4 was detected and the router IP is automatically configured or there is no specific individual router IP, says something like this
    # ifconfig -a:
    lo0: flag = 2001000849<UP,LOOPBACK, RUNNING,MULTICAST,IPv4,VIRTUAL>mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    rtls0: flags = 1000843<UP, BROADCAST,RUNNING,MULTICAST,IPv4>mtu 1500 index 2
    inet 172.19.16.96 netmask ffff0000 BROADCAST 172.19.255.255
    ether 0:c0:9f:8c:c9
    lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL>mtu 8252 index 1
    inet 6 :: 1/128
    rtls0: flags = 2000840<RUNNING,MULTICAST,IPv4>mtu 1500 index 2
    inet fe80::2c0:9fff:fe9a:8cc 9/10
    ether 0:c0:9f:9a:8c:c9
    I have modified the files and checked them:
    1. etc/hosts
    127.0.0.1 local host
    172.19.16.96 HOME loghost
    2. etc/hostname.rtls0
    HOME
    3. etc/hostname6.rtls0
    HOME
    4. etc/netmasks
    172.19.16.255 255.255.240.0
    I don't know the network IP so i just write this, can anyone tell me how to find the network IP
    5. etc/defaultrouter
    172.19.31.254
    I made this file and wrote the default gateway IP address, can anyone tell me how to find default router IP since the NFS+ version 4 auto detects or auto assigns router IP
    6. etc/resolv.conf
    domain myhost.com
    nameserver: 172.19.16.12
    nameserver: 172.19.16.13
    still domain name has't been set, i just wrote this, can anyone tell me how to find the domain name or create one. also the name server is just a fake, but how to find one. If i will be connecting my laptop to various IP whereever i go, so do i need to configure network setting again and again ? isn't there any auto network configuration so that i can connect internet where ever i go and let the system auto configure network settings like in windows XP auto IP configuration detect.
    7. etc/nsswitch.conf
    in this i can't see "hosts: files" but i could see rest of the details. so I inserted "hosts: files dns" in the third line and saved.
    I ran the following command in the terminal to find the details:
    #ypmatch host-name hosts
    ypmatch: the domainname hasn't been set on this machine
    (how to set domain name can anyone tell me?)
    #move/etc/netmasks: not found
    #uname -n
    HOME
    #cat/etc/nsswitch.conf
    cat/etc/nsswitch.conf: not found
    #domain name
    domain: not found
    #ypwhich
    ypwhich: the domainname has'nt been set to this machine
    #nismatch nameserver-name hosts.org-dir
    hosts.org-dir: Error in accessing NIS+ cold file.......is NIS+ installed?
    actually during installation i selected DNS type for network giving a wrong nameserver and domain got skipped later
    #getent ipnodes dns (no response)
    so all these things i did and found by seeing the forum guidelines. I can see the network connection has receivinh and sent packets seems to be working but can't browse internet, also can't ping a website.
    if anyone had the same problem but found the answer than kindly let me know. I am new to solaris but i am trying my best.
    awaiting reply from gurus
    bye for now.................

  • How to configure network with just 1 ethernet adapter?

    I was looking for a guide which would talk about how to configure your network in case if you have only 1 Ethernet adapter. Is it mandatory to have more than 1 network card to configure multiple ports? If not, what are the options available to deploy a Virtual Machine that can have applications which are available over the network. I don't have a separate network i.e. public network as well as management network is of same IP range.
    I am having 2 node cluster using NFS for pools as well as repository.
    ~Yagnesh

    yagneshg wrote:
    I was looking for a guide which would talk about how to configure your network in case if you have only 1 Ethernet adapter. Just enable the "Virtual Machine" role on the Management network that is automatically connected. You will then be able to add guest vNICs to the same network.
    I am having 2 node cluster using NFS for pools as well as repository. I strongly recommend you get at least one more physical NIC for your server, if not two: running NFS and the cluster heartbeat and the guest traffic all over the same network is going to put a lot of data down the wire and you may land up in a situation where the cluster traffic is overwhelmed and a node reboots. You need to be very careful in this situation. Network cards are cheap and you should have at least two or three, I reckon.

  • How to add network interface using ioctl ?

    I want to do what ifconfig does, but by using ioctls.
    To get or set network interface address, I found some information in the if_tcp(7P) man page. I would like to know more about how to go about it. Do I have to open socket or the pseudo ethernet driver e.g hme ? What are the parameters ? Do I require to only fill the structure ifreq to set the network interface ?
    Thanks in advance.
    -dev

    Are you trying to add a network volume or folder? I believe you can only add folders. Have you tried: Volumes/Archive, losing the first slash.  I was successful in adding a group folder to the dock by using: Volumes/Groups/Example

  • How to configure network printer on solaris 10 intel based

    how to configure the network printer in solaris 10
    like hp laserjet printer/printers,

    Very very easy.
    Go to the print manager . (printmgr I believe or in the launch menu under preferences)
    select add a network printer
    Fill out the info. I find that the hpijs printer driver works better then the suggested foomatic on my hp 4000s. I could not print pdfs otherwise.
    Other things to know is the protocol should be BSD (at least it works for me). And add the port to the destination so 192.168.0.1:9600 for example (for hp).
    thats about it. To have it show up correctly in JDS you should probably add it to the printer list under the launch->preferences->printer preferences.

  • How to enable a button only when a tilelist item is selected

    Simple question but it seems quite awkward to me. How do I enable a button only when an item within a tilelist is currently selected?
    For example lets say if I have a button called button1 that is disabled by default and a tilelist called tilelist1 what would I have to add into the brackets of the following code (enabled property of the button) to ensure that the button is only enabled when an item in the tilelist is currently selected but disabled when no items are selected:-
    enabled="{}"

    enabled="{tilelist1.selectedItem}"
    that should do it, it's making an implicit comparision with null (tilelist1.selectedItem == null) which will result in a boolean.
    SelectedItem is null when nothing is selected , not null when something is.

  • How to automate and action only when a specifi event takes place ?

    E.g. I want to have a workflow that launches specific applications only when Network manager detects a conection to the internet. Is that possible

    Never mind

  • How to determine network interface that will be used to send a packet

    Hello,
    I'm writing to you because I encountered the following problem. My program displayes all network interfaces that are available in the system, but I would like to add a functionality in which a user can enter a destination address IP (ex. the IP address of the Google search engine) and will get information which network interface will be used to send it. As I know it is associated with reading information from routing table in the system. Maybe you know the API (functions/methods) which I could use to do it in Solaris ? I program in C/C++, but if you know how to do it in other programming languages (Java, Perl, Python) I will be grateful for any information.
    Thank you for any help, tips and suggestions.
    Best regards,
    Foxrafi

    Thank you for your response it was very helpful :).
    I went to the OpenSolaris webpage because I would like to find the code of this command, but unfortunately I don't know where I should start my searches.
    There is a page with source code of basic commands, but there is no "route" command: here .
    Maybe you are better enlightened where I should start.
    Thank you for answer.
    Foxrafi

  • How to refresh JSFF page only when page loaded using ADF 11g

    Hi
    I am facing an issue with prepreModel() usage in the .jsff page fragment. I want to invoke executables only when the specific jsff page get's loaded. I tried using 'prepareModel' as a refresh condition, but I can see always executables are getting executed. Does 'prepareModel' behaves differently for .jsff when compared to .jspx ?
    Thanks in Advance

    Hi,
    ADF Regions have a slightly modified lifecycle. However, prepareModel behaves the same. Its marking a specific time in the ADF request lifecycle when the iterators are refreshed. Try prepareModelIfNeeded
    Frank

  • Launchd: How to Run a Job Only When Waking?

    I want to run a script when the computer wakes from sleep. I've read everything I can find about launchd and cannot find a solution.
    I tried RunAtLoad, but it did not run the script when the computer woke from sleep.
    Is there a parameter for launchd that will run a job only when the computer wakes from sleep?
    I know other parameters like StartInterval will run any "queued" jobs when the computer wakes up, but I'm looking for a parameter that runs the job only when the computer wakes up.
    Any help is appreciated.
    Thanks
    Brett

    Sorry, but there is no capacity for that built into launchd.  You might be able to hack something together (I've tried before, with some limited success), but it will be easier and more stable to use sleepwatcher. 

  • How to configure network on Oracle Solaris 10

    Hi All,
    I have created a new virtual machine on Windows Server 2003 and installed Oracle Solaris 10 on VMWare. Now I need to configure network on my Solaris virtual machine, So that i can access Solaris machine outside the VMWare. Can somebody help me out?
    Regards,
    S.Rizi

    Hi,
    I have created a new virtual machine on Windows Server 2003 and installed Oracle Solaris 10 on VMWare. Now I need to configure network on my Solaris virtual machine, So that i can access Solaris machine outside the VMWare. Can somebody help me out?Refer below thread.
    Hope helps :)
    http://www.linuxquestions.org/questions/solaris-opensolaris-20/configure-solaris-network-on-vmware-847849/
    thanks,
    X A H E E R

Maybe you are looking for

  • Best Way To Deal With Photos?

    I need to create a disc of photos that I have taken over the past two years. I have about 800 - 1000 pictures. I began making a PowerPoint with them, but after I put in about 160 slides, each containing one picture, it freezes. This happened on my co

  • Error Opening Created PDF

    My Grandson is filling out a PDF template provided by the BoyScouts of America (BSA) and has run into a problem when trying to open a document that he's been working on for weeks. He's using Adobe Acrobat X Pro  10.1.3 The message that he's receiving

  • Hi!! I need help: I'd like to know how to obtain a communicaion between a PLC of ABB model 07 KT 97 and Labview 8.

    Hi!! I need help: I'd like to know how to obtain a communicaion between a PLC of ABB model 07 KT 97 and Labview 8.I have to realize a scada system to control an electrical implant.I think that I need to learn more about OPC server: do you have some m

  • Open more than 65k TCP/IP connections

    Hello, is it any possibility to open more than 65535 TCP/IP connections from one IP address as client? Because each connection occupied one port, I can't make more than 65k. Can be established more outgoing connections (as client) from one port to mo

  • CAMILEO P30 - how to use it as a webcam ?

    I am to able to turn on the webcam function despite it is advertised How to use/configure ? rgds