l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Apr 25 15:33

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
re: [vox-tech] disabling dhcp at startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: [vox-tech] disabling dhcp at startup

Thanks for the help.

I ended up commenting out these lines in /etc/init.d/networking:

#	echo -n "Configuring network interfaces... "
#       ifup -a
#       echo "done."

Now I just can type ifup to bring up the interface as needed.  I think
this is basically what what Jeff suggested, except I edited a different
config file. ;-)

Weird tho...  I took a peek at my version of ifup and it looks like a
binary file.  And it seems that Red Hat's ifup is a shell script....

Now all I need is to get my wireless card working and I'll be set!


> Date: Fri, 25 Apr 2003 09:13:28 -0700
> From: Jonathan Stickel <jjstickel@netscape.net>
> To: vox-tech@lists.lugod.org
> Subject: Re: [vox-tech] disabling dhcp at startup
> Reply-To: vox-tech@lists.lugod.org
> Charles
> I am running RH8 and I had the opposite problem.  When ifup would test 
> for a cable connection, it wouldn't find one and quit, even if my laptop 
> was in fact connected.  Interestingly enough, I do not experience this 
> proplem with other machines.
> Although I know next to nothing about shell scripts, I took a look at 
> ifup and found these lines:
> #    if check_link_down ${DEVICE}; then
> #   echo $" failed; no link present.  Check cable?"
> #   ip link set ${DEVICE} down >/dev/null 2>&1
> #   exit 1
> #    fi
> When I comment out this part (as pasted above), it is able find an IP 
> address by DHCP, and my network connections works just fine.  If I am 
> not connected, however, my system does hang for about 1 minute at the 
> ifup step, but eventually times out and fails the network connection 
> appropriately.
> I wonder if you could insert this in your ifup, or if you could just use 
> the RH ifup directly?
> Jonathan
> Jeff Newmiller wrote:
> > On Fri, 25 Apr 2003, Charles McLaughlin wrote:
> > 
> > 
> >>Hi,
> >>
> >>I'm new to debian, so bare with me. ;-)
> > 
> > 
> > bear, perhaps :)
> > 
> > 
> >>My laptop currently gets an IP address via dhcp while the system starts
> >>up.  This can be annoying if I am not connected to an ethernet cable,
> >>because it stops the entire boot process until I press ctrl+c.
> >>
> >>How can I disable the system from getting an IP address at startup?  I'd
> >>rather just run dhclient manually once the system is up and running.
> > 
> > 
> > Edit /etc/network/interfaces to comment out the "auto eth0".
> > 
> > To manually bring it up and take it down, use "ifup eth0" and "ifdown
> > eth0".
> > 
> > 
> >>Better yet, it would be nice to have the system get an IP address at
> >>startup but detect if the cable is not connected.  I stole that idea from
> >>red hat 8.
> > 
> > 
> > I don't know how to do that.  Does seem like a good suggestion for the
> > ifupdown maintainer.
> > 
> > ---------------------------------------------------------------------------
> > Jeff Newmiller                        The     .....       .....  Go Live...
> > DCN:<jdnewmil@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
> >                                       Live:   OO#.. Dead: OO#..  Playing
> > Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> > /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
> > ---------------------------------------------------------------------------
> > 
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech@lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.