09/01/16 15:23:21 25FanbBB
>>22
linuxFTPです。
ストレートケーブルで二台のPCを自宅でつなぎ、3つのコマンド
を試してみました。
●一台目の新型PC(192.168.7.1としてます)でのコマンド結果
[My01 ~]$ /sbin/ifconfig | grep -E '^\w|inet'
eth0 Link encap:Ethernet HWaddr gg:hi:jk:lm:no:pq
inet addr:192.168.7.1 Bcast:192.168.7.255 Mask:255.255.255.0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
[My01 ~]$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
abc.def.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
(※a~fは、とある十進数値です)
[My01 ~]$ /sbin/arp -n
[My01 ~]$
(出力がありません。)
[My01 ~]$ ping 192.168.7.2
PING 192.168.7.2 (192.168.7.2) 56(84) bytes of data.
64 bytes from 192.168.7.2: icmp_seq=1 ttl=64 time=0.192 ms
64 bytes from 192.168.7.2: icmp_seq=2 ttl=64 time=0.201 ms
^C
=>二台目の出力に続きます