LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-28-2006, 10:30 AM   #1
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Rep: Reputation: 15
Network doesn't come up at boot


When my server reboots, it does not bring up the network correctly.
Ubuntu 6.06 (I am running from Universe, and running dhcpd, apache2, mysql, named and postfix).

Symptoms:
  • After booting, none of the network interfaces are up and running.
  • I enter the desktop, go to the networking panel and the network is not active. When I activate it, only eth0 comes up. The lo is not functional.

So I run:
ifconfig lo 127.0.0.1
route add 127.0.0.1
route add localhost
Then I need to restart all my servers, so I run (I suppose there is a better way to do this?:
  • init 3
  • init 2

At this point, most things seem to be working. Except there is a weird problem for the DNS for my local domain. The DNS server is working and finds all of my other local DNS entries, but it will not resolve the local domain- even though the config files for that domain are just the same as the ones that work!

Any ideas? I can post config info, but I am not sre what to post.


/etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.254

auto eth1
iface eth1 inet dhcp

auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
 
Old 08-28-2006, 11:00 AM   #2
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
check also /etc/sysconfig/network
and /etc/sysconfig/networking/devices/ifcfg-eth0 for the option
ONBOOT=YES

regards
 
Old 08-28-2006, 11:50 AM   #3
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
I don't have either of those folders on this system (Ubuntu 6.06).

in /etc/network:
drwxr-xr-x 6 root root 4096 2006-08-18 14:34 .
drwxr-xr-x 124 root root 8192 2006-08-27 22:56 ..
drwxr-xr-x 2 root root 4096 2006-08-11 17:37 if-down.d
drwxr-xr-x 2 root root 4096 2006-08-11 17:37 if-post-down.d
drwxr-xr-x 2 root root 4096 2006-08-11 17:37 if-pre-up.d
drwxr-xr-x 2 root root 4096 2006-06-13 10:15 if-up.d
-rw-r--r-- 1 root root 261 2006-08-27 22:55 interfaces
Doing a little more digging, the results of 'ifup -an'
(This is what would run if I issued '/etc/init.d/networking start'):
run-parts /etc/network/if-pre-up.d

dhclient3 -pf /var/run/dhclient.eth1.pid -lf /var/lib/dhcp3/dhclient.eth1.leases eth1
run-parts /etc/network/if-up.d
run-parts /etc/network/if-pre-up.d

dhclient3 -pf /var/run/dhclient.eth2.pid -lf /var/lib/dhcp3/dhclient.eth2.leases eth2
run-parts /etc/network/if-up.d
run-parts /etc/network/if-pre-up.d

dhclient3 -pf /var/run/dhclient.ath0.pid -lf /var/lib/dhcp3/dhclient.ath0.leases ath0
run-parts /etc/network/if-up.d
run-parts /etc/network/if-pre-up.d

dhclient3 -pf /var/run/dhclient.wlan0.pid -lf /var/lib/dhcp3/dhclient.wlan0.leases wlan0
run-parts /etc/network/if-up.d
And there is an entry in /etc/rc@.d for the loopback:
S08loopback -> ../init.d/loopback
Which contains the lines:
case "$1" in
start)
[ -d /var/run/network ] || mkdir /var/run/network

log_begin_msg "Starting basic networking..."
if ifup --allow auto lo; then
log_end_msg 0
else
log_end_msg $?
fi
;;
 
Old 08-29-2006, 12:59 AM   #4
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
I don't know Ubuntu for sure but do you know the command locate?
If so use it to find a ifcfg-eth0 file or a *eth0, * eth1
If not you 1st have to do an updatedb then you can use locate.
Otherwise please have a look in the file "interfaces" or in the
dir's if-up.d and if-post-down.d if their are any files.
- But I think you've to go back to the file we have been looking already at...
/etc/network have a look at that Line

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map wlan0 <------------- It seems like the device wlan0 will be loaded ONBOOT
So try to add or enter a similar line like "map eth0"

hope that works!
 
Old 08-29-2006, 11:01 AM   #5
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
EDIT: I had previously listed the contents of /etc/network/interfaces, so I did not include it again.

As far as I can tell, the commands I am running manually after boot are being invoked at startup. I will try to list them here:

/etc/rcS.d/S08loopback ->../init.d/loopback
#!/bin/sh -e
#
# loopback - brings up the loopback (127.0.0.1) network device so that
# DHCP and other such things will work
#

# Check the package is still installed
[ -x /sbin/ifup ] || exit 0

# Get LSB functions
. /lib/lsb/init-functions
. /etc/default/rcS

case "$1" in
start)
[ -d /var/run/network ] || mkdir /var/run/network

log_begin_msg "Starting basic networking..."
if ifup -v --allow auto lo; then
log_end_msg 0

else
log_end_msg $?
fi
;;
stop)
log_begin_msg "Stopping basic networking..."
if ifdown lo; then
log_end_msg 0
else
log_end_msg $?
fi
;;
restart|force-reload)
exit 0
;;
*)
echo "Usage: /etc/init.d/loopback {start|stop|restart|force-reload}"
exit 1
;;
esac

exit 0
/etc/rcS.d/S40networking -> ../init.d/networking
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: networking
# Required-Start: mountvirtfs ifupdown $local_fs
# Default-Start: S
# Default-Stop: 0 6
### END INIT INFO

PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"

[ -x /sbin/ifup ] || exit 0

. /lib/lsb/init-functions


case "$1" in
start)
log_action_begin_msg "Configuring network interfaces"
type usplash_write >/dev/null 2>/dev/null && usplash_write "TIMEOUT 120" || true
if [ "$VERBOSE" != no ]; then
if ifup -a; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
else
if ifup -a >/dev/null 2>&1; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
fi
type usplash_write >/dev/null 2>/dev/null && usplash_write "TIMEOUT 15" || true
;;

stop)
if sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\2/p' /proc/mounts |
grep -qE '^(nfs[1234]?|smbfs|ncp|ncpfs|coda|cifs)$'; then
log_warning_msg "not deconfiguring network interfaces: network shares still mounted."
exit 0
fi

log_action_begin_msg "Deconfiguring network interfaces"
if [ "$VERBOSE" != no ]; then
if ifdown -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
else
if ifdown -a --exclude=lo >/dev/null 2>/dev/null; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
fi
;;

force-reload|restart)
log_action_begin_msg "Reconfiguring network interfaces"
ifdown -a --exclude=lo || true
if ifup -a --exclude=lo; then
log_action_end_msg $?
else
log_action_end_msg $?
fi
;;

*)
echo "Usage: /etc/init.d/networking {start|stop|restart|force-reload}"
exit 1
;;
esac

exit 0
Results of "ifup -v lo":
Right after boot:
root@ziggy:/etc/rcS.d# ifup -v lo
ifup: interface lo already configured
After I bring it down with 'ifdown lo' first:
root# ifup -v lo
Configuring interface lo=lo (inet)
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
ifconfig lo 127.0.0.1 up
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/postfix
(Note, the if-pre-up.d scripts do not operate on lo interfaces, I checked).

When I boot, running ifconfig only returns this:
root# ifconfig
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26448 errors:0 dropped:0 overruns:0 frame:0
TX packets:28757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4561028 (4.3 MiB) TX bytes:15015965 (14.3 MiB)
Interrupt:201 Base address:0xc000
However, if I run the command on lo specifically (again, this is after booting):
root#ifconfig lo
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
But if I then run 'ifdown lo' and then 'ifup lo', then I get this:
root#ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Notice that this is missing on boot:
net addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
After I bring it up, things are working (Well, I have to restart a bunch of services that could not bind to lo).

Is there any way to produce debugging logs for these commands? There does not seem to be anything in dmesg.

Last edited by jdavidow; 08-29-2006 at 11:12 AM.
 
Old 08-29-2006, 11:36 AM   #6
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
Okay this is a fine output
but if I understand that correct you want that all your network devices including the loopback
should start when you boot an do all those start of services stuff right?

So have you checked the file "network"

/etc/network have a look at that Line

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map wlan0 <------------- It seems like the device wlan0 will be loaded ONBOOT
So try to add or enter a similar line like "map eth0"
 
Old 08-29-2006, 11:51 AM   #7
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Sorry, odcheck. I wasn't ignoring your comments. I can't find the file(s) you are speaking of.

/etc/network is a directory on Ubuntu/Debian. It contains:
drwxr-xr-x 2 root root 4096 2006-08-11 17:37 if-down.d
drwxr-xr-x 2 root root 4096 2006-08-11 17:37 if-post-down.d
drwxr-xr-x 2 root root 4096 2006-08-11 17:37 if-pre-up.d
drwxr-xr-x 2 root root 4096 2006-06-13 10:15 if-up.d
-rw-r--r-- 1 root root 308 2006-08-29 09:34 interfaces
The sub-folders contain pre- and post- scripts, I assume for binding specific daemons when the interfaces go up and down. All of them just exit when used with 'lo'. There's nothing in them continaing "ONBOOT":

root# grep -R ONBOOT /etc
grep: /etc/alternatives/irssi: No such file or directory
grep: /etc/alternatives/irssi.1.gz: No such file or directory
Now, I did notice someone else adding the two commented out lines to /etc/network/interfaces:
auto lo
iface lo inet loopback
#address 127.0.0.1
#netmask 255.0.0.0
Those are the lines that are missing from the ifconfig output at boot. Is it possible that I need these? Or is it more likely that some other subsystem is messing with the lo when I boot up? (I can't try rebooting just now- I work remote from the server during the day.)
 
Old 08-29-2006, 12:00 PM   #8
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
odcheck, here is someone else's /etc/interfaces file I found (looks like an older ubuntu install though:

Quote:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth0

iface eth0 inet dhcp



subsystem.
mapping hotplug
script grep
map wlan0

iface wlan0 inet dhcp
wireless-essid linksys

auto wlan0
First, the lo specification has those two extra lines (which have never been in my version, even when it was working- and were not in my debian sarge version before I changed over). Then it also has that hotplug section.

I see a few options to try:
  1. Just add the two lines.
  2. Add the line 'map lo' after the lo secion.
  3. Add a 'hotplug' section and add 'script grep' and 'map lo' to it.

Or is this just an older version of the interfaces file?
What do you think?
Do you know what the 'script grep' line does?
 
Old 08-29-2006, 12:06 PM   #9
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
no this is the correct file and I suppose and is this is needed.
Do you know if hotplug service is running?
 
Old 08-29-2006, 12:10 PM   #10
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Not that I can tell... do you recognize it from this list?

Contents of /etc/rc.S:
Quote:
-rw-r--r-- 1 root root 734 2006-05-23 03:39 README
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S01mountvirtfs -> ../init.d/mountvirtfs
lrwxrwxrwx 1 root root 19 2006-06-13 00:09 S01readahead -> ../init.d/readahead
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S02hostname.sh -> ../init.d/hostname.sh
lrwxrwxrwx 1 root root 19 2006-06-13 00:09 S05keymap.sh -> ../init.d/keymap.sh
lrwxrwxrwx 1 root root 41 2006-06-13 00:09 S07linux-restricted-modules-common -> ../init.d/linux-restricted-modules-common
lrwxrwxrwx 1 root root 18 2006-06-13 00:09 S08loopback -> ../init.d/loopback
lrwxrwxrwx 1 root root 14 2006-06-13 00:09 S10udev -> ../init.d/udev
lrwxrwxrwx 1 root root 23 2006-06-13 00:09 S11mountdevsubfs -> ../init.d/mountdevsubfs
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S13pcmciautils -> ../init.d/pcmciautils
lrwxrwxrwx 1 root root 27 2006-06-13 00:09 S15module-init-tools -> ../init.d/module-init-tools
lrwxrwxrwx 1 root root 19 2006-06-13 00:09 S17procps.sh -> ../init.d/procps.sh
lrwxrwxrwx 1 root root 22 2006-06-13 00:09 S20checkroot.sh -> ../init.d/checkroot.sh
lrwxrwxrwx 1 root root 14 2006-06-13 00:09 S22mtab -> ../init.d/mtab
lrwxrwxrwx 1 root root 16 2006-06-13 00:09 S25brltty -> ../init.d/brltty
lrwxrwxrwx 1 root root 20 2006-06-13 00:09 S25mdadm-raid -> ../init.d/mdadm-raid
lrwxrwxrwx 1 root root 13 2006-06-13 00:09 S26lvm -> ../init.d/lvm
lrwxrwxrwx 1 root root 14 2006-06-13 00:09 S27evms -> ../init.d/evms
lrwxrwxrwx 1 root root 20 2006-06-13 00:09 S30checkfs.sh -> ../init.d/checkfs.sh
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S35mountall.sh -> ../init.d/mountall.sh
lrwxrwxrwx 1 root root 27 2006-06-13 00:09 S39readahead-desktop -> ../init.d/readahead-desktop
lrwxrwxrwx 1 root root 20 2006-06-13 00:09 S40networking -> ../init.d/networking
lrwxrwxrwx 1 root root 16 2006-06-13 00:09 S40pcmcia -> ../init.d/pcmcia
lrwxrwxrwx 1 root root 20 2006-06-13 00:09 S45waitnfs.sh -> ../init.d/waitnfs.sh
lrwxrwxrwx 1 root root 20 2006-06-13 00:09 S50hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx 1 root root 19 2006-06-13 00:09 S55dns-clean -> ../init.d/dns-clean
lrwxrwxrwx 1 root root 18 2006-06-13 00:09 S55pppd-dns -> ../init.d/pppd-dns
lrwxrwxrwx 1 root root 16 2006-06-13 00:09 S70screen -> ../init.d/screen
lrwxrwxrwx 1 root root 20 2006-06-13 00:09 S70x11-common -> ../init.d/x11-common
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S80bootmisc.sh -> ../init.d/bootmisc.sh
lrwxrwxrwx 1 root root 17 2006-06-13 00:09 S85urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root 27 2006-06-13 00:09 S90console-screen.sh -> ../init.d/console-screen.sh
Contents of rc2.d:
Quote:
lrwxrwxrwx 1 root root 17 2006-06-13 00:09 S05vbesave -> ../init.d/vbesave
lrwxrwxrwx 1 root root 15 2006-06-13 00:09 S10acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root 25 2006-06-13 00:09 S10powernowd.early -> ../init.d/powernowd.early
lrwxrwxrwx 1 root root 18 2006-06-13 00:09 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root 15 2006-06-13 00:09 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root 13 2006-06-13 00:09 S13gdm -> ../init.d/gdm
lrwxrwxrwx 1 root root 13 2006-06-13 00:09 S14ppp -> ../init.d/ppp
lrwxrwxrwx 1 root root 15 2006-06-13 00:31 S15bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root 15 2006-06-13 00:09 S18hplip -> ../init.d/hplip
lrwxrwxrwx 1 root root 16 2006-06-13 00:09 S19cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root 23 2006-06-13 01:10 S19mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx 1 root root 14 2006-06-13 00:09 S20apmd -> ../init.d/apmd
lrwxrwxrwx 1 root root 28 2006-06-13 01:01 S20courier-authdaemon -> ../init.d/courier-authdaemon
lrwxrwxrwx 1 root root 22 2006-06-13 01:01 S20courier-imap -> ../init.d/courier-imap
lrwxrwxrwx 1 root root 26 2006-06-13 01:01 S20courier-imap-ssl -> ../init.d/courier-imap-ssl
lrwxrwxrwx 1 root root 21 2006-06-13 01:01 S20courier-pop -> ../init.d/courier-pop
lrwxrwxrwx 1 root root 25 2006-06-13 01:01 S20courier-pop-ssl -> ../init.d/courier-pop-ssl
lrwxrwxrwx 1 root root 14 2006-06-13 00:09 S20dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root 18 2006-06-13 00:09 S20festival -> ../init.d/festival
lrwxrwxrwx 1 root root 22 2006-06-13 00:09 S20hotkey-setup -> ../init.d/hotkey-setup
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S20laptop-mode -> ../init.d/laptop-mode
lrwxrwxrwx 1 root root 17 2006-06-13 00:09 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root 15 2006-06-13 01:10 S20mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 23 2006-06-13 00:09 S20nvidia-kernel -> ../init.d/nvidia-kernel
lrwxrwxrwx 1 root root 17 2006-06-13 00:58 S20postfix -> ../init.d/postfix
lrwxrwxrwx 1 root root 19 2006-06-13 00:09 S20powernowd -> ../init.d/powernowd
lrwxrwxrwx 1 root root 15 2006-06-13 00:09 S20rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root 15 2006-06-15 22:08 S20samba -> ../init.d/samba
lrwxrwxrwx 1 root root 19 2006-07-13 12:36 S20saslauthd -> ../init.d/saslauthd
lrwxrwxrwx 1 root root 13 2006-06-13 00:33 S20ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root 15 2006-06-13 14:13 S21dspam -> ../init.d/dspam
lrwxrwxrwx 1 root root 19 2006-06-13 01:10 S21mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx 1 root root 21 2006-06-13 00:09 S25bluez-utils -> ../init.d/bluez-utils
lrwxrwxrwx 1 root root 15 2006-06-13 00:09 S25mdadm -> ../init.d/mdadm
lrwxrwxrwx 1 root root 22 2006-06-13 00:37 S40dhcp3-server -> ../init.d/dhcp3-server
lrwxrwxrwx 1 root root 17 2006-06-13 00:09 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root 13 2006-06-13 00:09 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root 14 2006-06-13 00:09 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root 17 2006-06-13 00:43 S91apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root 20 2006-07-04 17:49 S91apache-ssl -> ../init.d/apache-ssl
lrwxrwxrwx 1 root root 19 2006-07-03 21:23 S98imapproxy -> ../init.d/imapproxy
lrwxrwxrwx 1 root root 17 2006-06-13 00:09 S98usplash -> ../init.d/usplash
lrwxrwxrwx 1 root root 22 2006-06-13 00:09 S99acpi-support -> ../init.d/acpi-support
lrwxrwxrwx 1 root root 18 2006-08-25 16:50 S99nxsensor -> ../init.d/nxsensor
lrwxrwxrwx 1 root root 18 2006-08-25 16:50 S99nxserver -> ../init.d/nxserver
lrwxrwxrwx 1 root root 18 2006-06-13 00:09 S99rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root 19 2006-06-13 00:09 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root 24 2006-06-13 00:09 S99stop-readahead -> ../init.d/stop-readahead
 
Old 08-29-2006, 05:42 PM   #11
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Semi-Fixed.

I added the lines to my interfaces file to hopefully force the ip address:
Quote:
# cat /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
And when I boot, this seems to work.

Now, I found this article about a possible bug on Ubuntu Hoary (5.10):
https://launchpad.net/distros/ubuntu...ols/+bug/13947

And it states that the dhcp client may execute:
Quote:
ifconfig lo 0 up
Which would have the effect of removing the ip address from the loopback.

Problem is, that I don't have any dynamic addresses on my system, so I am trying to figure out what might be causing that to happen.

I am also not sure what the concensus is concerning adding those lines, and what other effect that might have on the system.

Last edited by jdavidow; 08-31-2006 at 11:00 AM.
 
Old 08-31-2006, 01:16 AM   #12
gv_rajasekhar
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
may be this could help.i use rh .service samba on will set service to start on boot.try out
 
Old 08-31-2006, 10:43 AM   #13
jdavidow
Member
 
Registered: Sep 2004
Posts: 42

Original Poster
Rep: Reputation: 15
gv, Are you saying that samba might be the culprit? I checked it just now, without a reboot, and it doesn't mess anything up. I will check it tonight, disabling my fix, disabling samba and seeing if the problem persists.

Question: Why would smb reconfigure any of the interfaces?

Jed
 
Old 08-31-2006, 11:29 AM   #14
gv_rajasekhar
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
thats was an example .for network "service network on".or you can set using gui i.e system settings.
 
Old 08-31-2006, 01:39 PM   #15
andy-k
Member
 
Registered: Aug 2006
Location: England
Distribution: Kubuntu 6.06
Posts: 45

Rep: Reputation: 15
I'm running Kubuntu 6.06 (at least right now..) and i find that networking only starts on boot 20% of the time. Restarting the networking in System Services restores the internet connection, but i've not yet discovered why this happens.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux boot failed after configuring network interfaces in the boot procss domeili2006 Linux - General 1 07-14-2006 05:23 AM
network boot cd K420 Linux - Networking 1 05-01-2006 06:40 AM
how do i boot from network? chillangella Linux - Networking 6 02-16-2005 07:31 PM
Network not accessible after boot; OK after network restart chriswei Linux - Networking 5 09-22-2004 10:16 PM
Network Boot ezra143 Linux - Networking 4 07-16-2004 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration