I had the same problem running DHCP with Fedora Core 4. After searching the Internet high and low with no results, I started messing around on my system.
I found that by removing some (apparently) DHCP files and doing ifdown/ifup, the default gateway was added to the routing table. The listed files are the files that were present for me in the given directories.
I deleted all files in:
/etc/sysconfig/networking/devices/
ifcfg-wlanHome
ifcfg-wlanSchool
keys-wlanHome
keys-wlanSchool
keys-wlan
/etc/sysconfig/networking/profiles/default/
resolv.conf
network
hosts
ifcfg-wlanHome
ifcfg-wlanSchool
keys-wlanHome
keys-wlanSchool
/var/lib/dhcp
dhclient.leases
dhclient-wlan0.leases
I deleted keys-* in:
/etc/sysconfig/networking-scripts/
keys-wlanHome
keys-wlanSchool
After deleting those files, I ran:
ifdown wlanSchool
ifup wlanSchool
Here is ifcfg-wlanSchool, located in /etc/sysconfig/networking-scripts/:
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=no
TYPE=Wireless
ESSID="MustangWireless"
MODE=Managed
PEERDNS=yes
I'm not sure why this worked -- I probably deleted more files than I actually needed to. It started working, so I haven't tried it more than once
. Perhaps someone with more knowledge than myself might shed some light?
Hope you solve it!
~Kyle