Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Internet a sítě => Téma založeno: ETNyx 03 Července 2008, 16:58:24
-
zdravim potreboval bych helpnout mam tu PCcko a nejde mi na nem uz 3 dny rozchodit internet uz nevim co bych s tim mel delat, pls zkouknete to nekdo, nainstalovany system je 8.04 AM64 (64 bit verze)
tady posilam vypisy:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:29:99:3a:3e:a5
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:99ff:fe3a:3ea0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:154 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:14134 (13.8 KB) TX bytes:11930 (11.6 KB)
Memory:d8300000-d8320000
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:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:932 (932.0 B) TX bytes:932 (932.0 B)
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere state ESTABLISHED
ACCEPT tcp -- anywhere anywhere state ESTABLISHED
ACCEPT udp -- anywhere anywhere state ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT icmp -- anywhere anywhere
LOG all -- anywhere anywhere limit: avg 3/sec burst 5 LOG level warning
DROP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100
link/ether 00:29:99:3a:3e:a5 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
inet6 fe80::219:99ff:fe3a:3ea0/64 scope link
valid_lft forever preferred_lft forever
-
cat /etc/resolv.conf
ping 192.168.1.1
ping 74.125.39.104
-
cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
ping 192.168.1.1 odpovida
ping 74.125.39.104 odpovida
-
Vytvořte v /etc/ soubor resolv.conf a do něj dopište toto
nameserver xxx.xxx.xxx.xxx
kde xxx.xxx.xxx.xxx je IP adresa vašeho DNS serveru. Co řádek to jeden server.
-
Nemate nastaveny Vase DNS servery, ktery se staraji o preklad domenovych jmen na ip adresy a naopak. Proto pingy na ip projdou a www.google.com ne.
Musite vytvorit soubor /etc/resolv.conf a vlozit do nej radek:
nameserver 192.168.1.1Kde za tuhle ip adresu date ip adresu Vasi. Je dost mozne ze to bude prave tahle kterou jsem uvedl jako priklad.
EDIT: O vterinku pozdeji.
-
díky za pomoc -> LOCK