$ cal ) ( cal $ cal cal cal 1. () ( clear) 2. ( cal) 3. ( man) \() ( ) --() +()

Similar documents
1 Linux UNIX-PC LAN. UNIX. LAN. UNIX. 1.1 UNIX LAN. 1.2 Linux PC Linux. 1.3 studenta odd kumabari studentb even kumabari studentc odd kumabari student

2 1: OSI OSI,,,,,,,,, 4 TCP/IP TCP/IP, TCP, IP 2,, IP, IP. IP, ICMP, TCP, UDP, TELNET, FTP, HTTP TCP IP

ict2-.key

IP 2.2 (IP ) IP 2.3 DNS IP IP DNS DNS 3 (PC) PC PC PC Linux(ubuntu) PC TA 2

untitled

untitled

untitled


tcp/ip.key

2011 I/ 2 1

TCP/IP Internet Week 2002 [2002/12/17] Japan Registry Service Co., Ltd. No.3 Internet Week 2002 [2002/12/17] Japan Registry Service Co., Ltd. No.4 2

IPv4aaSを実現する技術の紹介

第1回 ネットワークとは

tutorial.dvi

IP IP DHCP..

I TCP 1/2 1

untitled

Mac OS X Server QuickTime Streaming Server 5.0 の管理(バージョン 10.3 以降用)

I j

Macintosh HD:Users:ks91:Documents:lect:nm2002s:nm2002s03.dvi

$ ifconfig lo Link encap: inet : : inet6 : ::1/128 : UP LOOPBACK RUNNING MTU:65536 :1 RX :8 :0 :0 :0 :0 TX :8 :0 :0 :0 :0 (Collision

2 PC [1], [2], [3] 2.1 OS 2.1 ifconfig 2.1 lo ifconfig -a 2.1 enp1s0, enx0090cce7c734, lo 3 enp1s0 enx0090cce7c734 PC 2.1 (eth0, eth1) PC 14

第1回 ネットワークとは

Microsoft PowerPoint ppt [互換モード]

i TCP/IP NIC Intel 3com NIC TCP/IP *1 20 IPv4 IPv6 IPv6 TCP/IP TCP/IP *1 3

$ ifconfig lo Link encap: inet : : inet6 : ::1/128 : UP LOOPBACK RUNNING MTU:65536 :1 RX :8 :0 :0 :0 :0 TX :8 :0 :0 :0 :0 (Collision

MFC-8660DN Presto! PageManager TEL/ FAX/

卒研 .PDF

集中講義 インターネットテクノロジー 第5回

GA-1190J

Si-R30取扱説明書

橡c03tcp詳説(3/24修正版).PDF

LSM-L3-24設定ガイド(初版)

r4.dvi

ヤマハ ルーター ファイアウォール機能~説明資料~

2008, 2009 TOSHIBA TEC CORPORATION All rights reserved

2004 SYN/ACK SYN Flood G01P014-6

ohp.mgp

wide94.dvi

ヤマハ ルーター ファイアウォール機能~説明資料~

TCP/IP Protocols and Services

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè1²ó

wide93.dvi

AirMac ネットワーク構成の手引き

untitled

Packet Tracer: 拡張 ACL の設定 : シナリオ 1 トポロジ アドレステーブル R1 デバイスインターフェイス IP アドレスサブネットマスクデフォルトゲートウェイ G0/ N/A G0/

第1回 ネットワークとは

ヤマハルーターのCLI:Command Line Interface

untitled

¥Í¥Ã¥È¥ï¡¼¥¯¥×¥í¥°¥é¥ß¥ó¥°ÆÃÏÀ

AirMac ネットワーク for Windows

RFC2131「Dynamic Host Configuration Protocol」における実装問題点

rzakg.ps

install

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

R70_Software_Manual_JP1.3

IP.dvi

065763J ping ping pw ping % ping -c 5 pw193.cs.ie.u-ryukyu.ac.jp PING pw193.cs.ie.u-ryukyu.ac.jp ( ): 56 data bytes 64 bytes from

RT300/140/105シリーズ 取扱説明書

shibasaki(印刷用)

... 4 HTML IP TC

Flow Control Information Network 1 /

設定例集_Rev.8.03, Rev.9.00, Rev.10.01対応

LSM-L3-24設定ガイド(初版)

FileMaker Instant Web Publishing Guide

LAN

IP IPv4-IPv6

1 IPv6 WG OS SWG PCOSIPv6 Windows Vista 2 3 KAMEUSAGIMacOSX IPv6 2

RT300i/RT140x/RT105i 取扱説明書

IPv6 トラブルシューティング ホームネットワーク/SOHO編

IP Windows Word Excel Web Web Word Excel XHTML CSS Web Windows Word Excel Web XHTML CSS

GA-1200J

untitled

Microsoft Windows, Windows CE, Microsoft Corporation Citrix ICA Citrix Presentation Server Citrix Systems, Inc IBM IBM Corporation

untitled

SRT/RTX/RT設定例集

ルータ(IPv6)掲示用池田.PDF

IT講習会

Agenda IPv4 over IPv6 MAP MAP IPv4 over IPv6 MAP packet MAP Protocol MAP domain MAP domain ASAMAP ASAMAP 2

untitled

Teradici Corporation # Canada Way, Burnaby, BC V5G 4X8 Canada p f Teradici Corporation Teradi

RTX830 取扱説明書

CPE9V1.0&AP615V2.0-C01说明书-电子档

NetLec17TCPIP1.ppt

untitled

wide95.dvi

Logitec NAS シリーズ ソフトウェアマニュアル

橡sirahasi.PDF

Logitec NAS シリーズ ソフトウェアマニュアル

IPv6における

試験問題での表記規格 標準の名称験午前Ⅱ 問題文中で共通に使用される表記ルール 各問題文中に注記がない限り, 次の表記ルールが適用されているものとする. JIS Q 9001 JIS Q JIS Q JIS Q JIS Q JIS Q 2700

Microsoft PowerPoint f-InternetOperation04.ppt

Si-R180 ご利用にあたって

system02.dvi

10/ / /30 3. ( ) 11/ 6 4. UNIX + C socket 11/13 5. ( ) C 11/20 6. http, CGI Perl 11/27 7. ( ) Perl 12/ 4 8. Windows Winsock 12/11 9. JAV

UsersGuide_INR-HG5497c_.doc

FileMaker Instant Web Publishing Guide

08+11Extra

Si-R30取扱説明書

owners.book

Transcription:

5 5 5.1 kernel UNIX OS (...) shell ( ) 5: UNIX: UNIXpp.133-134 UNIX UNIX Mac OS X $ % $ bash(bourne again shell)% tcsh() 5.2 5.2.1 5.1 clear $ clear 5.2 cal CLEAR $ cal CALender 5.2.2 1 cat /etc/shells cat /etc/shells 19

5.2 5 5.3 1 $ cal ) ( cal 1987 1987 1987 2 5.4 2 $ cal cal 8 1987 1987 8 8 1987 cal 1. () ( clear) 2. ( cal) 3. ( man) \() 5.2.3 -( ) --() +() 1 5.5 1 $ cal -y -y 5.1 -j cal $ cal -j man JM Project http://www.linux.or.jp/jm/ search 5.2 $ hexdump -C a-iso-2022-jp.txt 20

5.3 5 5.3 5.3.1 () ( Ctrl + P ) 1 ( Ctrl + N ) history $ history 1136 12:10 cal -j 1136 cal -j 12:10 history ( 10) 10 n $!n 5.3.2 del 5.3.3 tcsh bash bash TAB (completion) 2 TAB 5.6 TAB 21

5.4 5 $ h TAB TAB h2ph hdiutil hexdump hostname h2xs hdxml2manxml hfspax hpcdtoppm halt head hipstopgm hpftodit hash headerdoc2html history htdigest hdid heap hlfsd htmllint hdifftopam help host htpasswd hdik help2man hostinfo httpd $ ho TAB $ host TAB TAB host hostinfo hostname $ host $ hostn TAB $ hostname return Rosenblatt.cis.twcu.ac.jp ho host hostinfo hostname ho TAB host host TAB 2 host hostn TAB hostname 5.4 8 HTML Word 5.5 5.5.1 () cat 8 Word 64 ( 62 +/) 22

5.5 5 $ < $ > () File exists. $ >> $ < > $ echo > tmp.txt tmp.txt 5.7 cat echo 23

5.5 5 $ cd Desktop $ echo This is a string. > file1.txt 1 $ cat file1.txt 2 This is a string. $ echo This is an another string. >> file1.txt 3 $ cat file1.txt 4 This is a string. This is an another string. $ cat > file2.txt 5 This is a test string. Ctrl + C $ cat file2.txt 6 This is a test string. $ cat file1.txt file2.txt 7 This is a string. This is an another string. This is a test string. $ cat file1.txt >> file2.txt 8 $ cat file2.txt 9 This is a test string. This is a string. This is another string. 1 This is a string. file1.txt 2 4 file1.txt 3 This is an another string. file1.txt 5 file2.txt Ctrl + C ( C ) 6 file2.txt 11 7 file1.txt file2.txt 8 file2.txt file1.txt 5.3 1. 5.7 Desktop Finder 2. Finder () 5.4 5.7 5.5.2 (pipeline) $ 1 2 24

5.5 5 1 2 () $ cat lv lv 1 $ ls -l /usr/bin lv /usr/bin/ lv 1 $ ps aux grep asakawa lv asakawa lv 1 25

6 6 6.1 URL URL(Universal Resource Locator) URL URI URL URL :/ / http://www.cis.twcu.ac.jp/~asakawa/index.html http www.cis.twcu.ac.jp ~asakawa index.html telnet 80 $ telnet www.cis.twcu.ac.jp 80 GET /~asakawa/index.html HTTP/1.0 Host: www.cis.twcu.ac.jp http HTTP/1.1 200 OK Date: Sun, 19 Oct 2008 15:14:56 GMT Server: Apache/2.0.52 (Red Hat) mod_ssl/2.0.52 OpenSSL/0.9.7a DAV/2 Last-Modified: Sun, 28 Sep 2008 08:16:00 GMT ETag: "b5a160fe-37ae-5c59d000" Accept-Ranges: bytes Content-Length: 14254 Connection: close Content-Type: text/html <?xml version="1.0" encoding="iso-2022-jp"?> 1 HTTP/1.1 200 OK Safari, Firefox, Opera, IE 6.2 IP IP 1. NIC 2. 32 8 10 3. 32 26

6.2 IP 6 URL IP host IP $ $ host www.twcu.ac.jp www.twcu.ac.jp has address 202.11.169.2 www.twcu.ac.jp is an alias for Dover.twcu.ac.jp. www.twcu.ac.jp is an alias for Dover.twcu.ac.jp. www.twcu.ac.jp IP 202.11.169.2 Dover.twcu.ac.jp (alias) http://www.twcu.ac.jp http://202.11.169.2 http://dover.twcu.ac.jp IP 9 IP IPv4 10 IPv6 11 6.1 1. IPv4 2. IPv6 3. IPv6 IP 4 (32 ) IP IPv4 IP 10 192.168.0.1 1 6.2.1 IP adress 5 6: IP ID ID A 0.0.0.0-127.255.255.255 8 bits 24 bits B 128.0.0.0-191.255.255.255 16 bits 16 bits C 192.0.0.0-223.255.255.255 24 bits 8 bits D 224.0.0.0-239.255.255.255 E 240.0.0.0-255.255.255.255 IP 3 A 2 24 7 ID 24 ID B 2 8 2 16 9 10 11 32 2 32 = 4294967296 128 2 128 27

6.2 IP 6 ID 14 ID 16 C 2 8 21 ID Class A (0.x.x.x - 127.x.x.x) 0 network part host part Class B (128.x.x.x - 191.255.x.x) 1 0 network part host part Class C (192.0.0.x - 223.255.255.x) 1 1 0 network part host part 2: OSI host DNS (Domain Name Service) ifconfig 6.2 1. IP 2. 3. 4. IP 5. 6. 7. (ex. ) IP 6.2.2 IP IP IP IP IP ICANN(The Internet Corporation for Assigned Names and Numbers) 12 JPNIC( ) 6.2.3 IP IP IP 12 IP 28

6.3 ping 6 6.3 1. www.twcu.ac.jp IP 2. www.kantei.go.jp IP 3. www.google.com IP IP 7 7: IP A 10.0.0.0-10.255.255.255 8 bits B 172.16.0.0-172.31.255.255 16 bits C 192.168.0.0-192.168.255.255 24 bits 6.2.4 NAT NAT(Network Address Translation) IP IP IP 6.3 ping ping ping Web ping ping C $ ping www.twcu.ac.jp PING Dover.twcu.ac.jp (202.11.169.2): ^C --- Dover.twcu.ac.jp ping statistics --- 56 data bytes 2 packets transmitted, 0 packets received, 100% packet loss $ ping www.cis.twcu.ac.jp PING www.cis.twcu.ac.jp (202.11.172.2): ^C --- www.cis.twcu.ac.jp ping statistics --- 1 packets transmitted, 0 packets received, 100$ 56 data bytes 29

6.4 traceroute 6 $ ping www.google.com PING www.l.google.com (66.249.89.147): 56 data bytes 64 bytes from 66.249.89.147: icmp seq=0 ttl=245 time=9.226 ms 64 bytes from 66.249.89.147: icmp seq=1 ttl=245 time=9.021 ms 64 bytes from 66.249.89.147: icmp seq=2 ttl=245 time=9.167 ms ^C $ 6.4 --- www.l.google.com ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 9.021/9.138/9.226/0.086 ms 1. ping 2. ping 6.4 traceroute traceroute 13 traceroute $ traceroute www.google.com traceroute: Warning: www.google.com has multiple addresses; using 66.249.89.147 traceroute to www.l.google.com (66.249.89.147), 64 hops max, 40 byte packets 1 web.setup (192.168.0.1) 0.926 ms 0.494 ms 0.495 ms 2 KHP059143055033.ppp-bb.dion.ne.jp (59.143.55.33) 7.000 ms 7.005 ms 6.977 ms 3 sjkbbml11.bb.kddi.ne.jp (222.227.16.158) 8.429 ms 7.516 ms 7.580 ms 4 sjkbbac01.bb.kddi.ne.jp (222.227.2.193) 13.672 ms 13.355 ms 10.587 ms 5 sjkbbac05.bb.kddi.ne.jp (125.53.98.69) 7.670 ms 7.619 ms 7.536 ms 6 otejbb203.kddnet.ad.jp (210.234.225.81) 8.074 ms 7.870 ms 7.913 ms 7 ix-ote208.kddnet.ad.jp (59.128.7.138) 15.637 ms 8.395 ms 13.705 ms 8 203.181.102.78 (203.181.102.78) 8.282 ms 203.181.102.106 (203.181.102.106) 8.673 ms 203.181.102.78 (203.181.102.78) 8.224 ms 9 209.85.241.86 (209.85.241.86) 8.713 ms 84.635 ms 8.631 ms 10 216.239.47.54 (216.239.47.54) 18.638 ms 20.784 ms 18.032 ms 11 jp-in-f147.google.com (66.249.89.147) 9.378 ms 9.461 ms 9.995 ms 6.5 MAC MAC 6 bytes(48 bits) 3 bytes(24 bits) 3 bytes 13 Windows tracert 30

6.6 arp 6 MAC ifconfig Windows ipconfig /all 6.6 arp ARP Address Resolution Protocol arp MAC $ arp -a? (10.101.0.17) at (incomplete) on en1 [ethernet]? (10.101.0.18) at 0:4:23:d8:b7:4e on en1 [ethernet]? (10.101.0.254) at 0:1a:30:ce:2:0 on en1 [ethernet] cheverny.cis.twcu.ac.jp (202.11.172.1) at 0:50:56:b1:30:44 on en0 [ethernet] marksburg.cis.twcu.ac.jp (202.11.172.5) at 0:50:56:b1:62:ac on en0 [ethernet] 254.172.11.202.twcu.ac.jp (202.11.172.254) at 0:1b:2a:e:fe:80 on en0 [ethernet] IP IP TCP/IP IP (MAC ) ARP IP MAC TCP/IP (MAC ) 6.7 netstat netstat 6.8 6.8.1 OSI ISO (International Organization for Standardization, ) OSI (Open Systems Interconnection) 1. 2. 3. 4. 5. 31

6.8 6 OSI reference model Application Layer Presentation Layer Session Layer Transport Layer Network Layer Data Link Layer Physical Layer 3: OSI 8: OSI Layer end to end 6. 7. 6.8.2 TCP/IP TCP(Transmission Control Protocol), IP (Internet Protocol) OSI reference model IP Internet address IP: Internet Protocol host datagram ICMP: Internet Control Message Protocol ARP: Address Resolution Protocol TCP IP virtual circut TCP IP address 32

6.8 6 OSI reference model Application Layer Presentation Layer TCP/IP protocol suits Telnet, ftp, smtp, http, DNS, NFS, etc Session Layer Transport Layer Network Layer Data Link Layer Physical Layer TCP, UDP IP (ICMP,ARP) Ethernet FDDI ISDN, etc 4: OSI Upper Layer Protocol Session, presentation, and application Layer Data TCP segment Transport Layer 20-24 65K(Maximum) TCP Header Data Part IP Packet Network Layer 24 IP Header 16-1518 Data Part Ethernet Frame DataLink Layer 6 Destination address 6 source address Ethernet Header 2 t y p e 46-1500 Data Part 4 check sum UDP, RARP, FTP, TFTP, SMTP, NTP, NNTP, BOOTP, RIP, OSPF, DHCP RFC RFC 1543 Instructions to RFC Authors 6.5 1. telnet 2. ftp 3. snmp 4. http 5. pop3 33

6.8 6 0 4 8 16 31 version IHL Type of Service Total Length Flagment Identification Flags Fragment Offset TTL Protocol Header Checksum Source Address Destination Address Options Padding 5: IP header 0 4 8 16 31 Source Port Destination Port Sequence Number Acknowledgment Number Data Offset Reseved Flags Window Control Checksum Urgent Pointer Options 6: TCP header 34