I've been wrestling with the same problem. It would work on static addresses, but if I tried the dhcp entry in /etc/network/interfaces eth0 would come up, but without an ipaddress. I finally looked at /var/log/syslog and it said to make sure that CONFIG_PACKET and CONFIG_FILTER are defined in the kernel.

A quick kernel rebuild solved the problem.

Now I've got to try and figure out how to change from network to
network. the man page on interfaces seems to have about 80% of the
information you need to actually get it to work.


On Mon, Mar 17, 2003 at 12:14:26PM +0000, James Tappin wrote:
> Hi.
> I'm trying to change a laptop that is currently using static IP to use
> DHCP instead. Which package do I need to reconfigure to do this.
> (netbase and netenv don't seem to have the options to do that).
>
> TIA
> James
>
> --
> +------------------------+-------------------------------+---------+
> | James Tappin | School of Physics & Astronomy | O__ |
> | [EMAIL PROTECTED] | University of Birmingham | -- \/` |
> | Ph: 0121-414-6462. Fax: 0121-414-3722 | |
> +--------------------------------------------------------+---------+
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
I've found something worse than oldies station that play the music I used to
listen to. Oldies stations that play the "new" music I used to complain about.
[EMAIL PROTECTED] http://www.red4est.com/lrc



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



This is what I do (since I always bring up my network interface by hand):


I have two files in my /root directory.

*********************************************
file1:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

eth0

iface eth0 inet static
        address 192.168.0.254
        netmask 255.255.255.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
*********************************************
file2:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

eth0
iface eth0 inet dhcp

When I am on the static network, I su to root and call
ifup eth0 -i file1

When I am on the dynamic network, I su to root and call
ifup eth0 -i file2

If I need additional configurations, I can just add more files. Not the most elegant solution, but it suits my needs (and I could never get netenv to work just right).

-Roberto Sanchez


_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Reply via email to