Microsoft_Press_ebook_Introducing_Windows_Server_2012_R2_PDF.pdf

Dnsserver 172161150 computername host30

This preview shows page 113 - 115 out of 242 pages.

DNSServer : 172.16.11.50 ComputerName : HOST30 InterfaceAlias : Ethernet InterfaceIndex : 12 InterfaceDescription : Broadcom NetXtreme Gigabit Ethernet NetAdapter.LinkLayerAddress : 00-24-E8-50-17-F4 NetAdapter.Status : Disconnected
Image of page 113

Subscribe to view the full document.

102 CHAPTER 5 Networking Network diagnostic cmdlets in Windows Server 2012 R2 Although the above cdmlets can help you troubleshoot a lot of networking issues, they’re sometimes hard to apply in certain situations. So let’s now examine some of the network troubleshooting improvements introduced in Windows PowerShell in Windows Server 2012 R2. For many network admins, the first and most useful improvement is the addition of a new cmdlet named Test-NetConnection that can be used to perform ICMP and TCP connectivity tests. Let’s now see this in action. We’ll perform all our tests from a Windows PowerShell prompt on server HOST30.contoso.com as before. First, let’s test network connectivity between HOST30 and another server named HOST50 on our network: PS C:\> Test-NetConnection HOST50.contoso.com ComputerName : HOST50.contoso.com RemoteAddress : 172.16.11.50 InterfaceAlias : vEthernet (Broadcom NetXtreme Gigabit Ethernet #2 - Virtual Switch) SourceAddress : 172.16.11.30 PingSucceeded : True PingReplyDetails (RTT) : 0 ms The Test-NetConnection cmdlet can also be used to test network connectivity with hosts on remote networks and over the Internet. For example, let’s see if HOST30 can establish network connectivity with the Microsoft Xbox website: PS C:\> Test-NetConnection w ww.xbox.com ComputerName : w ww.xbox.com RemoteAddress : 184.29.219.150 InterfaceAlias : vEthernet (Broadcom NetXtreme Gigabit Ethernet #2 - Virtual Switch) SourceAddress : 172.16.11.30 PingSucceeded : True PingReplyDetails (RTT) : 26 ms The -TraceRoute option can also be used to trace the exact network route used to establish connectivity with the remote site: PS C:\> Test-NetConnection w ww.xbox.com -TraceRoute ComputerName : w ww.xbox.com RemoteAddress : 184.29.219.150
Image of page 114
Improved network diagnostics CHAPTER 5 103 InterfaceAlias : vEthernet (Broadcom NetXtreme Gigabit Ethernet #2 - Virtual Switch) SourceAddress : 172.16.11.30 PingSucceeded : True PingReplyDetails (RTT) : 29 ms TraceRoute : 172.16.11.1 142.161.5.200 142.161.5.65 4.28.68.21 4.69.158.146 4.69.138.166 4.68.111.70 184.29.219.150 You can also use Test-NetConnection to test connectivity on a specific TCP port by including the -Port option in your command. For example, let’s verify that the Xbox website can be accessed on the standard HTTP port which is TCP port 80: PS C:\> Test-NetConnection w ww.xbox.com -Port 80 ComputerName : w ww.xbox.com RemoteAddress : 184.29.219.150 RemotePort : 80 InterfaceAlias : vEthernet (Broadcom NetXtreme Gigabit Ethernet #2 - Virtual Switch) SourceAddress : 172.16.11.30 PingSucceeded : True PingReplyDetails (RTT) : 28 ms TcpTestSucceeded : True You can also use an alias like RDP to verify TCP connectivity with the well-known port for the Remote Desktop Protocol, which is TCP port 3389. For example, let’s see if HOST30 can establish connectivity to TCP port 3389 on HOST50: PS C:\> Test-NetConnection HOST50 RDP ComputerName : HOST50 RemoteAddress : 172.16.11.50 RemotePort : 3389 InterfaceAlias : vEthernet (Broadcom NetXtreme Gigabit Ethernet #2 - Virtual Switch) SourceAddress : 172.16.11.30 PingSucceeded : True PingReplyDetails (RTT) : 0 ms TcpTestSucceeded : True
Image of page 115
You've reached the end of this preview.
  • Spring '16

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern