1 00:00:00,005 --> 00:00:01,004 - [Instructor] In Windows, 2 00:00:01,004 --> 00:00:03,007 one of the first network troubleshooting tools 3 00:00:03,007 --> 00:00:06,002 you will use is IP config. 4 00:00:06,002 --> 00:00:09,004 It allows you to quickly verify IP information configured 5 00:00:09,004 --> 00:00:11,006 on network interfaces. 6 00:00:11,006 --> 00:00:13,009 I start by opening a command prompt. 7 00:00:13,009 --> 00:00:16,008 I can select start and type CMD 8 00:00:16,008 --> 00:00:20,003 and then hit enter. Typing IP config 9 00:00:20,003 --> 00:00:24,000 with no additional parameters shows me all 10 00:00:24,000 --> 00:00:26,000 of the network interfaces on my computer, 11 00:00:26,000 --> 00:00:28,007 along with IPV six addresses, IPV 12 00:00:28,007 --> 00:00:33,003 four addresses, sub-net mask and default gateway. 13 00:00:33,003 --> 00:00:35,004 Any interfaces that are unplugged show 14 00:00:35,004 --> 00:00:37,005 up as media disconnected. 15 00:00:37,005 --> 00:00:40,007 I'm going to go ahead and clear the screen. 16 00:00:40,007 --> 00:00:43,001 There is quite a bit more information that can be shown 17 00:00:43,001 --> 00:00:47,005 by typing IP config/all. 18 00:00:47,005 --> 00:00:50,001 This shows the same output as the previous command 19 00:00:50,001 --> 00:00:53,001 but also gives the physical address or Mac address 20 00:00:53,001 --> 00:00:56,005 for each interface, whether DHCP is enabled or not, 21 00:00:56,005 --> 00:00:58,007 when the DHCP and lease was obtained, 22 00:00:58,007 --> 00:01:01,007 and when it will expire. /all also 23 00:01:01,007 --> 00:01:02,009 lists the IP address 24 00:01:02,009 --> 00:01:06,008 of the DHCP and or manually configured DNS servers. 25 00:01:06,008 --> 00:01:09,004 If DHCP is enabled on my network 26 00:01:09,004 --> 00:01:11,005 there are additional control commands I can use 27 00:01:11,005 --> 00:01:13,001 with IP config. 28 00:01:13,001 --> 00:01:17,001 If there's an IP address assigned via DHCP to an interface 29 00:01:17,001 --> 00:01:22,008 IP config/release will remove it. 30 00:01:22,008 --> 00:01:24,007 By default, if I enter the command 31 00:01:24,007 --> 00:01:27,004 without specifying a specific interface 32 00:01:27,004 --> 00:01:31,006 it will release the DHCP leases assigned to all interfaces. 33 00:01:31,006 --> 00:01:35,004 I can use wildcards in the interface name to make it easier. 34 00:01:35,004 --> 00:01:37,008 These are simply asterix. On this machine 35 00:01:37,008 --> 00:01:41,004 I've got wireless land adaptor wifi, so I'll type 36 00:01:41,004 --> 00:01:46,007 IPconfig/release*FI. 37 00:01:46,007 --> 00:01:49,002 Once the IPS have been released, I can query 38 00:01:49,002 --> 00:01:53,002 for new ones by issuing IPconfig/renew. 39 00:01:53,002 --> 00:01:54,009 In this case, I'm just going to hit the 40 00:01:54,009 --> 00:02:01,000 up arrow and change my command to renew. 41 00:02:01,000 --> 00:02:03,009 Again, I can choose to specify an interface or not. 42 00:02:03,009 --> 00:02:07,002 For you IPV six lovers out there, 43 00:02:07,002 --> 00:02:14,007 IPconfig/release6 and IPconfig/renew6 will control 44 00:02:14,007 --> 00:02:19,002 V6 DCP IP addresses. 45 00:02:19,002 --> 00:02:21,003 There are also a few DNS commands 46 00:02:21,003 --> 00:02:23,007 that are great troubleshooting tools. 47 00:02:23,007 --> 00:02:25,007 I can flush the local DNS cache 48 00:02:25,007 --> 00:02:32,000 with IPconfig/flushDNS. 49 00:02:32,000 --> 00:02:34,008 Alternately if I want to view the DNS cache 50 00:02:34,008 --> 00:02:41,007 I can issue IPconfig/displayDNS. 51 00:02:41,007 --> 00:02:44,007 Display DNS shows each entry, the type of record 52 00:02:44,007 --> 00:02:49,001 that it is, be it a record or C name, it's TTL, 53 00:02:49,001 --> 00:02:51,003 and ultimately what it resolved to. 54 00:02:51,003 --> 00:02:53,007 An A record will be a direct DNS 55 00:02:53,007 --> 00:02:57,001 to IP mapping, where a C name is a DNS entry that points 56 00:02:57,001 --> 00:03:00,006 to another DNS entry for ultimate resolution. 57 00:03:00,006 --> 00:03:02,005 Linux isn't wholly different. 58 00:03:02,005 --> 00:03:04,008 To list the IP addresses present on the server 59 00:03:04,008 --> 00:03:08,007 I simply type IP ADDR. 60 00:03:08,007 --> 00:03:10,006 To view the routing table information 61 00:03:10,006 --> 00:03:12,003 like the default gateway 62 00:03:12,003 --> 00:03:15,000 the IP route command can be entered. 63 00:03:15,000 --> 00:03:17,007 These simple commands are used daily 64 00:03:17,007 --> 00:03:21,000 in the world of network support and administration.