2012-03-24

Slitaz-arm -network


network

1.
# ifconfig lo 127.0.0.1
# ifconfig eth0 10.0.2.15
# route add default gw 10.0.2.2

2.
# ping -c 3 10.0.2.2
PING 10.0.2.2 (10.0.2.2): 56 data bytes
64 bytes from 10.0.2.2: seq=0 ttl=255 time=7.460 ms
64 bytes from 10.0.2.2: seq=1 ttl=255 time=0.308 ms
64 bytes from 10.0.2.2: seq=2 ttl=255 time=0.311 ms

--- 10.0.2.2 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.308/2.693/7.460 ms

3.
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56 
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.0.0.0
          inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:358 (358.0 B)  TX bytes:804 (804.0 B)
          Interrupt:25 DMA chan:ff
.