| 225 | |
| 226 | === Running Dynagen/Dynamips === |
| 227 | |
| 228 | '''Dynamips''' is a Cisco router emulator. It emulates 2691, 3620, 3640, 3660, 3725, 3745, and 7206 hardware platforms, and runs standard IOS images. |
| 229 | |
| 230 | '''Dynagen''' is a text-based front end for Dynamips, which uses the “Hypervisor” mode for communication with Dynamips. Dynagen simplifies building and working with virtual networks |
| 231 | |
| 232 | - First login to campuslan VM. |
| 233 | - Then start up the Dynamips server on your local machine |
| 234 | {{{ |
| 235 | dynamips –H 7100 & |
| 236 | }}} |
| 237 | hypervisor will run on port 7100 |
| 238 | - You can find the topology file in '''/var/dynamips/campuslan.net''' |
| 239 | - Run the topology file with dynagen |
| 240 | {{{ |
| 241 | dynagen /var/dynamips/campuslan.net |
| 242 | }}} |
| 243 | - Now you have the network topology running. Give the following command in dynagen |
| 244 | {{{ |
| 245 | => list |
| 246 | }}} |
| 247 | - Your result should be something like this |
| 248 | {{{ |
| 249 | Name Type State Server Console |
| 250 | AccessRt 3725 stopped localhost:7100 2100 |
| 251 | CampusCore 3725 stopped localhost:7100 2200 |
| 252 | FacACore 3725 stopped localhost:7100 2300 |
| 253 | FacBCore 3725 stopped localhost:7100 2400 |
| 254 | FacASw 3725 stopped localhost:7100 2500 |
| 255 | FacBSw 3725 stopped localhost:7100 2600 |
| 256 | }}} |
| 257 | - You can see there are 6 devices. But none of them are running. You can also see the numbers of the ports which the console port of devices are running. This will also be helpful to you in next steps |
| 258 | - you can get details about devices by following command |
| 259 | {{{ |
| 260 | => show device <device name> |
| 261 | }}} |
| 262 | - This Command will be helpful to know on which interface the devices are connected to each other |
| 263 | {{{ |
| 264 | => show device AccessRt |
| 265 | Router AccessRt is stopped |
| 266 | Hardware is dynamips emulated Cisco 3725 with 256 MB RAM |
| 267 | Router's hypervisor runs on localhost:7100, console is on port 2100 |
| 268 | Image is shared c3725-adventerprisek9-mz124-15.bin-localhost.ghost with idle-pc value of 0x60a8033c |
| 269 | Idle-max value is 100, idlesleep is 30 ms |
| 270 | 55 KB NVRAM, 128 MB disk0 size, 0 MB disk1 size |
| 271 | slot 0 hardware is GT96100-FE with 2 interfaces |
| 272 | FastEthernet0/0 is connected to router CampusCore FastEthernet1/15 |
| 273 | FastEthernet0/1 is connected to real enp0s3 interface |
| 274 | }}} |
| 275 | - Now you can start the devices. To start the devices use the start command |
| 276 | {{{ |
| 277 | => start AccessRt |
| 278 | => start CampusCore |
| 279 | => start FacACore |
| 280 | => start FacBCore |
| 281 | => start FacASw |
| 282 | => start FacBSw |
| 283 | }}} |
| 284 | |
| 285 | - It will take some time to boot up all the devices. After that you will have the following topology up and running and you can start configuring the routers and switches. |