Vous êtes sur la page 1sur 8

[root@localhost root]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.242.201  Bcast:10.252.242.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3676 errors:0 dropped:0 overruns:0 frame:0
          TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:282915 (276.2 Kb)  TX bytes:10648 (10.3 Kb)
          Interrupt:11 Base address:0x6c00
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24257 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24257 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1655990 (1.5 Mb)  TX bytes:1655990 (1.5 Mb)
 
[root@localhost root]# ifconfig eth0 192.168.20.4 netmask 255.255.0.0 broadcast
192.168.255.255 up
[root@localhost root]# ping 192.168.20.5
PING 192.168.20.5 (192.168.20.5) 56(84) bytes of data.
64 bytes from 192.168.20.5: icmp_seq=1 ttl=128 time=0.285 ms
64 bytes from 192.168.20.5: icmp_seq=2 ttl=128 time=0.189 ms
64 bytes from 192.168.20.5: icmp_seq=3 ttl=128 time=0.183 ms
64 bytes from 192.168.20.5: icmp_seq=4 ttl=128 time=0.196 ms
64 bytes from 192.168.20.5: icmp_seq=5 ttl=128 time=0.211 ms
64 bytes from 192.168.20.5: icmp_seq=6 ttl=128 time=0.189 ms
64 bytes from 192.168.20.5: icmp_seq=7 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=8 ttl=128 time=0.195 ms
64 bytes from 192.168.20.5: icmp_seq=9 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=10 ttl=128 time=0.184 ms
64 bytes from 192.168.20.5: icmp_seq=11 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=12 ttl=128 time=0.196 ms
64 bytes from 192.168.20.5: icmp_seq=13 ttl=128 time=0.182 ms
64 bytes from 192.168.20.5: icmp_seq=14 ttl=128 time=0.196 ms
64 bytes from 192.168.20.5: icmp_seq=15 ttl=128 time=0.199 ms
64 bytes from 192.168.20.5: icmp_seq=16 ttl=128 time=0.187 ms
64 bytes from 192.168.20.5: icmp_seq=17 ttl=128 time=0.181 ms
64 bytes from 192.168.20.5: icmp_seq=18 ttl=128 time=0.173 ms
64 bytes from 192.168.20.5: icmp_seq=19 ttl=128 time=0.189 ms
64 bytes from 192.168.20.5: icmp_seq=20 ttl=128 time=0.185 ms
64 bytes from 192.168.20.5: icmp_seq=21 ttl=128 time=0.179 ms
64 bytes from 192.168.20.5: icmp_seq=22 ttl=128 time=0.182 ms
64 bytes from 192.168.20.5: icmp_seq=23 ttl=128 time=0.195 ms
 
­­­ 192.168.20.5 ping statistics ­­­
23 packets transmitted, 23 received, 0% packet loss, time 21997ms
rtt min/avg/max/mdev = 0.173/0.193/0.285/0.027 ms
[root@localhost root]# ping 192.168.20.5
PING 192.168.20.5 (192.168.20.5) 56(84) bytes of data.
64 bytes from 192.168.20.5: icmp_seq=1 ttl=128 time=0.294 ms
64 bytes from 192.168.20.5: icmp_seq=2 ttl=128 time=0.199 ms
64 bytes from 192.168.20.5: icmp_seq=3 ttl=128 time=0.193 ms
64 bytes from 192.168.20.5: icmp_seq=4 ttl=128 time=0.191 ms
64 bytes from 192.168.20.5: icmp_seq=5 ttl=128 time=0.192 ms
64 bytes from 192.168.20.5: icmp_seq=6 ttl=128 time=0.195 ms
64 bytes from 192.168.20.5: icmp_seq=7 ttl=128 time=0.180 ms
64 bytes from 192.168.20.5: icmp_seq=8 ttl=128 time=0.189 ms
64 bytes from 192.168.20.5: icmp_seq=9 ttl=128 time=0.199 ms
64 bytes from 192.168.20.5: icmp_seq=10 ttl=128 time=0.187 ms
64 bytes from 192.168.20.5: icmp_seq=11 ttl=128 time=0.197 ms
64 bytes from 192.168.20.5: icmp_seq=12 ttl=128 time=0.188 ms
64 bytes from 192.168.20.5: icmp_seq=13 ttl=128 time=0.193 ms
64 bytes from 192.168.20.5: icmp_seq=14 ttl=128 time=0.191 ms
64 bytes from 192.168.20.5: icmp_seq=15 ttl=128 time=0.202 ms
64 bytes from 192.168.20.5: icmp_seq=16 ttl=128 time=0.184 ms
64 bytes from 192.168.20.5: icmp_seq=17 ttl=128 time=0.186 ms
64 bytes from 192.168.20.5: icmp_seq=18 ttl=128 time=0.190 ms
64 bytes from 192.168.20.5: icmp_seq=19 ttl=128 time=0.192 ms
64 bytes from 192.168.20.5: icmp_seq=20 ttl=128 time=0.197 ms
64 bytes from 192.168.20.5: icmp_seq=21 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=22 ttl=128 time=0.193 ms
64 bytes from 192.168.20.5: icmp_seq=23 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=24 ttl=128 time=0.196 ms
64 bytes from 192.168.20.5: icmp_seq=25 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=26 ttl=128 time=0.192 ms
64 bytes from 192.168.20.5: icmp_seq=27 ttl=128 time=0.199 ms
64 bytes from 192.168.20.5: icmp_seq=28 ttl=128 time=0.193 ms
64 bytes from 192.168.20.5: icmp_seq=29 ttl=128 time=0.206 ms
64 bytes from 192.168.20.5: icmp_seq=30 ttl=128 time=0.197 ms
64 bytes from 192.168.20.5: icmp_seq=31 ttl=128 time=0.201 ms
64 bytes from 192.168.20.5: icmp_seq=32 ttl=128 time=0.200 ms
64 bytes from 192.168.20.5: icmp_seq=33 ttl=128 time=0.185 ms
64 bytes from 192.168.20.5: icmp_seq=34 ttl=128 time=0.202 ms
64 bytes from 192.168.20.5: icmp_seq=35 ttl=128 time=0.185 ms
64 bytes from 192.168.20.5: icmp_seq=36 ttl=128 time=0.181 ms
64 bytes from 192.168.20.5: icmp_seq=37 ttl=128 time=0.200 ms
64 bytes from 192.168.20.5: icmp_seq=38 ttl=128 time=0.191 ms
64 bytes from 192.168.20.5: icmp_seq=39 ttl=128 time=0.200 ms
64 bytes from 192.168.20.5: icmp_seq=40 ttl=128 time=0.206 ms
64 bytes from 192.168.20.5: icmp_seq=41 ttl=128 time=0.203 ms
64 bytes from 192.168.20.5: icmp_seq=42 ttl=128 time=0.196 ms
64 bytes from 192.168.20.5: icmp_seq=43 ttl=128 time=0.204 ms
64 bytes from 192.168.20.5: icmp_seq=44 ttl=128 time=0.197 ms
64 bytes from 192.168.20.5: icmp_seq=45 ttl=128 time=0.188 ms
64 bytes from 192.168.20.5: icmp_seq=46 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=47 ttl=128 time=0.184 ms
64 bytes from 192.168.20.5: icmp_seq=48 ttl=128 time=0.187 ms
64 bytes from 192.168.20.5: icmp_seq=49 ttl=128 time=0.197 ms
64 bytes from 192.168.20.5: icmp_seq=50 ttl=128 time=0.181 ms
64 bytes from 192.168.20.5: icmp_seq=51 ttl=128 time=0.195 ms
64 bytes from 192.168.20.5: icmp_seq=52 ttl=128 time=0.174 ms
64 bytes from 192.168.20.5: icmp_seq=53 ttl=128 time=0.195 ms
64 bytes from 192.168.20.5: icmp_seq=54 ttl=128 time=0.205 ms
64 bytes from 192.168.20.5: icmp_seq=55 ttl=128 time=0.181 ms
64 bytes from 192.168.20.5: icmp_seq=56 ttl=128 time=0.195 ms
64 bytes from 192.168.20.5: icmp_seq=57 ttl=128 time=0.187 ms
64 bytes from 192.168.20.5: icmp_seq=58 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=59 ttl=128 time=0.177 ms
64 bytes from 192.168.20.5: icmp_seq=60 ttl=128 time=0.191 ms
64 bytes from 192.168.20.5: icmp_seq=61 ttl=128 time=0.178 ms
64 bytes from 192.168.20.5: icmp_seq=62 ttl=128 time=0.173 ms
64 bytes from 192.168.20.5: icmp_seq=63 ttl=128 time=0.190 ms
64 bytes from 192.168.20.5: icmp_seq=64 ttl=128 time=0.194 ms
64 bytes from 192.168.20.5: icmp_seq=65 ttl=128 time=0.193 ms
 
­­­ 192.168.20.5 ping statistics ­­­
65 packets transmitted, 65 received, 0% packet loss, time 63992ms
rtt min/avg/max/mdev = 0.173/0.193/0.294/0.023 ms
[root@localhost root]# cd /proc/sys/net/ipv4/
[root@localhost ipv4]# ls
conf                               ip_local_port_range    tcp_mem
icmp_echo_ignore_all               ip_nonlocal_bind       tcp_orphan_retries
icmp_echo_ignore_broadcasts        ip_no_pmtu_disc        tcp_reordering
icmp_ignore_bogus_error_responses  neigh                  tcp_retrans_collapse
icmp_ratelimit                     route                  tcp_retries1
icmp_ratemask                      tcp_abort_on_overflow  tcp_retries2
igmp_max_memberships               tcp_adv_win_scale      tcp_rfc1337
inet_peer_gc_maxtime               tcp_app_win            tcp_rmem
inet_peer_gc_mintime               tcp_dsack              tcp_sack
inet_peer_maxttl                   tcp_ecn                tcp_stdurg
inet_peer_minttl                   tcp_fack               tcp_synack_retries
inet_peer_threshold                tcp_fin_timeout        tcp_syncookies
ip_autoconfig                      tcp_frto               tcp_syn_retries
ip_default_ttl                     tcp_keepalive_intvl    tcp_timestamps
ip_dynaddr                         tcp_keepalive_probes   tcp_tw_recycle
ip_forward                         tcp_keepalive_time     tcp_tw_reuse
ipfrag_high_thresh                 tcp_max_orphans        tcp_window_scaling
ipfrag_low_thresh                  tcp_max_syn_backlog    tcp_wmem
ipfrag_time                        tcp_max_tw_buckets
[root@localhost ipv4]# cat ip_forward
0
[root@localhost ipv4]# cat 1 > ip_forward
cat: 1: No such file or directory
[root@localhost ipv4]# cat 1 > /proc/sys/net/ipv4/ip_forward
cat: 1: No such file or directory
[root@localhost ipv4]# echo 1 > /proc/sys/net/ipv4/ip_forward
[root@localhost ipv4]# cat  /proc/sys/net/ipv4/ip_forward
1
[root@localhost ipv4]# ifconfig eth0 down
[root@localhost ipv4]# ifconfig eth0 10.252.20.2/24 broadcast 10.252.20.255 up
[root@localhost ipv4]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.20.2  Bcast:10.252.20.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11859 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8282794 (7.8 Mb)  TX bytes:7819357 (7.4 Mb)
          Interrupt:11 Base address:0x6c00
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:45929 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45929 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3044771 (2.9 Mb)  TX bytes:3044771 (2.9 Mb)
 
[root@localhost ipv4]# ifconfig eth0 10.252.20.2 netmask 255.255.255.0 broadcast 10.252.20.255 
up
[root@localhost ipv4]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.20.2  Bcast:10.252.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11909 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8285794 (7.9 Mb)  TX bytes:7819357 (7.4 Mb)
          Interrupt:11 Base address:0x6c00
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:46321 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46321 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3069488 (2.9 Mb)  TX bytes:3069488 (2.9 Mb)
 
[root@localhost ipv4]# ifconfig eth0:1 10.252.30.2 netmask 255.255.255.0 broadcast 10.252.30.255 
up
[root@localhost ipv4]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.20.2  Bcast:10.252.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8295346 (7.9 Mb)  TX bytes:7819357 (7.4 Mb)
          Interrupt:11 Base address:0x6c00
 
eth0:1    Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.30.2  Bcast:10.252.30.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12065 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5462 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8295346 (7.9 Mb)  TX bytes:7819357 (7.4 Mb)
          Interrupt:11 Base address:0x6c00
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:47385 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47385 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3136577 (2.9 Mb)  TX bytes:3136577 (2.9 Mb)
 
[root@localhost ipv4]# route ­n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.252.30.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.252.20.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
[root@localhost ipv4]# ping 10.252.30.1
PING 10.252.30.1 (10.252.30.1) 56(84) bytes of data.
From 10.252.30.2 icmp_seq=1 Destination Host Unreachable
From 10.252.30.2 icmp_seq=2 Destination Host Unreachable
From 10.252.30.2 icmp_seq=3 Destination Host Unreachable
 
­­­ 10.252.30.1 ping statistics ­­­
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4066ms
, pipe 3
[root@localhost ipv4]# ping 10.252.20.1
PING 10.252.20.1 (10.252.20.1) 56(84) bytes of data.
From 10.252.20.2 icmp_seq=1 Destination Host Unreachable
From 10.252.20.2 icmp_seq=2 Destination Host Unreachable
From 10.252.20.2 icmp_seq=3 Destination Host Unreachable
From 10.252.20.2 icmp_seq=4 Destination Host Unreachable
From 10.252.20.2 icmp_seq=5 Destination Host Unreachable
From 10.252.20.2 icmp_seq=6 Destination Host Unreachable
 
­­­ 10.252.20.1 ping statistics ­­­
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6087ms
, pipe 3
[root@localhost ipv4]# ping 10.252.20.4
PING 10.252.20.4 (10.252.20.4) 56(84) bytes of data.
From 10.252.20.2 icmp_seq=1 Destination Host Unreachable
From 10.252.20.2 icmp_seq=2 Destination Host Unreachable
From 10.252.20.2 icmp_seq=3 Destination Host Unreachable
From 10.252.20.2 icmp_seq=4 Destination Host Unreachable
From 10.252.20.2 icmp_seq=5 Destination Host Unreachable
From 10.252.20.2 icmp_seq=6 Destination Host Unreachable
From 10.252.20.2 icmp_seq=7 Destination Host Unreachable
From 10.252.20.2 icmp_seq=8 Destination Host Unreachable
From 10.252.20.2 icmp_seq=9 Destination Host Unreachable
From 10.252.20.2 icmp_seq=10 Destination Host Unreachable
From 10.252.20.2 icmp_seq=11 Destination Host Unreachable
From 10.252.20.2 icmp_seq=12 Destination Host Unreachable
From 10.252.20.2 icmp_seq=13 Destination Host Unreachable
From 10.252.20.2 icmp_seq=14 Destination Host Unreachable
From 10.252.20.2 icmp_seq=15 Destination Host Unreachable
From 10.252.20.2 icmp_seq=16 Destination Host Unreachable
From 10.252.20.2 icmp_seq=17 Destination Host Unreachable
From 10.252.20.2 icmp_seq=18 Destination Host Unreachable
From 10.252.20.2 icmp_seq=19 Destination Host Unreachable
From 10.252.20.2 icmp_seq=20 Destination Host Unreachable
From 10.252.20.2 icmp_seq=21 Destination Host Unreachable
 
­­­ 10.252.20.4 ping statistics ­­­
23 packets transmitted, 0 received, +21 errors, 100% packet loss, time 22218ms
, pipe 3
[root@localhost ipv4]# ping 10.252.20.1
PING 10.252.20.1 (10.252.20.1) 56(84) bytes of data.
From 10.252.20.2 icmp_seq=1 Destination Host Unreachable
From 10.252.20.2 icmp_seq=2 Destination Host Unreachable
From 10.252.20.2 icmp_seq=3 Destination Host Unreachable
 
­­­ 10.252.20.1 ping statistics ­­­
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4014ms
, pipe 3
[root@localhost ipv4]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.20.2  Bcast:10.252.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12443 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5507 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8325457 (7.9 Mb)  TX bytes:7822057 (7.4 Mb)
          Interrupt:11 Base address:0x6c00
 
eth0:1    Link encap:Ethernet  HWaddr 00:50:BA:62:8D:52
          inet addr:10.252.30.2  Bcast:10.252.30.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12443 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5507 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:8325457 (7.9 Mb)  TX bytes:7822057 (7.4 Mb)
          Interrupt:11 Base address:0x6c00
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:49603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49603 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3278422 (3.1 Mb)  TX bytes:3278422 (3.1 Mb)
 
[root@localhost ipv4]# ifconfig eth0 down
[root@localhost ipv4]# ifconfig eth0 10.252.20.2 netmask 255.255.255.0 broadcast 10.252.20.255 
up
[root@localhost ipv4]# ifconfig eth0:1 10.252.30.2 netmask 255.255.255.0 broadcast 10.252.30.255 
up
[root@localhost ipv4]# cd /mnt/
[root@localhost mnt]# ls
[root@localhost mnt]# mkdir usb
[root@localhost mnt]# mount ­t vfat /dev/sda /mnt/usb
mount: /dev/sda is not a valid block device
[root@localhost mnt]# mount ­t vfat /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device
[root@localhost mnt]# tail ­f /var/log/messages
Mar 14 10:22:27 localhost kernel: usb­uhci.c: interrupt, status 2, frame# 1342
Mar 14 10:22:28 localhost kernel: usb_control/bulk_msg: timeout
Mar 14 10:22:28 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Mar 14 10:22:28 localhost kernel: USB Mass Storage support registered.
Mar 14 10:22:28 localhost kernel: hub.c: already running port 2 disabled by hub
(EMI?), re­enabling...
Mar 14 10:22:28 localhost kernel: usb.c: USB disconnect on device 00:1f.2­2 address 2
Mar 14 10:22:32 localhost devlabel: devlabel service started/restarted
Mar 14 10:22:32 localhost kernel: hub.c: Cannot enable port 2 of hub 1, disabling port.
Mar 14 10:22:32 localhost kernel: hub.c: Maybe the USB cable is bad?
Mar 14 10:22:32 localhost devlabel: devlabel service started/restarted
Mar 14 10:23:36 localhost kernel: hub.c: new USB device 00:1f.2­2, assigned address 3
Mar 14 10:23:39 localhost /etc/hotplug/usb.agent: Setup usb­storage for USB product 930/6532/100
Mar 14 10:23:41 localhost devlabel: devlabel service started/restarted
 

Vous aimerez peut-être aussi