Šta je novo?

Ubuntu 8.04, internet i VPN [Rešeno]

leta

Slavan
Učlanjen(a)
12.11.2008
Poruke
37
Poena
304
Internet je wadsl i na windowsu radi savrseno...

evo novi problem...
dva dana ubuntu je radio savrseno...sve do danas...
palim ja komp i idem na mozzilu...kad ne moze da nadje stranicu...odem ja u konekcije-konektovan sam...reko, uskljucicu konekciju pa ponovo ukljuciti, ali sad nece da ga konektuje uopste...
odem u win i tamo net sljaka...
ne znam u cemu je problem
konektujem na pppoe, ispravan username i password, eth1...
ima li ko sugestije?

PS: router ne znam koji je, nisam bio tu kad je internet uvodjen, a nisam se penjao na krov zgrade da vidim...mislim da nije do njega, jer net na windowsu radi...
 
Posto se niko ne javlja, da probam ja da ti pomognem.
Kada nesto ovako ne radi u linuxu ili bilo kojem drugom OS-u koji se oslanja na unix, prvo sto trebas da uradis jeste da pogledas log fajlove. Oni se nalaze u /var/log/ i u nekom od njih ces sigurno da nadjes odgovarajuci error koji se tice pppoe konekcije.
Fajlovi su tekstualni, mozes da ih otvoris u bilo kom editoru.

Kada nadjes gresku u log fajlovima (probaj prvo sa /var/log/syslog i /var/log/daemon.log), postuj je ovde da bi mogli da ti pomognemo, a mozes i da izguglas taj error pa da vidis sta moze da bude problem.

poz. i srecno!
 
ifconfig eth0

cat /etc/resolv.conf




sutra cu dopuniti ovo sto si predlozio...sad nisam mogao, nisam imao vremena...
 
Poslednja izmena:
a gde ti je IP adresa u izlazu ifconfig eth0 ? Ja vidim samo MAC.
 
Opet nismo dobili nikakve informacije - jedino sto ja sa ovih slika mogu da vidim jeste da tvoja ethernet kartica nema IP adresu, tj ili nije uopste setovana ili ne dobija adresu od dhcp servera koji se nalazi na ruteru. Razlog za to je i dalje negde u log fajlovima.

Za detaljniju dijagnozu potreban je i detaljniji info, odnosno tih par redova sa greskom negde u log fajlovima.

Mozes da pocnes i sa objasnjavanjem nacina na koji dobijas net, recimo opisi proceduru za windows - da li si u windowsu stavio ethernet kartu da ima staticke adrese ili na automatic, kako ti je setovan pppoe, i sl.

Vrlo verovatno je neka sitnica u pitanju.

edit: tek sad vidim da ces naknadno da zaviris u log fajlove, obrati paznju na redove koji opisuju ppp i eth0
 
Poslednja izmena:
Pozdrav ja koristim Linux mint 6 i imam slican problem. Ppoe se konektuje dobije adresu od provajdera ali rute su problem ubaci neku bez veze i neotvara nista.Probao sam po ovom uputstvu : #
RTNETLINK answers: File exists
#
huge transmit data counters
#
LCP EchoReq without LCP EchoRep
Symptom: connection is established but no data transfer happens, ifconfig shows large amounts of data transmitted on PPTP tunnel, tcpdump shows many transmitted packets, the connection is closed after one minute, and debug logs contain this sequence:

rcvd [LCP EchoReq id=0x1
sent [LCP EchoRep id=0x1
sent [LCP EchoReq id=0x1
rcvd [LCP EchoReq id=0x2
sent [LCP EchoRep id=0x2
sent [LCP EchoReq id=0x2

which indicates that echo requests from the server are being received by the client, which issues an echo reply, but that echo requests from the client are not generating echo replies from the server.

Diagnosis: the route to the PPTP Server has changed to include the tunnel itself, and packets are being looped. Packets sent through the VPN are being encapsulated in PPP over GRE, and then sent through the same interface again.

See our diagram that explains this further. See our Routing HOWTO for more information about routing.

Solution: examine the routing table using netstat -rn before and after the tunnel becomes active. Determine why the route to the PPTP Server is via the tunnel interface. We list some possible reasons and actions that can be taken:

Possible Reason Action
1. the defaultroute option was used, causing pppd to add a new default route that overrides the existing default route that was used to initiate the tunnel. remove defaultroute from the options given to pppd, and use other means to provide routes through the tunnel interface.
2. distribution specific or local interface-up scripts changed the route. change or remove the scripts so that they do not change the route in this manner.
3. the PPTP Server may have failed to provide an IP address, causing the new interface to have the same address as the default address on your host (compare "local IP address" in the logs, or the address shown by "ifconfig ppp0" with the address of your main network interface). add the noipdefault option.
4. the PPTP Server may have given its own IP address for the new interface (compare "remote IP address" in the debug logs with the IP address you give to pptp). try one of the following:

1. change the point-to-point IP address of the newly created ppp interface, using an ip-up or ip-pre-up script, for example;

#!/bin/sh
# $1: interface-name
# $4: local-IP-address
# delete the assigned address from the network device
ip addr del $4 dev $1
# add back the assigned address along with a replacement peer address
ip addr add $4 peer 10.0.0.1/32 dev $1
# add a default route, remove if not wanted
route add default $1

2. change the point-to-point IP address of the newly created ppp interface, using ifconfig, for example;

ifconfig ppp0 pointopoint 10.0.1.1

where 10.0.1.1 is the address to be adopted, see internal address for how to determine this.

3. add a static route to the PPTP Server via your usual default gateway, for example;

route add -host x.x.x.x/32 gw y.y.y.y dev nnn0

where x.x.x.x is the IP address of the PPTP Server, y.y.y.y is the IP address of your usual default gateway, and nnn0 is the name of the network interface through which the gateway is contacted.

4. request a more appropriate address by adding an option such as :10.0.1.1, where 10.0.1.1 is the address to be adopted, (the PPTP server may be configured to refuse the request, or may not be capable of it)

5. use the iptables and ip commands to direct the tunnel packets away from the tunnel interface, see our Routing HOWTO for more detail,

6. ask the PPTP Server administrator to change the configuration to use another remote address.

sa http://pptpclient.sourceforge.net/howto-diagnosis.phtml#lots_of_data ali nemogu da promenim rute.
 
Resio fora je da sam ja uporno dodavao rute u vpn konekciju a trebalo je u lan konekciju. Konacno mi radi vpn u linuxu.
 
Vrh Dno