Zdravim,
uz asi tretim dnem prochazim fora o ubuntu kvuli problemum se siti a teprve dnes mi zacala fungovat.
Bohuzel ale jen na staticke IP a mam strach, ze to muze byt casem na zavadu.
Kdyz jeste nic nefungovalo, zkousel jsem podle fora vypsat par prikazu:
$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:17:31:7d:42:5b
inet6 addr: fe80::217:31ff:fe7d:425b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:179 errors:0 dropped:0 overruns:0 frame:0
TX packets:245 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:21666 (21.1 KB) TX bytes:30039 (29.3 KB)
Interrupt:249 Base address:0xe000
eth0:avahi Link encap:Ethernet HWaddr 00:17:31:7d:42:5b
inet addr:169.254.4.192 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:249 Base address:0xe000
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:1360 errors:0 dropped:0 overruns:0 frame:0
TX packets:1360 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:69928 (68.2 KB) TX bytes:69928 (68.2 KB)
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
link-local * 255.255.0.0 U 0 0 0 eth0
default * 0.0.0.0 U 1000 0 0 eth0
$ sudo cat /etc/network/interfaces
auto lo
iface lo inet loopback
$ cat /etc/resolv.conf
nameserver 192.168.50.1
$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 worscomp
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
$ cat /etc/hostname
worscomp
$ lshw -network
Hardware Lister (lshw) - B.02.12.01
usage: lshw [-format] [-options ...]
lshw -version
-version print program version (B.02.12.01)
format can be
-html output hardware tree as HTML
-xml output hardware tree as XML
-short output hardware paths
-businfo output bus information
options can be
-class CLASS only show a certain class of hardware
-C CLASS same as '-class CLASS'
-disable TEST disable a test (like pci, isapnp, cpuid, etc. )
-enable TEST enable a test (like pci, isapnp, cpuid, etc. )
-quiet don't display status
-sanitize sanitize output (remove sensitive information like serial numbers, etc.)
$ lsmod
Module Size Used by
nls_iso8859_1 6656 1
nls_cp437 8320 1
vfat 16256 1
fat 60592 1 vfat
ipv6 311720 10
af_packet 27272 2
rfcomm 47392 2
l2cap 28800 13 rfcomm
bluetooth 67748 4 rfcomm,l2cap
ppdev 11400 0
cpufreq_ondemand 11152 0
cpufreq_userspace 6180 0
cpufreq_powersave 3200 0
cpufreq_stats 8416 0
freq_table 6464 2 cpufreq_ondemand,cpufreq_stats
cpufreq_conservative 10632 0
sbs 17808 0
dock 12960 0
video 23444 0
output 5632 1 video
container 6656 0
sbshc 8960 1 sbs
battery 16776 0
iptable_filter 4608 0
ip_tables 24104 1 iptable_filter
x_tables 23560 1 ip_tables
ac 8328 0
lp 14916 0
parport_pc 41128 1
parport 44300 3 ppdev,lp,parport_pc
evdev 14976 3
serio_raw 9092 0
psmouse 46236 0
pcspkr 4992 0
k8temp 7680 0
shpchp 38172 0
pci_hotplug 34608 1 shpchp
snd_hda_intel 440408 3
snd_pcm_oss 47648 0
snd_mixer_oss 20224 1 snd_pcm_oss
snd_pcm 92168 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 13200 2 snd_hda_intel,snd_pcm
snd_hwdep 12552 1 snd_hda_intel
snd_seq_dummy 5764 0
snd_seq_oss 38912 0
snd_seq_midi 10688 0
snd_rawmidi 29856 1 snd_seq_midi
snd_seq_midi_event 10112 2 snd_seq_oss,snd_seq_midi
snd_seq 63232 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 27912 2 snd_pcm,snd_seq
snd_seq_device 10644 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 70856 17 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 10400 1 snd
button 10912 0
i2c_nforce2 8704 0
i2c_core 28544 1 i2c_nforce2
ext3 149264 2
jbd 57000 1 ext3
mbcache 11392 1 ext3
sg 41880 0
sr_mod 20132 0
cdrom 41512 1 sr_mod
sd_mod 33280 6
usb_storage 82496 1
sata_nv 31624 3
libusual 23520 1 usb_storage
ata_generic 9988 0
pata_amd 16772 0
floppy 69096 0
pata_acpi 9856 0
forcedeth 55564 0
ehci_hcd 41996 0
ohci_hcd 27524 0
libata 176304 4 sata_nv,ata_generic,pata_amd,pata_acpi
scsi_mod 178488 5 sg,sr_mod,sd_mod,usb_storage,libata
usbcore 169904 5 usb_storage,libusual,ehci_hcd,ohci_hcd
thermal 19744 0
processor 41448 1 thermal
fan 6792 0
fbcon 46336 0
tileblit 4096 1 fbcon
font 10112 1 fbcon
bitblit 7424 1 fbcon
softcursor 3712 1 bitblit
fuse 56112 3
$ sudo ethtool eth0
[sudo] password for wors:
Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Link detected: yes
Pak jsem zkusil route a priradit default gw.
Mam pripojeni takove, ze wifi antenou na strese chytam signal z vysilace kamarada, ktery ma ADSL. Z anteny je napojeny Edimax, z nej switch a pak me PC.
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
link-local * 255.255.0.0 U 0 0 0 eth0
default * 0.0.0.0 U 1000 0 0 eth0
$ sudo route add default gw 192.168.50.1
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
link-local * 255.255.0.0 U 0 0 0 eth0
default 192.168.50.1 0.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 U 1000 0 0 eth0
$ ping 192.168.50.1 -c10
PING 192.168.50.1 (192.168.50.1) 56(84) bytes of data.
--- 192.168.50.1 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9010ms
Nakonec me napadlo podivat se do Windows, co mi bylo vse prideleno a pri prikazu ipconfig mi vyjelo:
Konfigurace site Ethernet Pripojeni k siti:
Pripona DNS podle pripojeni . . . . . . domain
Adresa IP . . . . . . 192.168.50.37
Maska podsite . . . . . . 255.255.255.0
Vychozi brana . . . . . . 192.168.50.1
Od te doby ping fungoval...
Co mam udelat, abych mel IP prirazenou od DHCP automaticky? Abych nemusel mit IP staticky. Nevim, jestli mam vzdy stejnou IP a kdyby se mi nahodou nekdy zmenila, mohlo by dojit ke kolizi v siti.
Mam to nechat tak, nebo to jde nejak vyresit?
Predem diky za odpoved