Changes between Version 9 and Version 10 of GENIRacksHome/InstageniRacks/AcceptanceTestStatus/IG-EXP-7
- Timestamp:
- 01/10/13 15:29:21 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIRacksHome/InstageniRacks/AcceptanceTestStatus/IG-EXP-7
v9 v10 93 93 $ cd /local/click 94 94 $ sudo ./configure 95 $ cd tools 95 $ cd tools ?? 96 $ sudo make install ?? 97 $ cd /local/click/userlevel/ 98 $ sudo gmake 96 99 $ sudo make install 97 $ cd /local/click/userlevel/ 98 $ sudo make install 100 $ ./click ../conf/test.click 99 101 }}} 100 102 101 103 102 XXX103 OR Install package:104 {{{105 $ wget http://www.read.cs.ucla.edu/click/click-2.0.1.tar.gz106 $ ###wget http://www.read.cs.ucla.edu/click/click-packages-2.0.tar.gz107 $ tar xvzf click-2.0.1.tar.gz108 $ cd click-2.0.1/userlevel109 $ ./configure110 $ gmake111 $ ./click ../conf/test.click112 $ sudo userlevel/click < conf/print-pings.click113 114 $ make install115 104 116 105 117 106 == 8. Determine Click router settings == 118 Determine the interface to MAC address mapping, and various settings required for the 4 router node and modify click configuration. 107 ON each of the four routers, determine the interface mapping and modify click configuration to add the router interfaces: 108 The following are executed on each of the routers: 109 {{{ 110 $ /sbin/ifconfig 111 $ cd /local/click/userlevel 112 $ sudo vi ../conf/print-pings.click ## add router interfaces 113 }}} 114 115 Example conf/print-pings.click: 116 {{{ 117 FromDevice(mv5.5) // read packets from device 118 // (assume Ethernet device) 119 -> Classifier(12/0800) // select IP-in-Ethernet 120 -> Strip(14) // strip Ethernet header 121 -> CheckIPHeader // check IP header, mark as IP 122 -> IPFilter(allow icmp && icmp type echo) // select ICMP echo requests 123 -> IPPrint // print them out 124 -> Discard; 125 }}} 119 126 120 127 == 9. Run the user-level Click router == 121 Run the user-level Click router by providing the configuration file name as an argument on each node. 128 Login to each of the routers, and run the user-level Click router by providing the print pings configuration file name. Leave terminal connection open: 129 {{{ 130 $ cd /local/click/userlevel 131 $ sudo ./click ../conf/print-pings.click 132 }}} 133 122 134 123 135 == 10. Log in to Host1 and send traffic to host2 == 124 136 125 Log in to Host1 and send traffic to host2 and leave traffic running.137 Log in to host1 and send traffic to host2 and leave traffic running. Review the output on the terminal for each of the 126 138 139 Log in to host2 and send traffic to host1 127 140 == 11. Review Click logs on each Click router == 128 141