1 00:00:00,330 --> 00:00:03,810 So we've been able to automate a single device. 2 00:00:03,990 --> 00:00:13,320 Now let's extend the genius three topology and add multiple switches to the topology and automate multiple 3 00:00:13,320 --> 00:00:19,260 switches at the same time, in the same way as I've done with previous labs. 4 00:00:19,560 --> 00:00:27,870 I'm going to start off with a simple script and then iterate it and make it more complex as we go through 5 00:00:27,870 --> 00:00:29,430 the various labs. 6 00:00:30,090 --> 00:00:32,910 So let's add five switches to the topology. 7 00:00:34,350 --> 00:00:39,120 I'll make this switch to this can be switched three. 8 00:00:40,890 --> 00:00:47,550 Switch four, switch five and switch six. 9 00:00:48,570 --> 00:00:58,860 Now, if you don't want to watch me build this topology, skip ahead to the next video where I create 10 00:00:59,010 --> 00:01:00,330 the Python scripts. 11 00:01:01,820 --> 00:01:07,580 In this initial video, I'm going to be building the three topology. 12 00:01:10,780 --> 00:01:14,440 So if you don't want to watch me do that, then jump ahead. 13 00:01:18,190 --> 00:01:22,390 Let's assume in this network that we're using an out-of-band. 14 00:01:24,200 --> 00:01:25,760 Management Network. 15 00:01:26,300 --> 00:01:32,660 It's a good idea to use an OUT-OF-BAND management network when using network automation. 16 00:01:33,410 --> 00:01:42,050 The problem using an inbound management network is that you can have issues where. 17 00:01:43,120 --> 00:01:52,990 Spanning tree and other protocols can block links and thus stop your scripts communicating with your 18 00:01:52,990 --> 00:01:54,430 network devices. 19 00:01:57,020 --> 00:02:02,000 So in this topology, these links to switch one. 20 00:02:03,360 --> 00:02:06,060 All part of the management network. 21 00:02:06,810 --> 00:02:10,530 And the other links between the network devices. 22 00:02:11,760 --> 00:02:13,950 Or our data network. 23 00:02:14,940 --> 00:02:20,640 Assume, for example, in this topology that switch two and switch three are cause switches. 24 00:02:21,320 --> 00:02:26,570 And that switch for five and six hour access switches. 25 00:02:27,330 --> 00:02:29,370 In the June three topology. 26 00:02:30,210 --> 00:02:39,000 And that the links to switch one are the management links or the links in the management network. 27 00:02:40,000 --> 00:02:42,640 Now you can make this topology look pretty. 28 00:02:42,940 --> 00:02:45,460 I'm not too concerned about doing that. 29 00:02:46,260 --> 00:02:51,780 I'm more concerned about making sure that we can automate the network. 30 00:02:52,320 --> 00:02:55,500 So there's our new Gen three topology. 31 00:02:56,300 --> 00:03:00,740 We have five new switches, which I'll start up. 32 00:03:01,550 --> 00:03:05,570 We've got our original switch, switch one and our rather rata one. 33 00:03:06,020 --> 00:03:12,710 So what we're going to do is use the network automation container to automate these network devices. 34 00:03:13,430 --> 00:03:13,820 Again. 35 00:03:13,820 --> 00:03:17,960 If you don't want to watch me build the network, skip ahead. 36 00:03:18,170 --> 00:03:24,440 You can also download the attached Genius three topology, which will make it a lot easier for you to 37 00:03:24,440 --> 00:03:27,740 follow along now to speed things up. 38 00:03:27,920 --> 00:03:31,310 I'm going to copy the configuration from switch one. 39 00:03:32,240 --> 00:03:33,680 So on switch one. 40 00:03:34,820 --> 00:03:36,950 I want to copy this information. 41 00:03:40,330 --> 00:03:43,090 We want to configure a username and password. 42 00:03:46,870 --> 00:03:51,520 I also want to configure an IP address on the switch. 43 00:03:55,860 --> 00:03:59,220 And I want to configure the V lines. 44 00:04:00,030 --> 00:04:07,140 So switch to in our topology, I'm going to make 1921681 2282. 45 00:04:09,060 --> 00:04:16,110 So the hostname for our first additional switch will be switched to because our first switch has the 46 00:04:16,110 --> 00:04:17,700 name switch one. 47 00:04:18,950 --> 00:04:20,329 So copy that. 48 00:04:22,170 --> 00:04:24,120 Open up a console to the switch. 49 00:04:27,350 --> 00:04:28,850 So here's the switch. 50 00:04:29,090 --> 00:04:31,280 I'll paste that configuration in. 51 00:04:32,900 --> 00:04:36,320 What I should have done is no shunt of VLAN one. 52 00:04:37,940 --> 00:04:40,100 So no shut here. 53 00:04:45,160 --> 00:04:46,090 So. 54 00:04:49,810 --> 00:04:53,680 Back in the console of switch to aisle no shot of VLAN one. 55 00:04:54,940 --> 00:04:57,040 So show IP interface brief. 56 00:04:59,530 --> 00:05:00,700 Interfaces up. 57 00:05:03,110 --> 00:05:08,900 On the network automation container can we ping 1921681 2282? 58 00:05:08,930 --> 00:05:09,980 Yes, we can. 59 00:05:10,220 --> 00:05:15,050 Can we tell that to 1921681 2282? 60 00:05:15,590 --> 00:05:16,760 Yes, we can. 61 00:05:16,760 --> 00:05:18,050 And we can log in. 62 00:05:19,100 --> 00:05:21,680 So switch to is configured. 63 00:05:22,040 --> 00:05:25,790 So what I'll do is open up consoles to the other switches. 64 00:05:31,560 --> 00:05:33,900 And let's configure switch three. 65 00:05:36,350 --> 00:05:37,760 So here's switch three. 66 00:05:38,060 --> 00:05:40,430 Enable confetti. 67 00:05:41,540 --> 00:05:43,000 Here's our configuration. 68 00:05:43,010 --> 00:05:44,750 Hostname is going to be host three. 69 00:05:45,080 --> 00:05:49,160 IP address is going to be 1921681 2283. 70 00:05:50,630 --> 00:05:56,090 So paste of that configuration in and save the configuration. 71 00:05:57,920 --> 00:05:58,310 Owner. 72 00:05:58,310 --> 00:06:00,140 The network automation container. 73 00:06:00,170 --> 00:06:01,500 Can we ping 83? 74 00:06:01,520 --> 00:06:02,540 Yes, we can. 75 00:06:03,680 --> 00:06:06,020 Can we tell it to 83? 76 00:06:07,040 --> 00:06:08,150 Yes, we can. 77 00:06:08,690 --> 00:06:10,880 So we can get to switch three. 78 00:06:12,050 --> 00:06:15,740 Switch four will be configured with IP address 84. 79 00:06:16,040 --> 00:06:17,960 Copy the configuration. 80 00:06:21,380 --> 00:06:26,210 Paste that into switch for and save the configuration. 81 00:06:28,680 --> 00:06:30,300 On the network automation container. 82 00:06:30,300 --> 00:06:31,540 Can we ping switch forward? 83 00:06:31,560 --> 00:06:32,550 Yes, we can. 84 00:06:32,730 --> 00:06:36,270 Can we tell it to switch four rather? 85 00:06:37,260 --> 00:06:39,030 So 84? 86 00:06:39,060 --> 00:06:40,170 Yes, we can. 87 00:06:41,850 --> 00:06:47,100 So we can also access switch for switch five. 88 00:06:49,970 --> 00:06:52,640 Well, ed the config as follows. 89 00:06:52,640 --> 00:06:55,010 It will have an IP address of 85. 90 00:06:56,210 --> 00:07:01,220 So on switch five paced the configuration in. 91 00:07:03,710 --> 00:07:05,570 Under the network automation container. 92 00:07:05,570 --> 00:07:08,480 Can we telnet to switch five? 93 00:07:08,510 --> 00:07:09,620 Yes, we can. 94 00:07:10,010 --> 00:07:11,930 So switch five is working. 95 00:07:13,040 --> 00:07:14,330 Switch six. 96 00:07:21,790 --> 00:07:21,980 Oh. 97 00:07:22,000 --> 00:07:24,040 Pasted the configuration in. 98 00:07:26,730 --> 00:07:28,980 Can we telnet to switch six? 99 00:07:29,010 --> 00:07:30,120 Yes, we can. 100 00:07:31,700 --> 00:07:32,630 So. 101 00:07:34,260 --> 00:07:34,980 I made a mistake. 102 00:07:34,980 --> 00:07:36,210 So on the side. 103 00:07:36,300 --> 00:07:38,520 Let's clear a line to. 104 00:07:41,390 --> 00:07:43,100 The line has been disconnected. 105 00:07:43,220 --> 00:07:47,600 But again, we can ping 1921681 2272. 106 00:07:47,840 --> 00:07:54,080 That's switch 182, switch 283, switch 384. 107 00:07:54,080 --> 00:07:57,290 Switch for 85 is switch five. 108 00:07:58,460 --> 00:08:00,860 86 is switch six. 109 00:08:02,240 --> 00:08:02,600 Okay. 110 00:08:02,600 --> 00:08:04,760 So we've built the network. 111 00:08:04,760 --> 00:08:11,930 We've proven that we have IP connectivity from the network automation container to the switches in the 112 00:08:11,930 --> 00:08:12,770 network. 113 00:08:13,070 --> 00:08:16,220 And now let's automate the network.