110 likes | 250 Views
COP 4343 Unix System Administration. Unit 11: Networking basic concepts: IP, TCP, UDP, DHCP devices: setup, status. Ethernet 100Mbs, 1Gbs DSL, cable up to 6Mbs T1 (DS1) 1.5Mbs DS3 45Mbs OCx 50Mbs to 40Gbs. WiFi: 802.11 (a) 6 to 54Mbs (b) 1 to 11Mbs (g) up to 54Mbs (n) more
E N D
COP 4343Unix System Administration Unit 11: Networking basic concepts: IP, TCP, UDP, DHCP devices: setup, status
Ethernet 100Mbs, 1Gbs DSL, cable up to 6Mbs T1 (DS1) 1.5Mbs DS3 45Mbs OCx 50Mbs to 40Gbs WiFi: 802.11 (a) 6 to 54Mbs (b) 1 to 11Mbs (g) up to 54Mbs (n) more WiMax: 802.16 386Kbs to 10Mbs Modem 56Kbs Networking Technologies
Network Devices • ethernet card • eth0 • point-to-point protocol • ppp0 • used to connect a modem to an ISP • loop back • lo • uniquely identified via MAC address
numbers to know: IP 32bit unique identifier, written as quad network first n bits of IP number, written as “/n” 8 - class A, 16 - class B, 24 - class C more than 24 - class D netmask 32 bit number with first n bits all 1, rest 0 broadcast network number (first n bits), rest all 1 gateway IP name server IP 131.94.134. 1 to 14 /28 131.94.134.15 131.94.134.1 131.94.134.129 Basic concepts: IP
ip protocols • icmp: Internet control message protocol • control protocol • ping, traceroute • tcp: transmission control protocol • connection oriented, guaranteed delivery • basis for: http, ftp, smtp, ssh • udp: user datagram protocol • best effort • basis for: dns, rtp
dhcp • dynamic host configuration protocol • client obtains network setup from server • assignment has duration: lease • client • dhclient • server • dhcpd
Network Configuration • ifconfig • parameters: • network interface, IP address, mask, mtu, etc. • without parameters: • status of all configured network interfaces • route to gateway • route add default gw 131.94.134.1 eth0 • name servers or /etc/hosts • /etc/resolv.conf
Network Configuration Scripts • /etc/sysconfig/network NETWORKING=yesHOSTNAME=instructor.ege.com • /etc/sysconfig/network-scripts • ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes
ifcfg-eth0 example DEVICE=eth0BROADCAST=192.168.1.255IPADDR=192.168.1.100NETMASK=255.255.255.0NETWORK=192.168.1.0ONBOOT=no
Manual management • ifup • ifdown • for specific device • ifdown eth0 • ifup eth0
Network Troubleshooting • route • display kernel routing table • ping • send control packet to host • traceroute • check intermediate nodes on path to host • arp • check MAC address vs. IP number