Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
mam problem z siecia ardiowa,odbieram sygnal z komputera o numerze ip 192.168.0.1,bramie 255.255.255.0 z WindowsaXP,u siebie na Debianie ustawilem adres na 192.168.0.2,maska 255.255.255.0,brama 192.168.0.1
ipconfig /all:(z windowsa pod ktorym net chodzi):
Konfiguracja IP systemu Windows
Nazwa hosta . . . . . . . . . . . : piotr
Sufiks podstawowej domeny DNS . . . . . . :
Typ węzła . . . . . . . . . . . . : Nieznany
Routing IP włączony . . . . . . . : Nie
Serwer WINS Proxy włączony. . . . : Nie
Karta Ethernet Połączenie lokalne:
Sufiks DNS konkretnego połączenia :
Opis . . . . . . . . . . . . . . : Karta Realtek RTL8139 Family PCI Fast Ethernet NIC
DHCP włączone . . . . . . . . . . : Nie
Adres IP. . . . . . . . . . . . . : 192.168.0.2
Maska podsieci. . . . . . . . . . : 255.255.255.0
Brama domyślna. . . . . . . . . . : 192.168.0.1
Serwery DNS . . . . . . . . . . . : 192.168.0.1
utworzylem plik resolf.conf,ustawilem prawa dostepu na 644 i wpisalem:
nameserver 194.204.152.34
nameserver 194.204.159.1
/etc/network/interfaces:po dopisaniu karty eth0 wyglada tak:
auto lo
iface lo inet loopbac
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
ale po uzyciu komendy ifconfig nie uznaje tych ustawien:
eth0 Link encap:Ethernet HWaddr 00:0E:2E:06:02:BC
BROADCAST MULTICAST MTU:1500 Metric:1
dopiero po wpisaniu:
ifconfig eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.1 up
wyswietla ifconfig :
eth0 Link encap:Ethernet HWaddr 00:0E:2E:06:02:BC
inet addr:192.168.0.2 Bcast:192.168.0.1 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe06:2bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:1000
RX bytes:700 (700.0 b) TX bytes:928 (928.0 b)
Interrupt:10 Base address:0x7400
itd.
po zapingowaniu wyswietla mi:
ping: unknown host www.google.pl
pingowanie na numer 192.168.0.1 nie dziala(pod Xp dziala)
pingowanie miedzy komputerami w sieci lokalnej dziala
probowalem w resolf.conf wpisac tylko DNS:
nameserver 192.168.0.1
ale to nic nie dalo
co jest zle?czy przyczyna jest to ze sygnal idzie z Xp na linuksa?(bo w windowsie net chodzi)
Ostatnio edytowany przez pk111 (2008-09-22 13:41:05)
Offline
Po wpisaniu w /etc/network/interface nalezy dac polecenie /etc/ini.t/network restart i potrzebna jeszcze jest polecenie :
route add default gw 192.168.0.1
powinno pomoc
Offline
/etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces.../etc/network/interfaces:6: unknown method
ifdown: couldn't read interfaces file "/etc/network/interfaces"
/etc/network/interfaces:6: unknown method
ifup: couldn't read interfaces file "/etc/network/interfaces"
done.
route add default gw 192.168.0.1
SIOCADDRT: Sieć jest niedostępna
Offline
w /etc/network/interfaces spróbuj
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
i zresetuj sieciowke
ifdown eth0 ifup eth0
<EDIT
192.168.0.1 to jest adres twojego komputera? jeżeli byś mógł to spróbuj zobrazować na rysuknku rozkład połączeń bo chyba sie pogubiłem
Offline
po dopisaniu do pliku interfaces wpisałem:
debian:/home/piotr# ifdown eth0
/etc/network/interfaces:6: unknown method
ifdown: couldn't read interfaces file "/etc/network/interfaces"
debian:/home/piotr# ifup eth0
/etc/network/interfaces:6: unknown method
ifup: couldn't read interfaces file "/etc/network/interfaces"
192.168.0.2 to adres mojego kompa,
sieć jest w topologii gwiazdy:
router(192.168.1.31)
|
192.168.0.1(XP,2 sieciówki)
|
hub
/
192.168.0.2(xp+debian) 192.168.0.3(W98)
debian:/home/piotr# cat /etc/network/interfaces
# 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 loopbac
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Offline
# 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 loopbac
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
iface lo inet loopbac
zmien na
iface lo inet loopback
Offline
pingi miedzy moim kompem a routerem i kompem z ip 192.168.0.1(host chyba sie go nazywa)juz przechodza,
ale pingowanie stron:
debian:/home/piotr# ping www.google.pl
ping: unknown host www.google.pl
probowalem w resolf.conf zmienic na :
nameserver 192.168.0.1
ale to nic nie dalo
debian:/home/piotr# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0E:2E:06:02:BC
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe06:2bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:91 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9067 (8.8 KiB) TX bytes:5901 (5.7 KiB)
Interrupt:10 Base address:0x7400
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:252 errors:0 dropped:0 overruns:0 frame:0
TX packets:252 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17472 (17.0 KiB) TX bytes:17472 (17.0 KiB)
sit0 Link encap:IPv6-in-IPv4
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)
debian:/home/piotr# cat /etc/network/interfaces
# 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
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
debian:/home/piotr# cat /etc/resolf.conf
nameserver 194.204.152.34
nameserver 194.204.159.1
probowalem tez:
a)debian:/home/piotr# route add default gw 192.168.0.1
SIOCADDRT: Plik istnieje
b)debian:/home/piotr# /etc/init.d/networking restart
Setting up IP spoofing protection: rp_filter.
Reconfiguring network interfaces...ifup: interface lo already configured
done.
c)debian:/home/piotr# ifdown eth0
debian:/home/piotr# ifup eth0
ale efekt nadal ten sam:
debian:/home/piotr# ping www.google.pl
ping: unknown host www.google.pl
Offline
sprubuj zrobic ping przez IP
ping 216.239.39.99
jeżeli będzie działał to znaczy ze wina lezy po stronie DNS
nameserver napewno nie powinien byc 192.168.0.1 w twoim przypadku, proponuje 194.204.152.34 !
mozesz sprubowac alternatywnie
route add default gw 194.204.152.34 eth0
Offline
po zapingowaniu przez ip jest odpowiedz,ale ping przez www nie przechodzi
debian:/home/piotr# route add default gw 194.204.152.43 eth0
SIOCADDRT: Sieć jest niedostępna
debian:/home/piotr# ls -l /etc/resolf.conf
-rw-r--r-- 1 root root 52 2005-10-28 19:47 /etc/resolf.conf
debian:/home/piotr# cat /etc/resolf.conf
nameserver 194.204.152.34
nameserver 194.204.159.1
Offline
debian:/home/piotr# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0E:2E:06:02:BC
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe06:2bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1468 (1.4 KiB) TX bytes:3136 (3.0 KiB)
Interrupt:10 Base address:0x7400
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:108 errors:0 dropped:0 overruns:0 frame:0
TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7004 (6.8 KiB) TX bytes:7004 (6.8 KiB)
Offline
zmień nazwę pliku z DNS-ami na resolv.conf
Offline
ale w taki razie czemu nie dziala #route ?? przeciez eth0 jest zainicjowane a wywala błąd ze nie jest dostępna sieć.
błędny IP wpisywał (DNS z tepsy tylko machnął się na końcu i zamiast .34 wpisał .43), jakby zrobił to z tą swoją gw 192.168.0.1 wynik polecenia byłby napewno inny
Offline