22.15. ¥Ñ¥é¥ì¥ë¥é¥¤¥ó IP (PLIP)

PLIP ¤Ï¥Ñ¥é¥ì¥ë¥Ý¡¼¥È´Ö¤Ç TCP/IP ÄÌ¿®¤ò²Äǽ¤Ë¤·¤Þ¤¹¡£ ¤³¤ì¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤Î̵¤¤¥Þ¥·¥ó¤ä¥Î¡¼¥È¥Ñ¥½¥³¥ó¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤È¤­¤ËÌò¤ËΩ¤Á¤Þ¤¹¡£ ¤³¤ÎÀá¤Ç¤Ï°Ê²¼¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤Þ¤¹¡£

22.15.1. ¥Ñ¥é¥ì¥ë (¥¯¥í¥¹) ¥±¡¼¥Ö¥ë¤ÎºîÀ®

¥³¥ó¥Ô¥å¡¼¥¿ÍÑÉÊŹ¤Î¤Û¤È¤ó¤É¤Ç¥Ñ¥é¥ì¥ë (¥¯¥í¥¹) ¥±¡¼¥Ö¥ë¤ò¹ØÆþ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£ ¹ØÆþ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤«¡¢ ñ¤Ë¥±¡¼¥Ö¥ë¤¬¤É¤Î¤è¤¦¤Ê¹½Â¤¤Ç¤¢¤ë¤«ÃΤꤿ¤¤¾ì¹ç¤Ï¡¢ ¼¡¤Îɽ¤ËÄ̾ï¤Î¥Ñ¥é¥ì¥ë¥×¥ê¥ó¥¿¥±¡¼¥Ö¥ë¤ò¤â¤È¤ËºîÀ®¤¹¤ëÊýË¡¤¬¼¨¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

表 22-1. ¥Í¥Ã¥È¥ï¡¼¥¯¸þ¤±¤Î¥Ñ¥é¥ì¥ë (¥¯¥í¥¹) ¥±¡¼¥Ö¥ë·ëÀþ

A-̾¾Î A-ü B-ü ÀâÌÀ Post/Bit

DATA0
-ERROR

2
15

15
2

Data

0/0x01
1/0x08

DATA1
+SLCT

3
13

13
3

Data

0/0x02
1/0x10

DATA2
+PE

4
12

12
4

Data

0/0x04
1/0x20

DATA3
-ACK

5
10

10
5

Strobe

0/0x08
1/0x40

DATA4
BUSY

6
11

11
6

Data

0/0x10
1/0x80

GND 18-25 18-25 GND -

22.15.2. PLIP ¤ÎÀßÄê

¤Ï¤¸¤á¤Ë¡¢¥é¥Ã¥×¥ê¥ó¥¯¥±¡¼¥Ö¥ë¤òÆþ¼ê¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ ¼¡¤Ë¡¢Î¾Êý¤Î¥³¥ó¥Ô¥å¡¼¥¿¤Î¥«¡¼¥Í¥ë¤¬ lpt(4) ¥É¥é¥¤¥ÐÂбþ¤Ç¤¢¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£

# grep lp /var/run/dmesg.boot
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port

¥Ñ¥é¥ì¥ë¥Ý¡¼¥È¤Ï³ä¤ê¹þ¤ß¶îÆ°¥Ý¡¼¥È¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£ FreeBSD 4.X ¤Ç¤Ï¡¢ °Ê²¼¤Î¤è¤¦¤Ê¹Ô¤¬¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ëÆâ¤Ë¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Ç¤·¤ç¤¦¡£

device ppc0 at isa? irq 7

FreeBSD 5.X ¤Ç¤Ï /boot/device.hints ¥Õ¥¡¥¤¥ë¤Ë°Ê²¼¤Î¹Ô¤¬¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤Ç¤·¤ç¤¦¡£

hint.ppc.0.at="isa"
hint.ppc.0.irq="7"

¤½¤ì¤«¤é¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥®¥å¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë device plip ¤È¤¤¤¦¹Ô¤¬¤¢¤ë¤«¡¢¤Þ¤¿¤Ï plip.ko ¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤¬Æɤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤É¤Á¤é¤Î¾ì¹ç¤Ç¤â ifconfig(8) ¥³¥Þ¥ó¥É¤òľÀܼ¹Ԥ·¤¿¤È¤­¤Ë¡¢ ¥Ñ¥é¥ì¥ë¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬¸½¤ì¤ë¤Ï¤º¤Ç¤¹¡£ FreeBSD 4.X ¤Ç¤Ï¤³¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

# ifconfig lp0
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500

FreeBSD 5.X ¤Ç¤Ï¤³¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

# ifconfig plip0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500

注意: ¥Ñ¥é¥ì¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ËÂФ·¤ÆÍѤ¤¤é¤ì¤ë¥Ç¥Ð¥¤¥¹Ì¾¤Ï FreeBSD 4.X (lpX) ¤È FreeBSD 5.X (plipX) ´Ö¤Ç°Û¤Ê¤ê¤Þ¤¹¡£

ξÊý¤Î¥³¥ó¥Ô¥å¡¼¥¿¤Î¥Ñ¥é¥ì¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë¥é¥Ã¥×¥ê¥ó¥¯¥±¡¼¥Ö¥ë¤òÀܳ¤·¤Þ¤¹¡£

ξÊý¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥Ñ¥é¥á¡¼¥¿¤ò root ¤ÇÀßÄꤷ¤Þ¤¹¡£ ¤¿¤È¤¨¤Ð¡¢FreeBSD 4.X ¤òÆ°ºî¤µ¤»¤Æ¤¤¤ë host1 ¤È FreeBSD 5.X ¤òÆ°ºî¤µ¤»¤Æ¤¤¤ë host2 ¤Îξ¥Û¥¹¥È¤òÀܳ¤·¤¿¤¤¾ì¹ç¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹¡£

                 host1 <-----> host2
IP Address    10.0.0.1      10.0.0.2

¼¡¤Î¥³¥Þ¥ó¥É¤Ç host1 ¾å¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÀßÄꤷ¤Þ¤¹¡£

# ifconfig lp0 10.0.0.1 10.0.0.2

¼¡¤Î¥³¥Þ¥ó¥É¤Ç host2 ¾å¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÀßÄꤷ¤Þ¤¹¡£

# ifconfig plip0 10.0.0.2 10.0.0.1

¤µ¤Æ¡¢¤³¤ì¤ÇÀܳ¤¬³ÎΩ¤·¤¿¤Ï¤º¤Ç¤¹¡£¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï lp(4) ¤ª¤è¤Ó lpt(4) ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò¤´Í÷¤¯¤À¤µ¤¤¡£

¤µ¤é¤Ë/etc/hosts ¤Ëξ¥Û¥¹¥È¤ò²Ã¤¨¤ë¤È¤è¤¤¤Ç¤·¤ç¤¦¡£

127.0.0.1               localhost.my.domain localhost
10.0.0.1                host1.my.domain host1
10.0.0.2                host2.my.domain

Àܳ¤¬¤¦¤Þ¤¯¤¤¤Ã¤Æ¤¤¤ë¤«³Î¤«¤á¤ë¤¿¤á¤Ë¡¢ ξÊý¤Î¥Û¥¹¥È¾å¤Ç¸ß¤¤¤ò ping ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤¿¤È¤¨¤Ð host1 ¤Ç°Ê²¼¤ò¼Â¹Ô¤·¤Þ¤¹¡£

# ifconfig lp0
lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000
# netstat -r
Routing tables

Internet:
Destination        Gateway          Flags     Refs     Use      Netif Expire
host2              host1              UH          0       0       lp0
# ping -c 4 host2
PING host2 (10.0.0.2): 56 data bytes
64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms

--- host2 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms

ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥­¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç) Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç) Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£