mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Compare commits
No commits in common. "2ed1c92675605073e0a9c9e2a43c04c63938808c" and "06f212838e32a6a11ace4616ee8265907695ad71" have entirely different histories.
2ed1c92675
...
06f212838e
2 changed files with 0 additions and 10 deletions
|
@ -1,6 +1,4 @@
|
|||
### Command Snippets
|
||||
- [Ansible Snippets](Ansible%20Snippets.md)
|
||||
- [Bash Commands](Bash%20Commands.md)
|
||||
- [Docker - Miscellaneous](Docker%20-%20Miscellaneous.md)
|
||||
- [Docker Run](Docker%20Run.md)
|
||||
- [Windows Snippets](Windows%20Snippets.md)
|
|
@ -1,8 +0,0 @@
|
|||
- Get IP addresses of Hyper-V VMs
|
||||
```powershell
|
||||
get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize
|
||||
```
|
||||
- Enable traffic forwarding from WSL to Hyper-V `vEthernet (WSL) -> vEthernet (Default Switch)`
|
||||
```powershell
|
||||
Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled
|
||||
```
|
Loading…
Reference in a new issue