$ 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

Similar documents
$ 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

IP... 2 IP... 2 IP... 2 IP... 2 VLAN... 3 IP ADD IP IPADDRESS... 5 DELETE IP... 7 PING SETIP SHOW IP IP CentreCOM FS9

install

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

I j

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

6.2 基本的なネットワーク構成 6.2 基本的なネットワーク構成 このトピックではネットワークの基本的な設定ファイルやコマンドの使用法ついて出題されます 例題 NIC に設定されている IP アドレスを確認するコマンドを選択せよ A) traceroute B) route C) ifconfig

MFC-8660DN Presto! PageManager TEL/ FAX/

wide95.dvi

Agenda /etc/network/interfaces とは? interfaces ファイルの構造 stanza の種類実設定ファイル紹介 1/40

Cumulus Linux MLAG と vsphere vds の LACP 接続検証

untitled

00.目次_ope

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

スライド 1

ict2-.key

第1回 ネットワークとは

破損した CIMC ファームウェアの復旧

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

D-Link DWL-3500AP/DWL-8500AP 設定ガイド

tcp/ip.key

_JANOG44_LINE_tsuchiya

VLAN.dvi

TELNET SNMPv1 RMON Ping TELNET 8 SH4124T IP/TCP/UDP/ARP/ICMP TFTP Bridge MIBRFC 1493 MIB-IIRFC 1213 RMON MIBRFC p MIBRFC Q MIBRFC

VyattaでのPPPoEとNetwork emulator

R70_Software_Manual_JP1.3

目次 1 Raspberry Pi の初期設定... 2 System 設定... 3 Interfaces 設定... 4 Localisation 設定 無線 LAN の設定... 7 GUI での設定... 7 CUI での設定 PC の設定 Bonjo

Microsoft Word - jikkenIII2016-(5)-2

Cisco Small Business シリーズ スマート スイッチ アドミニストレーション ガイド

FS900S_B

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

nakayama15icm01_l7filter.pptx

目次 1) コンソール使用について注意 ) 全体の流れ ) SSH キーの登録 ) Linux サーバーの作成... 4 Web サーバーへの Apache と WordPress インストール... 5 DB サーバーへの MariaDB インストール 設定..

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

IP IP DHCP..

完成卒論.PDF

Microsoft PowerPoint ppt [互換モード]

LAN

untitled

FW Migration Guide(ipsec1)

FW Migration Guide(ipsec2)

IGMPS.dvi

JANOG14-コンバージェンスを重視したMPLSの美味しい使い方

Flow Control Information Network 1 /

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

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

IP IP MTU Maximum Transfer Unit MTU MTU [2] i

KCB-3WL User’s MAnual

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

Microsoft Word - PSM_Mig_FAS_16209.doc

IIJ Technical WEEK IIJのバックボーンネットワーク運用

ppt

IP.dvi

IPv6 リンクローカル アドレスについて

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

HP ProCurveSwitchはじめて.ppt

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


IIJ Technical WEEK SEILシリーズ開発動向:IPv6対応の現状と未来


untitled

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

Transcription:

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

$ ifconfig lo Link encap: inet :127.0.0.1 :255.0.0.0 inet6 : ::1/128 : UP LOOPBACK RUNNING MTU:65536 :1 RX :8 :0 :0 :0 :0 TX :8 :0 :0 :0 :0 (Collisions):0 TX :0 RX :696 (696.0 B) TX :696 (696.0 B) $ ifconfig -a eth0 Link encap: 00:0c:29:4a:9c:a7 BROADCAST MULTICAST MTU:1500 :1 RX :0 :0 :0 :0 :0 TX :0 :0 :0 :0 :0 (Collisions):0 TX :1000 RX :0 (0.0 B) TX :0 (0.0 B) :19 :0x2000 eth1 Link encap: 00:0c:29:4a:9c:b1 BROADCAST MULTICAST MTU:1500 :1 RX :0 :0 :0 :0 :0 TX :0 :0 :0 :0 :0 (Collisions):0 TX :1000 RX :0 (0.0 B) TX :0 (0.0 B) :16 :0x2080 lo Link encap: inet :127.0.0.1 :255.0.0.0 inet6 : ::1/128 : UP LOOPBACK RUNNING MTU:65536 :1 RX :8 :0 :0 :0 :0 TX :8 :0 :0 :0 :0 (Collisions):0 TX :0 RX :696 (696.0 B) TX :696 (696.0 B) 2.1: ifconfig 14

2.1 PC USB ( PC ) LAN 1 ifconfig -a eth 2 (eth2 eth3 ) eth1 LAN Node ID /etc/udev/rules.d/70-persistent-net.rules PC $ grep eth0 /etc/udev/rules.d/70-persistent-net.rules SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}== "xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL =="eth*", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}== "xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL =="eth*", NAME="eth1" (yy LAN Node ID xx ifconfig eth ) LAN 2.2 IP 2.1 eth0 eth1 (Ethernet) (lo ) eth0 00:0c:29:4a:9c:a7 ( ) 48 48 8 16 (:) 1 2 2 2.1 3 24 (22 ) 2 00 22 (OUI (Organizationally Unique Identifier) MA-L (MAC Address Block Large) ) IEEE (Institute of Electrical and Electronics Engineers) 15

25 48 (24 ) 2 00 24 MAC (Media Access Control) Ethernet 2.1 (*) 2 2.2 (*) PC ( 1 ) eth0 eth1 : https://regauth.standards.ieee.org/standards-ra-web/pub/view.html#registries (PC ) 2.2 1.1 (p.7) PC 1 5 ( 1 ) ( ) (protocol) pc1 5 4 3 2 1 pc2 5 4 3 2 1 switching Hub 2.2: ( ) 2 ( ) ( Hub ) 2.3 ( : router) 1 16

pc1 router pc2 5 4 5 4 3 2 3 2 3 2 1 1 1 2.3: ( ) 3 ( ) IP (Internet Protocol) IP 4 (IPv4) 32 8 10 (.) IP 130.158.69.233 IP IP PC (endeavor01 16) IP 2.1 {x,y} x y n = 1 254 endeavor01 endeavor02 IP 192.168.1.1 254 192.168.2.1 254 PC endeavor01,02 endeavor03,04 endeavor05,06 endeavor07,08 endeavor09,10 endeavor11,12 endeavor13,14 endeavor15,16 IP 192.168.{1,2}.n 192.168.{3,4}.n 192.168.{5,6}.n 192.168.{7,8}.n 192.168.{9,10}.n 192.168.{11,12}.n 192.168.{13,14}.n 192.168.{15,16}.n 2.1: IP 17

2.3 (*) IPv4 A C D A C 2.1 IP? 2.4 (*) 2.1 n 1 254 n 8 0 255 0 255 IP IP 0 255 lo 127.x.y.z (x,y,z = 0 255) 127.0.0.1 2.3 IP IP ifconfig IP 2.4 ifconfig eth0 IP 192.168.100.1 ifconfig eth0 IP (inet ) 192.168.100.1 $ sudo ifconfig eth0 inet 192.168.100.1 $ ifconfig eth0 eth0 Link encap: 00:0c:29:4a:9c:a7 inet :192.168.100.1 :192.168.100.255 :255.255.255.0 inet6 : fe80::20c:29ff:fe4a:9ca7/64 : UP BROADCAST RUNNING MULTICAST MTU:1500 :1 RX :0 :0 :0 :0 :0 TX :3 :0 :0 :0 :0 (Collisions):0 TX :1000 RX :0 (0.0 B) TX :238 (238.0 B) :19 :0x2000 2.4: IP 18

2.2 2.1 PC IP 2 IP 3 4 PC endeavor01 endeavor02 3 1 4 1 2 2 IP 192.168.1.1 192.168.1.2 IP PC eth0 (eth1 ) PC IP ifconfig 2.4 2.2 PC ping 2.5 192.168.100.1 PC 192.168.100.2 ping $ ping -c 4 192.168.100.2 PING 192.168.100.2 (192.168.100.2) 56(84) bytes of data. 64 bytes from 192.168.100.2: icmp_seq=1 ttl=64 time=3.28 ms 64 bytes from 192.168.100.2: icmp_seq=2 ttl=64 time=1.61 ms 64 bytes from 192.168.100.2: icmp_seq=3 ttl=64 time=1.61 ms 64 bytes from 192.168.100.2: icmp_seq=4 ttl=64 time=1.62 ms --- 192.168.100.2 ping statistics --- 4 packets transmitted, 4 received, 0% loss, time 3028ms rtt min/avg/max/mdev = 1.615/2.033/3.280/0.720 ms 2.5: ping ( ) $ ping -c 4 192.168.100.2 PING 192.168.100.2 (192.168.100.2) 56(84) bytes of data. From 192.168.100.1 icmp_seq=1 Destination Host Unreachable From 192.168.100.1 icmp_seq=2 Destination Host Unreachable From 192.168.100.1 icmp_seq=3 Destination Host Unreachable From 192.168.100.1 icmp_seq=4 Destination Host Unreachable --- 192.168.100.2 ping statistics --- 4 packets transmitted, 0 received, +4 errors, 100% loss, time 3021ms pipe 3 2.6: ping ( ) 19

ping IP ( (RTT: Round Trip Time) ) ping -c 4 192.168.100.2 ( icmp seq 1 4 ) 4 RTT 3.28ms, 1.61ms, 1.61ms, 1.62ms (statistics) (loss) 0% RTT (avg) 2.033ms 2.6 100% ping 2.3 2.2 PC ping Hub ( Hub) Hub ( Hub) eth0 (eth1 eth2 ) 2.1 2.5 2.5 1 RTT RTT ping 2 ping ping 1 2 2.6 ping 3 RTT 2.5 2 RTT Hub ( Hub) 2.3 2 RTT 1. 127.0.0.1 20

2. eth0 IP ( eth0 192.168.1.1 192.168.1.1 ping ) 2.7 PC $ sudo sh -c "echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" ping ( -b ) 3 2.5 (DUP!) 2.4 1. eth0 IP 4 255 ( eth0 192.168.1.1 192.168.1.255 ping ) 2. eth0 IP 4 0 OS 2.4 PC $ sudo sh -c "echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts" 2.5 2.3 ifconfig IP PC IP Ubuntu 12.04 LTS OS ifup /etc/network/interfaces IP 2.7 /etc/network/interfaces eth0 IP (4.3.1 (p.58) ) ifup eth0 21

( ) $ sudo ln -s /etc/resolv.conf /etc/resolv.conf $ sudo emacs /etc/network/interfaces $ egrep ˆ[ˆ#] /etc/network/interfaces auto lo # iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.100.1 netmask 255.255.255.0 iface eth0 inet6 auto $ sudo ifup eth0 eth0 ssh stop/waiting ssh start/running, process 1885 net.ipv6.conf.eth0.accept_ra = 1 net.ipv6.conf.eth0.autoconf = 1 ssh stop/waiting ssh start/running, process 1936 $ ifconfig eth0 ( ) eth0 Link encap: 00:0c:29:4a:9c:a7 inet :192.168.100.1 :192.168.100.255 :255.255.255.0 ( ) $ ping -c 4 192.168.100.2 PING 192.168.100.2 (192.168.100.2) 56(84) bytes of data. 64 bytes from 192.168.100.2: icmp_seq=1 ttl=64 time=3.28 ms 64 bytes from 192.168.100.2: icmp_seq=2 ttl=64 time=1.61 ms 64 bytes from 192.168.100.2: icmp_seq=3 ttl=64 time=1.61 ms 64 bytes from 192.168.100.2: icmp_seq=4 ttl=64 time=1.62 ms --- 192.168.100.2 ping statistics --- 4 packets transmitted, 4 received, 0% loss, time 3028ms rtt min/avg/max/mdev = 1.615/2.033/3.280/0.720 ms 2.7: ifup 22

$ sudo ifdown eth0 eth0 $ ifconfig eth0 ( ) lo Link encap: inet :127.0.0.1 :255.0.0.0 ( ) $ ping -c 4 192.168.100.2 connect: Network is unreachable 2.8: ifdown OS ifdown 2.8 eth0 2.4 PC /etc/network/interfaces 2.2 IP ifup IP ifdown ifup 2.6 1.1 (p.7) PC Hub ( Hub) 2.9 Hub ( Hub) (cascading connection) Hub ( Hub) PC 4 (8 ) ( ) 100Mbps 1 1 2.10 PC Hub PC Hub PC MDI (Medium Dependent Interface) Hub MDI-X (MDI Crossover) Hub 2.10 MDI- X Hub 23

PC Hub 2.10 MDI MDI-X ( 2.10 ) MDI-X ( MDI) ( 2.10 ) Switching Hub Switching Hub pc1 cascading connection pc2 2.9: Switching Hub Switching Hub Switching Hub MDI-X MDI-X MDI-X MDI pc1 MDI-X Switching Hub MDI-X Switching Hub 2.10: Hub ( Hub) Hub ( Hub) MDI ( ) Hub (CentreCOM FH708TP) 8 X PC MDI-X PC = HUB MDI Hub PC Hub 8 24

MDI MDI-X Hub ( Hub) Hub (CentreCOM FS708EX V1 Buffalo LSW-TX-8NS) AUTO MDI/MDI-X 2.8 Hub 2 Hub 2 PC 2.9 ping 1. 1 8 ( X PC ) 2. 1 8 ( = HUB ) 25