Telling Red Hat 9 it's not on a network.

skywalker45skywalker45 Bloomington, IN. USA
edited June 2008 in Science & Tech
Drasnor and anyone else --

I am trying to get Red Hat 9 to not look for a network connection if it's not plugged into a network. I know this sounds silly but let me explain. We are running a custom program on a Red Hat 9 machine. We have things set up so that the machine knows if it's on a customers network or our in house network and then makes changes to our network files (and also to resolv.conf, etc) so that things will work. I would, ideally, like the machine (if it's not connected to a network) to not even try to connect. A good start would be not even starting eth0 if there is no network available. Can this be done? I don't want to disable the BIOS stuff for obvious reasons. What are your thoughts, opinions?

Comments

  • kryystkryyst Ontario, Canada
    edited June 2008
    There's probably a more official way. But one way that comes to mind would be to make a script that pings www.google.com at boot, if it can't reach it, then it dissables etho0.
  • drasnordrasnor Starship Operator Hawthorne, CA Icrontian
    edited June 2008
    Try running chkconfig --del on your network interface init script.

    -drasnor :fold:
Sign In or Register to comment.