280 likes | 401 Views
Hoofdstuk 10. Semester 1. server1:/home/bertil# ifconfig eth0 Link encap:Ethernet HWaddr 00:80:48:C7:D7:97 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
E N D
Hoofdstuk 10 Semester 1
server1:/home/bertil# ifconfig eth0 Link encap:Ethernet HWaddr 00:80:48:C7:D7:97 inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14763 errors:0 dropped:0 overruns:0 frame:0 TX packets:13763 errors:0 dropped:0 overruns:0 carrier:0 collisions:697 txqueuelen:100 Interrupt:10 Base address:0xd000 eth1 Link encap:Ethernet HWaddr 52:54:4C:01:48:FD inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:55 errors:0 dropped:0 overruns:0 frame:0 TX packets:20357 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 Interrupt:3 Base address:0x300 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:3924 Metric:1 RX packets:6934 errors:0 dropped:0 overruns:0 frame:0 TX packets:6934 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
router • Elke interface heeft een IP -nummer
Ip adres • 32 bits adres • 232 = 4 miljard adressen • elk netwerkkaart heeft 48 bits adresMAC adres
Speciale adressen • Loopbackadres127.0.0.1 • netwerkadres192.168.0.0 eindigt met 0 • broadcastadres192.168.0.255 eindigt met 255
Two kinds of broadcast directed - forwarded by router flooded - not forwarded by router, stay local
Klasse C netwerk • Ipadres netwerk: 195.50.101.0 • subnetmask: • 255 .255 .255 .1921111 1111.1111 1111.1111 1111.1100 0000
192.50.101.129 < > 192.150.101.190 192.50.101.65 < > 192.150.101.126