Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: robert 07 Prosince 2006, 15:04:45
-
Ahoj,
právě jsem na desktop nainstaloval xubuntu a nemůžu rozjet síť. Mám adsl modem s routerem a natem, na něm mám navěšený ještě switch, pač na modemu jsou jen 2 rj45, Vše jede na DHCP. Na jednom desktopu mám starý Mandrake, na notebooku Mandrivu 2006 a tam net bez problémů jede.
Na Xubuntu sice v konzole pingám krásně všude, ale http nejede a při pokusu o
sudo apt-get update se mi to pokouší připojit na neexistující 1.0.0.0
síťovka je integrovaná na základní desce, procesor Athlox 1800 XP
-
kedze ti nastavenie eth nastavuje cez dhcp, tak napis:
sudo dhclient eth0
ak to nepomoze, tak si to nastav rucne :) ..
-
píše mi to:
Listening on LPF/eth0/00:11:2f:40:04:50
Sending on LPF/eth0/00:11:2f:40:04:50
Sending on Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.138
bound to 10.0.0.2 -- renewal in 1429 seconds.
nicméně žádná změna :(
-
naslo ti dhcp server...a nastavilo setko, co bolo treba :) ///
niekedy sa stava, ze sa nenastavi adresa dns servera a smerovaca (gateway) ... preto je najlepsie si vsetky parametre nastavit rucne..
najsitejsie je to priamo v konfigoch.. .cize... :
- nastavenie ip adresy rozhrania (sietovky) + maska podsiete a ip adresa brany (gateway, router) v /etc/network/interfaces a tam:
auto eth0
iface eth0 inet static
address netmask
gateway
- ip adresu dns servra/-ov /etc/resolv.conf a tam:
nameserver
nameserver
- a nakoniec restart sluzby networking:
sudo /etc/init.d/networking restart
ted by ti to malo ist .. .samozrejme, ze tie adresy potrebujes vediet :)) zistis ich napr z nastavenia siete vo windowse..alebo priamo na tvojom smerovaci (adsl modeme)
-
V /etc/network/interfaces mám:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
address 10.0.0.2
netmask 255.255.255.0
gateway 10.0.0.138
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet dhcp
auto ath0
iface ath0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
iface dsl-provider inet ppp
provider dsl-provider
zkousel jsem i static
v /etc/resolv.conf mám:
nameserver 10.0.0.138
po restartu mi to píše:
* Reconfiguring network interfaces... There is already a pid file /var/run/dhclient.eth0.pid with pid 3280
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:11:2f:40:04:50
Sending on LPF/eth0/00:11:2f:40:04:50
Sending on Socket/fallback
DHCPRELEASE on eth0 to 10.0.0.138 port 67
There is already a pid file /var/run/dhclient.eth0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:11:2f:40:04:50
Sending on LPF/eth0/00:11:2f:40:04:50
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 10.0.0.138
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.138
bound to 10.0.0.2 -- renewal in 1749 seconds.
There is already a pid file /var/run/dhclient.eth1.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
SIOCSIFADDR: No such device
eth1: ERROR while getting interface flags: No such device
eth1: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth1.
There is already a pid file /var/run/dhclient.eth2.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
SIOCSIFADDR: No such device
eth2: ERROR while getting interface flags: No such device
eth2: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up eth2.
There is already a pid file /var/run/dhclient.ath0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
SIOCSIFADDR: No such device
ath0: ERROR while getting interface flags: No such device
ath0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up ath0.
There is already a pid file /var/run/dhclient.wlan0.pid with pid 134993416
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
Bind socket to interface: No such device
Failed to bring up wlan0.
[ ok ]
pokud dám static, tak tam údaje o eth0 vůbec nejsou
výsledek je ale stále stejný - web ani aktualizace nejedou, ping na cokoliv jede krásně :(
-
takze vsetko mas nastavene cez dhcp ... takze teoreticky by to malo ist :)
ked pingas, tak pingas co? pocitace v tvojej lokalnej sieti? tie by mali ist bez problemov, vsak.
skus ping na nieco z internetu .. napriklad:
ping 194.160.170.11
co je vlastne
ping www.sanet.sk
ak ti pojde ping na ip adresu a druhy nie, tak je nejaka chyba v dns.. ak to nepojde vobec, tak mas problem s prekladom adries, pripadne so smerovanim, tak pre istotu sem hod vypiz z prikazu:
route
-
Pingam na doménové jména www.seznam.cz www.google.com atd... ping na vnější IP adresy taky jede.
katka@katka-desktop:~$ ping www.centrum.cz
PING hp6-pool.centrum.cz (213.29.7.27) 56(84) bytes of data.
64 bytes from www.centrum.cz (213.29.7.27): icmp_seq=1 ttl=248 time=19.2 ms
64 bytes from www.centrum.cz (213.29.7.27): icmp_seq=2 ttl=248 time=17.7 ms
64 bytes from www.centrum.cz (213.29.7.27): icmp_seq=3 ttl=248 time=18.7 ms
64 bytes from www.centrum.cz (213.29.7.27): icmp_seq=4 ttl=248 time=17.7 ms
64 bytes from www.centrum.cz (213.29.7.27): icmp_seq=5 ttl=248 time=18.3 ms
--- hp6-pool.centrum.cz ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4010ms
rtt min/avg/max/mdev = 17.771/18.378/19.281/0.596 ms
katka@katka-desktop:~$ route
Směrovací tabulka v jádru pro IP
Adresát Brána Maska Přízn Metrik Odkaz Užt Rozhraní
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
default mygateway.ar7 0.0.0.0 UG 0 0 0 eth0
ping na počítače ve vnitřní síti je mrtvý
-
a nemas nahodou nejak divne nastaveny firewall? napr zakazany pristup na/z privatnych adries?? ale kedze pises, ze si xubunt prave naisntaloval, tak nic take nebude :/
pre istotu napis:
sudo iptables -F (to by malo vycistit iptables..)
ale nechapem, preco sa nevie dostat do sveta inak, ako cez icmp ...
skus si pustit ubuntu live ... a ci to tam pojde. . .
-
Zkontrolujte nastaveni nameseveru, v /etc/resolv.conf by melo byt:
nameserver ip_adresa_routeru
A zkuste tam pripadne pridat jeste nejaky nadrizeny nameserver poskytovatele.
Restartujte modem pred kazdym pokusem.
-
v resolv.conf mám:
nameserver 10.0.0.138
tady mám log z modem/routeru:
00:00:00 Valid Configuration Tree
00:00:00 Valid Configuration Tree
00:00:01 Firewall NAT service started
00:00:01 USB interface is being brought up
00:00:02 Bridge Created: br0
00:00:02 USB Interface Successfully Brought Up
00:00:03 Bridge Interface Added: usbrndis
00:00:03 Bridge Interface Added: eth0
00:00:10 DSL Carrier is down
00:00:30 DSL Carrier is up
00:00:30 pppd 2.4.1 started by root, uid 0
00:00:31 Connect: ppp0 {--}
00:00:34 PPPoA Connect with IP Address 62.177.76.92
00:00:34 PPPoA Connection Successfully Established
00:00:34 PPPoA Connect with Gateway IP Address: 88.146.111.70
00:00:34 local IP address 62.177.76.92
00:00:34 remote IP address 88.146.111.70
00:00:34 primary DNS address 212.20.96.34
00:00:34 secondary DNS address 195.250.128.234
kde 62.177.... je vnější IP
pokud nabootuju z live distribuce, tak síť taky nejede :(
-
Zkusil bych do resolv.cof pridat ty zalozni nameservery 212 a 195, aspon zkusit, on je dhclient zase premaze.
A vypnout Ipv6, navod je tady v sitich.
-
Pokud vyhodím z resolv.conf 10.0.0.138 a nastavím tam ty skutečné DNS (212 + 195) + nastavím si statiku a vyberu nějakou vnitřní IP z povoleného rozsahu, tak to jede.
Ipv6 jsem nevypínal
Díky moc rady