1 00:00:00,05 --> 00:00:04,01 - [Instructor] Once we set up our Ubuntu host as a router, 2 00:00:04,01 --> 00:00:06,08 the next step is to connect another host 3 00:00:06,08 --> 00:00:09,06 to our Ubuntu router host to see 4 00:00:09,06 --> 00:00:12,05 if it functions as a router properly. 5 00:00:12,05 --> 00:00:15,06 I have an Ubuntu VM already up and running. 6 00:00:15,06 --> 00:00:21,04 Let's type ifconfig to check the current network settings. 7 00:00:21,04 --> 00:00:24,02 Press Enter. 8 00:00:24,02 --> 00:00:29,07 The IP address is 10.0.0.4, 9 00:00:29,07 --> 00:00:33,06 therefore it belongs to the 10.0.0 subnet 10 00:00:33,06 --> 00:00:36,04 as shown in this diagram. 11 00:00:36,04 --> 00:00:39,05 We want this host to be behind our router 12 00:00:39,05 --> 00:00:44,05 belonging to the 10.0.1 subnet. 13 00:00:44,05 --> 00:00:47,09 In Azure, to change the subnet of a host, 14 00:00:47,09 --> 00:00:50,03 go to your VM page. 15 00:00:50,03 --> 00:00:55,03 Select Networking 16 00:00:55,03 --> 00:00:59,08 and your network interface. 17 00:00:59,08 --> 00:01:05,08 Choose IP Configurations. 18 00:01:05,08 --> 00:01:12,08 Pick the 10.0.1 subnet from the dropdown box. 19 00:01:12,08 --> 00:01:16,04 Click on Save. 20 00:01:16,04 --> 00:01:19,04 I'm using Dynamic Host Configuration Protocol, 21 00:01:19,04 --> 00:01:24,05 or DHCP, for my VMs, therefore DHCP 22 00:01:24,05 --> 00:01:26,09 automatically assigns a new IP 23 00:01:26,09 --> 00:01:30,00 to the network interface card of my Ubuntu host 24 00:01:30,00 --> 00:01:32,09 when I switch the subnet. 25 00:01:32,09 --> 00:01:35,04 Let's check if I have a new IP. 26 00:01:35,04 --> 00:01:40,02 Type ifconfig, press Enter. 27 00:01:40,02 --> 00:01:46,04 The IP is now 10.0.1.5. 28 00:01:46,04 --> 00:01:50,03 It was initially 10.0.0.4. 29 00:01:50,03 --> 00:01:53,09 The ultimate test is to check if this Ubuntu host 30 00:01:53,09 --> 00:01:57,02 can talk to our Ubuntu router host. 31 00:01:57,02 --> 00:02:07,08 Type ping space 10.0.1.4. 32 00:02:07,08 --> 00:02:15,01 Press Enter. 33 00:02:15,01 --> 00:02:20,00 We're getting responses and our experiment is successful.