LM Dl St T Lesson Module Status
Total Page:16
File Type:pdf, Size:1020Kb
CIS 192 – Lesson 4 Lesson MMdlodule StSttatus • Slides – draft • Properties - done • Flashcards - NA • 1st minute quiz – done • Web Calendar summary – done • Web book pages – done • Commands – done • Howtos – NA • Skills pacing - na • Lab 4 published - done • Extra credit lab published - done • Practice test publish - done • Depot (VMs) – done • New quiz ?’s for next week - NA • Add sniffer module for internal wireshark sniffing • Add routerboard/MikoTik – done • Add email option for all lesson quizzes • Add opus answers directory/weekly cycle to housekeeping – done • Bring MikroTik router - done 1 CIS 192 – Lesson 4 Course history and credits Jim Griffin • Jim created the original version of this course • Jim’s site: http://cabrillo.edu/~jgriffin/ Rick Graziani • Thanks to Rick Graziani for the use of some of his great networ k slides • Rick’s site: http://cabrillo.edu/~rgraziani/ 2 CIS 192– Lesson 4 www. cccconfer.org dial-in: 888-886-3951 passcode: 439080 Joe P. Joe A. Robert Ryan John Chuck Rich Chris B. Josh Patric k Chris H. Casady Lieven JkJack Julio Edwin Drew Edgar Kay Junious Aaron Joe B. Brynden 3 Email me ([email protected]) a relatively current photo of your face for 3 points extra credit CIS 192 - Lesson 4 First Minute Quiz Please take out a blank piece of paper, switch off your monitor, close your books, put away your notes and answer these questions: • What does a router do with an incoming packet that has a destination IP address that matches no entries in the routing table? • If two routes in the routing table match a ddiestinati on IP address, which route is chosen – the one with the shorter or longer prefix? • If frodo has IP address 172.30.4.193 what line would be added to elrond's /etc/hosts file so elrond users could ping frodo by name? Online users can email the answers to [email protected] CIS 192 – Lesson 4 RtiRouting CtidContinued and Transpor t PtProtoco ls Objectives Agenda • Configgpppure appropriate IP addresses , network • Quiz and subnet masks, and broadcast addresses • Questions on previous material based on the size and number of network segments required. • Housekeeping • Connect multiple network segments together • Virtual/Physical corner using Linux servers as routers and configuring • Dynamic Routing the appropriate routing tables. • Quagga routing suite for Linux • Use a network sniffer to analyze network traffic between two hosts. • Skills for doing Lab 4 • Identify, isolate, and correct malfunctions in a • Transport Layer computer networ k. • TDP and UDP protocol s • Define the term 'socket' and describe its • Service ports and sockets importance to the transport layer of the protocol • Prepping for the test next week stack. • Wrap 5 QtiQuestions on previous material 6 CIS 192 - Lesson 4 Questions? • Previous lesson material • Lab assignment • How this class works 7 Housekeeppging 8 CIS 192 - Lesson 4 • Lab 3 due midnight • Five posts due midnight • Test 1 next week • Lab 4 due in two weeks • Extra credit lab on permanent NIC configuration available • The real nosmo was rebooted this week, network any better? • 3/6 Saturday workshop: 1 till whenever • Lab assistants – Robert and Mark • PE observation and survey tonight 9 CIS 192 - Lesson 4 [rsimms@opus answers]$ head -30 /home/cis192/answers/lab2.simmsben CIS 192 Lab 2 Benji Simms Date: 02/25/2010 After labs are graded I put up an example lab report showing the TBA hours: 5.5 hours Station number: CIS -Lab-01 “answers” on Opus in: CPU: Intel Core2 Duo E7200 @ 2.53 GHz RAM: 3.23 GB /home/cis192/answers FRODO TROUBLESHOOTING (Step 4) Ping 172.30.4.1 error when eth0 is down: Network is unreachable Ping 172.30.4.1 error after releasing IP address: Network is unreachable Ping 207.62.186.9 error after deleting default gateway: Network is unreachable Ping opus.cabrillo.edu error with no DNS server: unknown host opus .cabrillo .edu Ping 172.30.4.1 error after disconnecting from network: From 172.30.4.150 icmp_seq=10 Destination host Unreachable CONFIGURATION AND CONNECTIVITY TESTS (Step 8) *** Frodo *** [rsimms@opus answers]$ 10 PiiPracticing sssatkills at home 11 SBCs 12 CIS 192 - Lesson 4 The Linux Networking Cookbook by Carla Schroeder has a section on SBCs (Single Board Computers): • Small • Quiet • Low power consumption • Can run Linux OS Examples: • Soekris Engineering (Santa Cruz) - http://soekris.com/ • PC Engines (Switzerland) - http://www.pcengines.ch/ • MikroTik Routerboard (Latvia) - http://www.routerboard.com/ • Many more at http://www.linuxfordevices.com/ 13 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router Assemble your own Linux based Router. This one has five Ethernet interfaces and uses 6.4 watts of power. • Eth1 is attached to the home LAN. • Eth2 is attached to a 172.30.4.0/24 network. • The serial cable (console) can be attached to a laptop. • RB/450 Routerboard $69 • CA/150 indoor case $19 • 24HPOW power supply $18 • SW-1301 USB-to-serial adapter $12 14 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router With a USB-to-Serial adapter Putty can be used as the console 15 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router MikroTik RouterOS provides their own shell and software that runs on a Linux 2.6 kernel. The admin account is initially set with no password for first time login. 16 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router The shell lets you configure and show interfaces, routes, DHCP, etc. 17 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router Online wiki documentation 18 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router Online wiki documentation areas 19 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router Online wiki documentation areas 20 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router Online wiki documentation areas 21 CIS 192 - Lesson 4 MikroTik/Routerboard – A Linux based router Online wiki documentation areas 22 Dynamips Dyygnagen 23 Internet Lab 4 using three CentOS Linux routers DNS: 207.62.187.53 Router 10.10.10.0/24 Client Lab Router Legolas eth2 eth0 .1 .1 VMnet6 .200 eth0 eth1 .2 .5 Sauron 192.168.2.0/30 192.168.2.4/30 VMnet3 VMnet4 .1 .6 eth eth1 0 172.30.4.0/24 eth0 eth2 eth1 VMnet5 .9 Bridged .1xx .10 192.168.2.8/30 Elrond Arwen eth0 DHCP Router Router and Telnet Server Frodo Client 24 Lab 4 using two Cisco routers and one Internet CentOS Linux router Cisco 2621 DNS: 207.62.187.53 Router 10.10.10.0/24 R2 Client fa0/0 eth0 Nosmo .1 VMnet6 .200 Lab Router s0/0 fa0/1 .2 .5 Sauron .1 192.168.2.0/30 192.168.2.4/30 VMnet4 .6 eth1 .1 s0/0 172.30.4.0/24 fa0/0 fa0/1 eth0 .1xx VMnet5 Bridged .10 .9 R1 192.168.2.8/30 Arwen Cisco 2621 Router and Router eth0 DHCP Telnet Server Note that R1 and R2 are emulated on the Dual-2621 VM: • R1 fa0/0 = Ethernet/eth0 (Bridged) Frodo • R1 fa0/1 = Ethernet2/eth1 (VMnet5) Client • R2 fa0/0 = Ehternet3/eth2 (VMnet6) • R2 fa0/1 = Ethernet4/eth3 (VMnet4) CIS 192 - Lesson 4 The Dual-c2621s VM fa0/0 fa0/1 eth2 R2 eth3 Cisco 2621 s0/0 Router • R1 fa0/0 = Ethernet/eth0 • R1 fa0/1 = Ethernet2/eth1 • R2 fa0/0 = Ehternet3/eth2 • R2 fa0/1 = Ethernet4/eth3 +Dynamips 192.168.2.0/30 +Dynagen A CentOS VM that runs Dynamips/Dynagen to emulate one or more Cisco 2621 s0/0 Cisco routers Router eth0 fa0/0 R1 fa0/1 eth1 http://dynagen.org/tutorial.htm CIS 192 - Lesson 4 The Dual-c2621s VM Use dynamips –H 7200 & to run the Dynamips hardware emulator and listen using port 7200 CIS 192 - Lesson 4 The Dual-c2621s VM Change directory to where the Dynagen configuration files are then use dynagen dual-2621s.net to start up two 2621 virtual routers CIS 192 - Lesson 4 The Dual-c2621s VM Use list command to show the virtual routers and the ports they are listening on CIS 192 - Lesson 4 The Dual-c2621s VM Use telnet localhost 2000 command to get to the R1 console (using a separate virtual terminal is handy) CIS 192 - Lesson 4 The Dual-c2621s VM Use telnet localhost 2001 command to get to the R2 console (using a separate virtual terminal is handy) CIS 192 - Lesson 4 The Dual-c2621s VM You can use the Cisco IOS commands now and the interfaces can be connected to other VMs or to your physical network! CIS 192 - Lesson 4 Exercise – Dynamips/Dynagen 1. Open and browse to the cis192 VMs on the D drive 2. Add the VM named 192-Dual-2621’s by selecting its .vmx file 3. Disconnect the eth0 interface using VM settings to avoid duplicate IP addresses 4. Power on the 192-DlDual-2621s VM 5. In tty1, start Dynamips with dynamips –H 7200 & 6. Start Dynagen using custom configuration file: cd /opt/dynagen-0.11.0/sample_labs/dual_2621s/ Use tab dynagen dual_2621s.net completes! 7. Type list to see t he route rs 8. In tty2, telnet localhost 2000 and login to R1 (cisco/class) 9. In tty3, telnet localhost 2001 and login to R2 (cisco/class) 10.On R1, try ping ing R2 (ping 192.168 .2 .2 ) from R1 and showing the routing table using show ip route 33 VirtualBox Update 34 CIS 192 - Lesson 4 VirtualBox Comp le te d La b 3 & 4 using VirtualBox on 4GB laptop running Windows 7 Made native VBox VMs and made one VBox VM using a VMware Server virtual .vmdk hard drive CIS 192 - Lesson 4 VirtualBox internal virtual networks http://srackham.wordpress.com/cloning-and-copying-virtualbox-virtual-machines/ C:\Users\Administrator>cd C:\Program Files \Sun\VirtualBox C:\Program Files\Sun\VirtualBox>vboxmanage modifyvm elrond --intnet3 rivendell Sun VirtualBox Command Line Management Interface Version 3.1.4 (C) 2005-2010 Sun Microsystems, Inc.