Hi, this post is about checking network reachability using DHCP scopes and ping.
Despite network monitoring tools monitor all network, using DHCP scopes might be a useful technique for crosscheck.
In order to do that, we can get scopes and find scope option with 003 ID (Router)
$scopes=Get-DhcpServerv4Scope
You can get scope router like this
$scopeRouter=$scope | Get-DhcpServerv4Optionvalue -Optionid 003 -ErrorAction SilentlyContinue
And you can acquire the result like
$result=Test-NetConnection $($scopeRouter.Value)
You can find the script on GitHub
https://github.com/ertugrulblt/PublicRepo/blob/master/Scan-ScopesReachability.ps1
Despite network monitoring tools monitor all network, using DHCP scopes might be a useful technique for crosscheck.
In order to do that, we can get scopes and find scope option with 003 ID (Router)
$scopes=Get-DhcpServerv4Scope
You can get scope router like this
$scopeRouter=$scope | Get-DhcpServerv4Optionvalue -Optionid 003 -ErrorAction SilentlyContinue
And you can acquire the result like
$result=Test-NetConnection $($scopeRouter.Value)
You can find the script on GitHub
https://github.com/ertugrulblt/PublicRepo/blob/master/Scan-ScopesReachability.ps1
Comments
Post a Comment