root@slax:~# ifconfig eth0 10.1.144.101 netmask 255.0.0.0
root@slax:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:7D:A6:15:82
inet addr:10.1.144.101 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::2e0:7dff:fea6:1582/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:496 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44097 (43.0 Kb) TX bytes:1648 (1.6 Kb)
Interrupt:11 Base address:0xc400
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: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)
root@slax:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
root@slax:~# route add default gw 10.1.144.1
root@slax:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.1.144.1 0.0.0.0 UG 0 0 0 eth0
root@slax:~# ping 10.20.0.120 //access point w sieci lan
PING 10.20.0.120 (10.20.0.120) 56(84) bytes of data.
64 bytes from 10.20.0.120: icmp_seq=1 ttl=64 time=36.3 ms
64 bytes from 10.20.0.120: icmp_seq=2 ttl=64 time=6.94 ms
64 bytes from 10.20.0.120: icmp_seq=3 ttl=64 time=4.87 ms
64 bytes from 10.20.0.120: icmp_seq=4 ttl=64 time=6.42 ms
64 bytes from 10.20.0.120: icmp_seq=5 ttl=64 time=6.16 ms
64 bytes from 10.20.0.120: icmp_seq=6 ttl=64 time=5.41 ms
[1]+ Stopped ping 10.20.0.120
root@slax:~# ping 212.72.187.2 //www.linezeus.gr
PING 212.72.187.2 (212.72.187.2) 56(84) bytes of data.
[2]+ Stopped ping 212.72.187.2
root@slax:~# cat /etc/resolv.conf
search example.net
root@slax:~# mcedit /etc/resolv.conf
root@slax:~# cat /etc/resolv.conf
nameserver 10.1.144.1root@slax:~#
// dlaczego po IP wysmietla mi sie root@slax:~# podczas uzycie cat do czytania resolv.conf, skoro w mcedit wpisalem tylko nameserver 10.1.144.1 ?
root@slax:~# ping 10.20.0.120
PING 10.20.0.120 (10.20.0.120) 56(84) bytes of data.
64 bytes from 10.20.0.120: icmp_seq=1 ttl=64 time=11.0 ms
64 bytes from 10.20.0.120: icmp_seq=2 ttl=64 time=6.29 ms
64 bytes from 10.20.0.120: icmp_seq=3 ttl=64 time=8.11 ms
[3]+ Stopped ping 10.20.0.120
root@slax:~# ping 212.72.187.2
PING 212.72.187.2 (212.72.187.2) 56(84) bytes of data.
[4]+ Stopped ping 212.72.187.2
root@slax:~# ping
www.google.plPING
www.l.google.com (66.249.85.99) 56(84) bytes of data.
[5]+ Stopped ping
www.google.plroot@slax:~#
wiec gdzie jest moj glupi blad? help pliz. thx za cierpliwosc
![Wink ;)](http://forum.linux.pl/Smileys/default/wink.gif)