The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Слетает сеть в MOPSLinux 4.1"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы Открытые системы на рабочей станции (Public)
Изначальное сообщение [Проследить за развитием треда]

"Слетает сеть в MOPSLinux 4.1"  
Сообщение от Sh4d0w email on 12-Окт-06, 11:43 
Такая вот проблема.
Имеется 2 машины, одна из которых работает как роутер (Win2000sp4+Qbik WinGate 4.11)
Вторая - рабочая машина с MOPSLinux 4.1

Стала при перезагрузке слетать сеть на линукс-машине. IP у eth0 сбрасывается на 127.0.0.1, маска на 255.255.255.0
даже если выставить нормальный адрес, нормально работает только traceroute.
ping и любые другие запросы идут только до шлюза, а дальше вингейт на шлюзе пишет что запросы исходят почему-то от ипа 0.0.0.0 (???), хотя сами запросы отображает (DNS например). Привязки к МАС-адресу на шлюзе нет.
Такое уже возникало, переустанавливал линукс начисто. Сейчас как-то не хочется, после двухсуточного гемарроя с wine, cedega, шрифтами и т.д. (я только учусь :-))
Поможите хоть куда копать, разберусь сам, гугл ниче внятного не дал, или я его не правильно прошу :)

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]


1. "Слетает сеть в MOPSLinux 4.1"  
Сообщение от vozd on 12-Окт-06, 12:28 
>Такая вот проблема.
>Имеется 2 машины, одна из которых работает как роутер (Win2000sp4+Qbik WinGate 4.11)
>
>Вторая - рабочая машина с MOPSLinux 4.1
>
>Стала при перезагрузке слетать сеть на линукс-машине. IP у eth0 сбрасывается на
>127.0.0.1, маска на 255.255.255.0
>даже если выставить нормальный адрес, нормально работает только traceroute.
>ping и любые другие запросы идут только до шлюза, а дальше вингейт
>на шлюзе пишет что запросы исходят почему-то от ипа 0.0.0.0 (???),
>хотя сами запросы отображает (DNS например). Привязки к МАС-адресу на шлюзе
>нет.
>Такое уже возникало, переустанавливал линукс начисто. Сейчас как-то не хочется, после двухсуточного
>гемарроя с wine, cedega, шрифтами и т.д. (я только учусь :-))
>
>Поможите хоть куда копать, разберусь сам, гугл ниче внятного не дал, или
>я его не правильно прошу :)

Дай что говорят следующие команды

ifconfig -a
ifconfig
route -n
cat /etc/rc.d/rc.inet*

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "Слетает сеть в MOPSLinux 4.1"  
Сообщение от Sh4d0w email(ok) on 12-Окт-06, 13:48 
>>>> Дай что говорят следующие команды

ип шлюза 1.1.1.1, ип компа с линухом 1.1.1.2
дополнительно стоит Hamachi

--------------------------------------------------------------------------------------------------------------------------------------------

>>> ifconfig -a

root@shadow:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:04:61:00:00:00
          inet addr:1.1.1.2  Bcast:1.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::204:61ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36585 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26509 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36689457 (34.9 MiB)  TX bytes:2079621 (1.9 MiB)
          Interrupt:17 Base address:0xa000

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:116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9722 (9.4 KiB)  TX bytes:9722 (9.4 KiB)

plip0     Link encap:Ethernet  HWaddr FC:FC:FC:FC:FC:FC
          POINTOPOINT NOARP  MTU:1500  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:10
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:255 Base address:0x378

sit0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-78-03-00-00-00-00-00-00-00-00
          NOARP  MTU:1480  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)


--------------------------------------------------------------------------------------------------------------------------------------------

>>> ifconfig


root@shadow:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:61:00:00:00
          inet addr:1.1.1.2  Bcast:1.1.1.255  Mask:255.255.255.0
          inet6 addr: fe80::204:61ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46148 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36064 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:37920912 (36.1 MiB)  TX bytes:2966095 (2.8 MiB)
          Interrupt:17 Base address:0xa000

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:116 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9722 (9.4 KiB)  TX bytes:9722 (9.4 KiB)


>> route -n


Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
1.1.1.0         0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         1.1.1.1         0.0.0.0         UG    0      0        0 eth0


--------------------------------------------------------------------------------------------------------------------------------------------

>>cat /etc/rc.d/rc.inet*


root@shadow:~# ls /etc/rc.d/rc.inet* -a
/etc/rc.d/rc.inet1*  /etc/rc.d/rc.inet1.conf  /etc/rc.d/rc.inet2*  /etc/rc.d/rc.inetd*


--------------------------------------------------------------------------------------------------------------------------------------------
конфиг

root@shadow:~# cat /etc/rc.d/rc.inet1.conf
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# Config information for eth0:
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="1.1.1.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

IPADDR[lo]="127.0.0.1"
NETMASK[lo]="255.0.0.0"
IPADDR[0]="1.1.1.2"
NETMASK[0]="255.255.255.0"


--------------------------------------------------------------------------------------------------------------------------------------------
дальше скрипты пошли
--------------------------------------------------------------------------------------------------------------------------------------------

root@shadow:~# cat /etc/rc.d/rc.inet1
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script is used to bring up the various network interfaces.
#
# @(#)/etc/rc.d/rc.inet1 10.2  Sun Jul 24 12:45:56 PDT 2005  (pjv)

############################
# READ NETWORK CONFIG FILE #
############################

# Get the configuration information from /etc/rc.d/rc.inet1.conf:
. /etc/rc.d/rc.inet1.conf

###########
# LOGGING #
###########

# If possible, log events in /var/log/messages:
if [ -f /var/run/syslogd.pid -a -x /usr/bin/logger ]; then
  LOGGER=/usr/bin/logger
else # output to stdout/stderr:
  LOGGER=/bin/cat
fi

############################
# DETERMINE INTERFACE LIST #
############################

# Compose a list of interfaces from /etc/rc.d/rc.inet1.conf (with a maximum
# of 6 interfaces, but you can easily enlarge the interface limit
# - send me a picture of such a box :-).
# If a value for IFNAME[n] is not set, we assume it is an eth'n' interface.
# This way, the new script is compatible with older rc.inet1.conf files.
# The IFNAME array will be used to determine which interfaces to bring up/down.
MAXNICS=6
i=0
while [ $i -lt $MAXNICS ];
do
  IFNAME[$i]=${IFNAME[$i]:=eth${i}}
  i=$(($i+1))
done
if [ "$DEBUG_ETH_UP" = "yes" ]; then
  echo "/etc/rc.d/rc.inet1:  List of interfaces: '${IFNAME[@]}'" | $LOGGER
fi

######################
# LOOPBACK FUNCTIONS #
######################

# Function to bring up the loopback interface.  If loopback is
# already up, do nothing.
lo_up() {
  if grep lo: /proc/net/dev 1> /dev/null ; then
    if ! /sbin/ifconfig | grep "^lo" 1> /dev/null ; then
      echo "/etc/rc.d/rc.inet1:  /sbin/ifconfig lo 127.0.0.1" | $LOGGER
      /sbin/ifconfig lo 127.0.0.1
      echo "/etc/rc.d/rc.inet1:  /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo" | $LOGGER
      /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
    fi
  fi
}

# Function to take down the loopback interface:
lo_down() {
  if grep lo: /proc/net/dev 1> /dev/null ; then
    echo "/etc/rc.d/rc.inet1:  /sbin/ifconfig lo down" | $LOGGER
    /sbin/ifconfig lo down
  fi
}

#######################
# INTERFACE FUNCTIONS #
#######################

# Function to bring up a network interface.  If the interface is
# already up or does not yet exist (perhaps because the kernel driver
# is not loaded yet), do nothing.
if_up() {
  # Determine position 'i' of this interface in the IFNAME array:
  i=0
  while [ $i -lt $MAXNICS ]; do
    [ "${IFNAME[$i]}" = "${1}" ] && break
    i=$(($i+1))
  done
  # If the interface isn't in the kernel yet (but there's an alias for it in
  # modules.conf), then it should be loaded first:
  if ! grep `echo ${1}: | cut -f 1 -d :`: /proc/net/dev 1> /dev/null ; then # no interface yet
    if /sbin/modprobe -c | grep -w "alias ${1}" | grep -vw "alias ${1} off" > /dev/null ; then
      echo "/etc/rc.d/rc.inet1:  /sbin/modprobe ${1}" | $LOGGER
      /sbin/modprobe ${1}
    fi
  fi
  if grep `echo ${1}: | cut -f 1 -d :`: /proc/net/dev 1> /dev/null ; then # interface exists
    if ! /sbin/ifconfig | grep -w "${1}" 1>/dev/null ||       ! /sbin/ifconfig ${1} | grep "inet addr" 1> /dev/null ; then # interface not up or not configured
      if [ ! "${HWADDR[$i]}" = "" ]; then # Set hardware address _before_ the interface goes up:
        echo "/etc/rc.d/rc.inet1:  /sbin/ifconfig ${1} hw ether ${HWADDR[$i]}" | $LOGGER
        /sbin/ifconfig ${1} hw ether ${HWADDR[$i]}
      fi
      if [ ! "${MTU[$i]}" = "" ]; then # Set MTU to something else than 1500
        echo "/etc/rc.d/rc.inet1:  /sbin/ifconfig ${1} mtu ${MTU[$i]}" | $LOGGER
        /sbin/ifconfig ${1} mtu ${MTU[$i]}
      fi
      if [ -x /etc/rc.d/rc.wireless ]; then
        . /etc/rc.d/rc.wireless ${1} start # Initialize any wireless parameters
      fi
      if [ "${USE_DHCP[$i]}" = "yes" ]; then # use DHCP to bring interface up
        [ ${DHCP_HOSTNAME[$i]} ] && DHCP_OPTIONS="-h ${DHCP_HOSTNAME[$i]}"
        [ "${DHCP_KEEPRESOLV[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -R"
        [ "${DHCP_KEEPNTP[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -N"
        [ "${DHCP_KEEPGW[$i]}" = "yes" ] && DHCP_OPTIONS="$DHCP_OPTIONS -G"
        [ ${DHCP_IPADDR[$i]} ] && DHCP_OPTIONS="$DHCP_OPTIONS -s ${DHCP_IPADDR[$i]}"
        echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -d -t 60 ${DHCP_OPTIONS} ${1}" | $LOGGER
        /sbin/dhcpcd -d -t 60 ${DHCP_OPTIONS} ${1}
      else # bring up interface using a static IP address
        if [ ! "${IPADDR[$i]}" = "" ]; then # skip unconfigured interfaces
          # Determine broadcast address from the IP address and netmask:
          BROADCAST[$i]=`/bin/ipmask ${NETMASK[$i]} ${IPADDR[$i]}|cut -f1 -d' '`
          # Set up the network card:
          echo "/etc/rc.d/rc.inet1:  /sbin/ifconfig ${1} ${IPADDR[$i]} broadcast ${BROADCAST[$i]} netmask ${NETMASK[$i]}" | $LOGGER
          /sbin/ifconfig ${1} ${IPADDR[$i]} broadcast ${BROADCAST[$i]} netmask ${NETMASK[$i]}
        else
          if [ "$DEBUG_ETH_UP" = "yes" ]; then
            echo "/etc/rc.d/rc.inet1:  ${1} interface is not configured in /etc/rc.d/rc.inet1.conf" | $LOGGER
          fi
        fi
      fi
    else
      if [ "$DEBUG_ETH_UP" = "yes" ]; then
        echo "/etc/rc.d/rc.inet1:  ${1} is already up, skipping" | $LOGGER
      fi
    fi
  else
    if [ "$DEBUG_ETH_UP" = "yes" ]; then
      echo "/etc/rc.d/rc.inet1:  ${1} interface does not exist (yet)" | $LOGGER
    fi
  fi
}

# Function to take down a network interface:
if_down() {
  # Determine position 'i' of this interface in the IFNAME array:
  i=0
  while [ $i -lt $MAXNICS ]; do
    [ "${IFNAME[$i]}" = "${1}" ] && break
    i=$(($i+1))
  done
  if grep `echo ${1}: | cut -f 1 -d :`: /proc/net/dev 1> /dev/null ; then
    if [ "${USE_DHCP[$i]}" = "yes" ]; then
      echo "/etc/rc.d/rc.inet1:  /sbin/dhcpcd -k -d ${1}" | $LOGGER
      /sbin/dhcpcd -k -d ${1} || /sbin/ifconfig ${1} down
      sleep 1
    else
      echo "/etc/rc.d/rc.inet1:  /sbin/ifconfig ${1} down" | $LOGGER
      /sbin/ifconfig ${1} down
    fi
    if [ -x /etc/rc.d/rc.wireless ]; then
      . /etc/rc.d/rc.wireless ${1} stop # Kill wireless daemons if any.
    fi
  fi
}

#####################
# GATEWAY FUNCTIONS #
#####################

# Function to bring up the gateway if there is not yet a default route:
gateway_up() {
  if ! /sbin/route -n | grep "^0.0.0.0" 1> /dev/null ; then
    if [ ! "$GATEWAY" = "" ]; then
      echo "/etc/rc.d/rc.inet1:  /sbin/route add default gw ${GATEWAY} metric 1" | $LOGGER
      /sbin/route add default gw ${GATEWAY} metric 1 2>&1 | $LOGGER
    fi
  fi
}

# Function to take down an existing default gateway:
gateway_down() {
  if /sbin/route -n | grep "^0.0.0.0" 1> /dev/null ; then
    echo "/etc/rc.d/rc.inet1:  /sbin/route del default" | $LOGGER
    /sbin/route del default
  fi
}

# Function to start the network:
start() {
  lo_up
  for i in ${IFNAME[@]} ; do
    if_up $i
  done
  gateway_up
}

# Function to stop the network:
stop() {
  gateway_down
  for i in ${IFNAME[@]} ; do
    if_down $i
  done
  lo_down
}


############
### MAIN ###
############

case "$1" in
'start') # "start" brings up all configured interfaces:
  start
  ;;
'stop') # "stop" takes down all configured interfaces:
  stop
  ;;
'restart') # "restart" restarts the network:
  stop
  start
  ;;
*_start) # Example: "eth1_start" will start the specified interface 'eth1'
  INTERFACE=`echo $1 | /bin/cut -d '_' -f 1`
  if_up $INTERFACE
  gateway_up
  ;;
*_stop) # Example: "eth0_stop" will stop the specified interface 'eth0'
  INTERFACE=`echo $1 | /bin/cut -d '_' -f 1`
  if_down $INTERFACE
  ;;
*_restart) # Example: "wlan0_restart" will take 'wlan0' down and up again
  INTERFACE=`echo $1 | /bin/cut -d '_' -f 1`
  if_down $INTERFACE
  sleep 1
  if_up $INTERFACE
  gateway_up
  ;;
'up') # "up" does the same thing as "start"
  start
  ;;
'down') # "down" does the same thing as "stop"
  stop
  ;;
*_up) # "*_up" does the same thing as "*_start"
  INTERFACE=`echo $1 | /bin/cut -d '_' -f 1`
  if_up $INTERFACE
  gateway_up
  ;;
*_down) # "*_down" does the same thing as "*_stop"
  INTERFACE=`echo $1 | /bin/cut -d '_' -f 1`
  if_down $INTERFACE
  ;;
*) # The default is to bring up all configured interfaces:
  lo_up
  for i in ${IFNAME[@]} ; do
    if_up $i
  done
  gateway_up
esac

# End of /etc/rc.d/rc.inet1


--------------------------------------------------------------------------------------------------------------------------------------------

root@shadow:~# cat /etc/rc.d/rc.inet2
#!/bin/sh
#
# rc.inet2      This shell script boots up the entire network system.
#               Note, that when this script is used to also fire
#               up any important remote NFS disks (like the /usr
#               directory), care must be taken to actually
#               have all the needed binaries online _now_ ...
#
#               Uncomment or comment out sections depending on which
#               services your site requires.
#
# Author:       Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# Modified for Slackware by Patrick Volkerding <volkerdi@slackware.com>


# At this point, we are ready to talk to The World...


# Mount remote (NFS) filesystems:
if cat /etc/fstab | grep -v '^#' | grep -w nfs 1> /dev/null 2> /dev/null ; then
  # Start the RPC portmapper if we find NFS volumes defined in /etc/fstab,
  # since it will need to be running in order to mount them.  If portmap
  # is not running, attempting to mount an NFS partition will cause mount
  # to hang.  Keep this in mind if you plan to mount unlisted partitions...
  # It has also been reported that in many applications rpc.lockd and rpc.statd
  # must be started as well, if NFS is to work reliably.  Therefore, if we see
  # NFS partition in fstab and rc.portmap is executable, we will also start lockd
  # and statd too.
  if [ -x /etc/rc.d/rc.portmap ]; then
    . /etc/rc.d/rc.portmap start
    if [ -x /usr/sbin/rpc.lockd ]; then
      echo "Starting kernel lockd processes:  /usr/sbin/rpc.lockd"
      /usr/sbin/rpc.lockd
    fi
    if [ -x /usr/sbin/rpc.statd ]; then
      echo "Start NSM (Network Status Monitor) RPC protocol:  /usr/sbin/rpc.statd"
      /usr/sbin/rpc.statd
    fi
  else
    # Warn about a possible NFS problem.  It's also possible to mount NFS partitions
    # without rpc.portmap by using '-o nolock' (not a good idea in most cases).
    echo "WARNING:  NFS partitions found in /etc/fstab, but /etc/rc.d/rc.portmap is"
    echo "          not executable.  If you do not run portmap, rpc.lockd, and"
    echo "          rpc.statd, NFS partitions will not mount properly.  To start"
    echo "          rpc.portmap at boot, change the permissions on"
    echo "          /etc/rc.d/rc.portmap:  chmod 755 /etc/rc.d/rc.portmap"
    sleep 10
  fi
  echo "Mounting remote (NFS) file systems:  /sbin/mount -a -t nfs"
  /sbin/mount -a -t nfs          # This may be our /usr runtime!
  # Show the mounted volumes:
  /sbin/mount -v -t nfs
fi

# Load the RPC portmapper if /etc/rc.d/rc.portmap is executable.
# This might be needed to mount NFS partitions that are not listed in /etc/fstab.
# For more reliability, you might also want to run rpc.lockd and rpc.statd, too.
if [ -x /etc/rc.d/rc.portmap ]; then
  . /etc/rc.d/rc.portmap start
fi

# Mount remote (SMB) filesystems:
if cat /etc/fstab | grep -v '^#' | grep -w smbfs 1> /dev/null 2> /dev/null ; then
  echo "Mounting remote (SMB) file systems:  /sbin/mount -a -t smbfs"
  /sbin/mount -a -t smbfs
  # Show the mounted volumes:
  /sbin/mount -v -t smbfs
fi

# Start the system logger if it is not already running (maybe because /usr
# is on a network partition).
if [ -x /etc/rc.d/rc.syslog -a -d /var/log -a ! -r /var/run/syslogd.pid ]; then
  . /etc/rc.d/rc.syslog start
fi

# If there is a firewall script, run it before enabling packet forwarding.
# See the HOWTOs on http://www.netfilter.org/ for documentation on
# setting up a firewall or NAT on Linux.  In some cases this might need to
# be moved past the section below dealing with IP packet forwarding.
if [ -x /etc/rc.d/rc.firewall ]; then
  /etc/rc.d/rc.firewall start
fi

# Turn on IPv4 packet forwarding support.
if [ -x /etc/rc.d/rc.ip_forward ]; then
  . /etc/rc.d/rc.ip_forward start
fi

# Start the inetd server:
if [ -x /etc/rc.d/rc.inetd ]; then
  /etc/rc.d/rc.inetd start
fi

# Start the OpenSSH SSH daemon:
if [ -x /etc/rc.d/rc.sshd ]; then
  echo "Starting OpenSSH SSH daemon:  /usr/sbin/sshd"
  /etc/rc.d/rc.sshd start
fi

# Start the BIND name server daemon:
if [ -x /etc/rc.d/rc.bind ]; then
  /etc/rc.d/rc.bind start
fi

# Start NIS (the Network Information Service):
if [ -x /etc/rc.d/rc.yp ]; then
  . /etc/rc.d/rc.yp start
fi

# Start the NFS server.   Note that for this to work correctly, you'll
# need to load the knfsd module for kernel NFS server support.
# You'll also need to set up some shares in /etc/exports, and be sure
# that /etc/rc.d/rc.portmap is executable.
# Starting the NFS server:
if [ -x /etc/rc.d/rc.nfsd ]; then
  /etc/rc.d/rc.nfsd start
fi

# Stuff you won't need follows.  ;-)

# # Start the network routing daemon:
# if [ -x /usr/sbin/routed ]; then
#   echo "Starting network routing daemon:  /usr/sbin/routed"
#   /usr/sbin/routed -g -s
# fi

# # Start the system status server:
# if [ -x /usr/sbin/rwhod ]; then
#   echo "Starting system status server:  /usr/sbin/rwhod"
#   /usr/sbin/rwhod
# fi

#  # Fire up the PC-NFS daemon(s).  This is a primarily obsolete system, and may
#  # not be very secure.  It's not at all needed for normal NFS server support.
#  # You probably should not run this.
#  if [ -x /usr/sbin/rpc.pcnfsd ]; then
#    echo "Starting PC-NFS daemons:  /usr/sbin/rpc.pcnfsd /usr/sbin/rpc.bwnfsd"
#    /usr/sbin/rpc.pcnfsd /var/spool/lpd
#  fi
#  if [ -x /usr/sbin/rpc.bwnfsd ]; then
#    /usr/sbin/rpc.bwnfsd /var/spool/lpd
#  fi


--------------------------------------------------------------------------------------------------------------------------------------------


root@shadow:~# cat /etc/rc.d/rc.inetd
#!/bin/sh
# Start/stop/restart inetd, the BSD Internet super-daemon.

# Start inetd:
inetd_start() {
  if [ -x /usr/sbin/inetd ]; then
    echo "Starting Internet super-server daemon:  /usr/sbin/inetd"
    /usr/sbin/inetd
  fi
}

# Stop inetd:
inetd_stop() {
  killall inetd
}

# Restart inetd:
inetd_restart() {
  inetd_stop
  sleep 1
  inetd_start
}

case "$1" in
'start')
  inetd_start
  ;;
'stop')
  inetd_stop
  ;;
'restart')
  inetd_restart
  ;;
*)
  echo "usage $0 start|stop|restart"
esac

----------

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

3. "DHCPDISCOVER on eth0 ..."  
Сообщение от Sh4d0w email(??) on 12-Окт-06, 14:37 
Сейчас заметил:
tail -f /var/log/messages рисует

Oct 12 14:33:19 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Oct 12 14:33:26 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Oct 12 14:33:35 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
Oct 12 14:33:51 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Oct 12 14:34:00 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Oct 12 14:34:09 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Oct 12 14:34:17 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Oct 12 14:34:20 localhost dhclient: No DHCPOFFERS received.
Oct 12 14:34:20 localhost dhclient: No working leases in persistent database - sleeping.
Oct 12 14:38:00 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Oct 12 14:38:04 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Oct 12 14:38:10 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Oct 12 14:38:15 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
Oct 12 14:38:18 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Oct 12 14:38:33 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
Oct 12 14:38:33 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Oct 12 14:38:47 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Oct 12 14:38:50 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Oct 12 14:39:00 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Oct 12 14:39:01 localhost dhclient: No DHCPOFFERS received.
Oct 12 14:39:01 localhost dhclient: No working leases in persistent database - sleeping.


и так до бесконечности, хотя ип на eth0 прописан статический
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

4. "fixed."  
Сообщение от Sh4d0w email(ok) on 12-Окт-06, 14:46 
Проблема решилась сама собой.
Поставил в настройках автоматическое определение IP (через Центр управления KDE)
сохранил, поставл обратно свой, сохранил, перегрузил систему.
Что это было - я так и не понял %)
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру