[Novalug] new install of Fedora 8
Peter Larsen
plarsen at famlarsen.homelinux.com
Fri Feb 29 00:39:04 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>> /etc/sysconfig/networking/devices/ifcfg-eth0 reports that the NIC is
>>> configured for:
>>> ip 192.168.1.30
>>> subnet mask 255.255.255.0
>>> network 192.168.1.0
>>> gateway 192.168.1.1
>>>
>>> This is as I initially set it during install, this looks good.
>>>
>>> /sbin/ifconfig shows this:
>>>
>>> ip 169.254.59.150
>>> bcast 169.254.255.255
>>> mask 255.255.0.0
Clearly, your file isn't picked up or another issue is at play.
But could you please copy-paste the true/full version of the
/etc/sysconfig/network-scripts/ifcfg-eth0 ??
Notice - it's not in the location you specified. The network scripts
uses the above location; NOT the one specified in
/etc/sysconfig/networking/devices. I'm actually not aware that any
startup scripts read there.
ALSO - the content above is invalid syntax for the file. It's a basic
SHELL script, and is simply executed during startup to set variables
that is used by the startup scripts. So, on my system it looks like:
[root at plarsen-d830 sbin]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5755M Gigabit Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:19:B9:81:D8:30
ONBOOT=yes
TYPE=Ethernet
On another box (Centos - but uses the same basic structure as Fedora):
# Intel Corporation 82801G (ICH7 Family) LAN Controller
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.11.255
HWADDR=00:13:20:8C:76:A3
IPADDR=192.168.11.7
IPV6ADDR=
IPV6PREFIX=
NETMASK=255.255.255.0
NETWORK=192.168.11.0
ONBOOT=yes
This provides me with a static address. Notice the BOOTPROTO and the =
signs. Also, notice the DEVICE line. If the device line is missing,
things will not work. The network scripts uses this variable to find
it's device.
> bootproto=none (already set)
> onboot=yes (already set)
These looks a lot better. But use static - not none.
>
> If I follow you right, these settings are correct? (And, this is how they are
> set, I didn't modify them)
First off, any messages in /var/log/messages or dmesg?
Try starting network manually - first do (as root):
# service network restart
Check for errors
If that doesn't seem to start what you want, try:
# ifup eth0
The IP you ARE getting indicates that 1) your NIC is supported by a
driver, 2) that it's trying to DHCP without any luck. You need to
provide the right configuration to go to a static IP scheme.
Alternative setup - use "system-config-network". Makes things pretty
easy to setup. No file and syntax issues.
Regards
Peter Larsen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFHx5p4HbLDna3OFD0RAvNUAKCdwnZbP3CyRtTqLXgMpv3kUMrT2gCgwUlZ
dMVHWH/IXqc+LIKWBfFBQBE=
=6Z/6
-----END PGP SIGNATURE-----
More information about the Novalug
mailing list