[ale] Net interface reconfiguring Q: turning DHCP on and off
James Kinney
jkinney at localnetsolutions.com
Mon Apr 16 12:31:42 EDT 2001
You can use /usr/sbin/netconfig to setup a dhcp or static connection.
In linuxconf, you select either manual, dhcp or bootp under
networking->client tasks->host name and IP network devices->adapter n
Keep in mind to backup your working setup since it will get changed doing
this.
Oh, yeah, I goofed. The files that get changed are
/etc/sysconfig/network-scripts/ifcfg-eth{n}
Some that work:
static:
DEVICE="eth0"
IPADDR="192.168.0.2"
NETMASK="255.255.255.0"
ONBOOT="yes"
BOOTPROTO="none"
dhcp:
DEVICE="eth2"
IPADDR=""
NETMASK=""
ONBOOT="yes"
BOOTPROTO="dhcp"
On Mon, 16 Apr 2001, John Mills wrote:
> James -
>
> Thanks for the reply. I may use some close variant of that.
>
> ---- James Kinney <jkinney at localnetsolutions.com> wrote:
> > 1 setup to use DHCP and copy /etc/sysconfig/network to
> > /etc/sysconfig/network.dhcp
> ...
>
> _But_ my intended question was lower-level than your answer: Given a system already set up for
> static net definitions, how do I set it up instead for DHCP? I haven't found any DHCP settings on
> either 'linuxconf' or 'control-panel' to go that direction. If there isn't a setup utility for this, what files
> and settings do I need to touch.
>
> I.e., how should '/etc/sysconfig/network' look to start with DHCP?
>
> I suspect my problem is actually a setup problem in the static configuration, but one symptom is the
> DSL router/firewall not responding to my inquiries, so I wanted to do a "cold start" with DHCP
> served by my router to see whether it needed to relearn the net configuration or something like that.
>
> Thanks.
> - Mills
>
--
James P. Kinney III \Changing the mobile computing world/
President and COO \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list