Advanced Registry Operations Curriculum Building Your Virtual NOC Notes: ------ * Commands preceded with "$" imply that you should execute the command as a general user - not as root. * Commands preceded with "#" imply that you should be working as root. * Commands with more specific command lines (e.g. "RTR-GW>" or "mysql>") imply that you are executing commands on remote equipment, or within another program. * If a command line ends with "\" this indicates that the command continues on the next line and you should treat this as a single line. Exercises Part I ---------------- 0. Log in to your PC or open a terminal window as the tladmain user. Some Items to Update in Trac ---------------------------- 1. http://localhost/trac/ ---------------------- Log in to the trac instance as the user "tldadmin" using the password given in class. Fill in a few items on the page... For instance, try creating an entry to describe the PCs in your subnet. In Trac click on "Edit this page" (after you've logged in) at the bottom of the page. Go down to the "Network Configuration" section and add some lines that look like this: * [wiki:PCsGroup1 Group 1 PCs] * [wiki:PCsGroup2 Group 2 PCs] * [wiki:Routers Routers] * [wiki:Switches Switches] You need the space before each "*" in order for the items to appear as bullets. Click on "Submit changes". You'll notice the new items are greyed out and have a question mark after them. If you click on one of the items you'll be presented with a new page. Click on the "Create this page" button and start adding in some information about any of the items. You can use the Network Diagram on the NOC for reference: http://noc/trac/wiki/NetDiagram To get more information about your PC, in a terminal window you can do some exploring: $ df -h [show size of partitions] $ fdisk -l [list partitions, see disk size] $ top [current running processes and installed RAM] $ less /proc/cpuinfo [CPU(s) type and speed] $ ifconfig [network interfaces and their addresses] That is probably enough information. If you wish to see all hardware recognized by Linux on your box you can read through the system startup message: $ dmesg | more 2. Explore Your Local Network -------------------------- If you are wondering just what is on your local network segment you can do some scanning using a tool like nmap. Naturally a tool like nmap is often seen as an attack or potential security breach, so use with care. The address ranges in the classroom are: Group 1: 192.168.5.128/27 Group 2: 192.168.5.160/27 Backbone: 192.168.17.0/24 See what's on your local subnet. Here are a few different ways: $ sudo nmap -sP 192.168.5.128/27 [use the address range that corresponds to your group] $ sudo nmap -v 192.168.5.128/27 $ sudo nmap -sV 192.168.5.128 [intensive, takes a while and looks like an attack] $ sudo nmap -O 192.168.5.128/27 [detect OS'es] Nmap is a complex tool. Take a look at it's man pages for some more information: $ man nmap If you are monitoring a network segment sometimes it can be useful to run an nmap scan on the segment as a reality check to verify that what is on the network is what you think should be there.