pomocy - to jakas czarna magia - problem z polaczeniem....
....kontynuujac....
konfiguracja interfejsu jest raczej ok, bo ifconfig wykazuje to samo (w
debianie i slacku). plik resolv.conf jest rowniez ok, dhcp wpisal tam to
samo co w slacku. /etc/dhcpc/dhcpcd-eth0.info jest rowniez identyczny w
slacku i debianie. nie wiem, co jeszcze ale wszstko wyglda jak nalezy...
w slacku za poprawny start dhcp przy bootwaniu odpowiada chyba jak sie
zorientowalem: /etc/rc.d/rc.inet1... nie wiem, czy to ma sens, ale
ponizej go wylistowalem.
moze ktos wie o co chodzi... moze jakis odpowiednik tego pliku tylko dla
debiana... cos do /etc/init.d/.... chociaz sam nie wiem, bo przeciez
klient dhcp dziala chyba poprawenie skoro dostaje IP, maska, brama, dnsy
- wszytsko to debian (tzn. klient dhcp) uzyskuje z serwera i wyglada tak
jak w slacku (moze za duzo o tym slacku na liscie debiana... :) )
a moze jest cos co nalezy wylaczyc... jakas funkcje w debianie, cos co
moze powodowac ze pakiety nie docieraja spowrotem do mnie (bo tak to
wyglda)?
jesli chodzi o firewalla to jest nieaktywny
rozpoczynam ten watek tutaj juz kolejny raz... jakos szybko sie to
wczesniej urywalo, a przeciez musi byc jakis sposob...
jestem otwarty na wszelkie sugestie... wylistuje wszystko, co kto bedzie
sobie zyczyl... wklepie jakiekolwiek polecenia... tylko POMOZCIE
P R O S Z E :)
niepokoja mnie tez wyskakujace w konsoli...
"xxx.xxx.xxx.xxx send an invalid ICMP error to a broadcast"
(xxx.xxx.xxx.xxx to jakis dziwny adres typu 192.168....)
(moje IP jest z puli 10.0.4.xxx)
/etc/rc.d/rc.inet1
============================================
#! /bin/sh
# /etc/rc.d/rc.inet1
# This script starts up the base networking system.
#
# Version:
# @(#)/etc/rc.d/rc.inet1 8.1 Tue May 28 15:27:39 PDT 2002 (pjv)
# Edit these values to set up your first Ethernet card (eth0):
IPADDR="127.0.0.1" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth0 using DHCP:
USE_DHCP=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME="CCHOSTNUM-A"
# Edit these values to set up your second Ethernet card (eth1),
# if you have one. Otherwise leave it configured to 127.0.0.1,
# or comment it out, and it will be ignored at boot.
IPADDR2="127.0.0.1" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.0" # REPLACE with YOUR netmask!
# Or, uncomment the following lines to set up eth1 using DHCP:
#USE_DHCP2=yes
# If your provider requires a DHCP hostname, uncomment and edit below:
#DHCP_HOSTNAME2="CCHOSTNUM-A"
# Edit the next line to point to your gateway:
GATEWAY="" # REPLACE with YOUR gateway!
# You shouldn't need to edit anything below here.
# Set up the loopback interface:
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
# Set up the eth0 interface:
if [ "$USE_DHCP" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth0 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME" = "" ]; then
DHCP_HOSTNAME="-h $DHCP_HOSTNAME"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0
elif [ ! "$IPADDR" = "127.0.0.1" -a ! "$IPADDR" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST=`/bin/ipmask $NETMASK $IPADDR | cut -f 1 -d ' '`
NETWORK=`/bin/ipmask $NETMASK $IPADDR | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth0:"
echo "ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}"
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth0 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should run netconfig"
echo " and configure your machine for loopback. (Unless you don't mind seeing this"
echo " error...)"
fi
fi # set up eth0
# Set up the eth1 interface:
if [ "$USE_DHCP2" = "yes" ]; then # use DHCP to set everything up:
echo "Attempting to configure eth1 by contacting a DHCP server..."
# Add the -h option to the DHCP hostname:
if [ ! "$DHCP_HOSTNAME2" = "" ]; then
DHCP_HOSTNAME2="-h $DHCP_HOSTNAME2"
fi
/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME2} -d eth1
elif [ ! "$IPADDR2" = "127.0.0.1" -a ! "$IPADDR2" = "" ]; then # set up IP statically:
# Determine broadcast and network addresses from the IP address and netmask:
BROADCAST2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 1 -d ' '`
NETWORK2=`/bin/ipmask $NETMASK2 $IPADDR2 | cut -f 2 -d ' '`
# Set up the ethernet card:
echo "Configuring eth1:"
echo "ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}"
/sbin/ifconfig eth1 ${IPADDR2} broadcast ${BROADCAST2} netmask ${NETMASK2}
# If that didn't succeed, give the system administrator some hints:
if [ ! $? = 0 ]; then
echo "Your eth1 card was not initialized properly. Here are some reasons why this"
echo "may have happened, and the solutions:"
echo "1. Your kernel does not contain support for your card. Including all the"
echo " network drivers in a Linux kernel can make it too large to even boot, and"
echo " sometimes including extra drivers can cause system hangs. To support your"
echo " ethernet, either edit /etc/rc.d/rc.modules to load the support at boot time,"
echo " or compile and install a kernel that contains support."
echo "2. You don't have an ethernet card, in which case you should fix"
echo " /etc/rc.d/rc.inet1 to stop trying to configure eth1. (Unless you don't mind"
echo " seeing this error...)"
fi
fi # set up eth1
# Set up the gateway:
if [ ! "$GATEWAY" = "127.0.0.1" -a ! "$GATEWAY" = "" ]; then
/sbin/route add default gw ${GATEWAY} metric 1
fi
# End of /etc/rc.d/rc.inet1
=================================================
pozdr ;)
mun: zeus@zeus.polsl.gliwice.pl
mun: sirmun@poczta.onet.pl
Reply to: