Netzwerk Tools Powershell: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 25: | Zeile 25: | ||
=Nameserver setzen= | =Nameserver setzen= | ||
*Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.85.0.10,10.30.0.11 | *Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.85.0.10,10.30.0.11 | ||
| + | =Offener Ports prüfen= | ||
| + | *Test-NetConnection ox.xinux.org -Port 143 | ||
| + | <pre> | ||
| + | ComputerName : ox.xinux.org | ||
| + | RemoteAddress : 10.30.0.11 | ||
| + | RemotePort : 143 | ||
| + | InterfaceAlias : Ethernet 2 | ||
| + | SourceAddress : 10.81.1.18 | ||
| + | TcpTestSucceeded : True | ||
| + | </pre> | ||
Version vom 17. November 2021, 17:35 Uhr
Adapter anzeigen
- Get-NetAdapter
Name InterfaceDescription ifIndex Status MacAddress ---- -------------------- ------- ------ ---------- Ethernet 2 Red Hat VirtIO Ethernet Adapter #2 10 Up 5E-E5-DE-9…
Ip Configuration anzeigen
- Get-NetIPConfiguration
InterfaceAlias : Ethernet 2
InterfaceIndex : 10
InterfaceDescription : Red Hat VirtIO Ethernet Adapter #2
NetProfile.Name : Netzwerk
IPv4Address : 10.82.70.70
IPv6DefaultGateway :
IPv4DefaultGateway : 10.82.0.1
DNSServer : 10.85.0.10
10.30.0.11
Ip Adresse setzen
- New-NetIPAddress -InterfaceIndex 10 -IPAddress 10.85.1.18 -PrefixLength 16 -DefaultGateway 10.85.0.1
Nameserver setzen
- Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.85.0.10,10.30.0.11
Offener Ports prüfen
- Test-NetConnection ox.xinux.org -Port 143
ComputerName : ox.xinux.org RemoteAddress : 10.30.0.11 RemotePort : 143 InterfaceAlias : Ethernet 2 SourceAddress : 10.81.1.18 TcpTestSucceeded : True