docs/powershell.md aktualisiert
This commit is contained in:
@@ -24,21 +24,36 @@ New-NetIPAddress -InterfaceIndex 3 -AddressFamily IPv4 -IPAddress '172.16.7.100'
|
||||
Set-DnsClientServerAddress -InterfaceIndex '3' -ServerAddresses ('172.16.7.11','172.16.7.12')
|
||||
```
|
||||
|
||||
## Interface
|
||||
<details>
|
||||
|
||||
<summary>Interface Name/Index auslesen</summary>
|
||||
> Command: Get-NetIPInterface -AddressFamily [IPv6/IPv4]
|
||||
```ruby
|
||||
Get-NetIPInterface -AddressFamily 'IPv6'
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## IPv6-abschalten
|
||||
<details>
|
||||
|
||||
<summary>IPv6-abschalten</summary>
|
||||
|
||||
Schaltet IPv6 komplett ab!
|
||||
> Command: Disable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
|
||||
```ruby
|
||||
Disable-NetAdapterBinding -Name 'eth0' -ComponentID ms_tcpip6
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## IPv6-DHCP-abschalten
|
||||
<details>
|
||||
|
||||
<summary>IPv6-DHCP-abschalten</summary>
|
||||
|
||||
Nur DHCPv6 abschalten
|
||||
> Command: Get-NetIPInterface -AddressFamily [IPv6/IPv4]
|
||||
```ruby
|
||||
Get-NetIPInterface -AddressFamily 'IPv6'
|
||||
```
|
||||
> Command: Set-NetIPInterface -InterfaceAlias [Name der Netzwerkkarte] -AddressFamily [IPv4/IPv6] -Dhcp Disabled
|
||||
```ruby
|
||||
Set-NetIPInterface -InterfaceAlias 'Inside' -AddressFamily 'IPv6' -Dhcp Disabled
|
||||
|
||||
Reference in New Issue
Block a user