Get-NetAdapter # Interface index number (ex.10)
New-NetIPAddress -IPAddress "172.20.200.102" -PrefixLength 26 -InterfaceIndex 10 -DefaultGateway 172.20.200.65
Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses "172.20.200.102"Rename-Computer -NewName "ns" -Restart -Force
$AdminAccount = Get-LocalUser -Name Administrator
Rename-LocalUser -InputObject $AdminAccount -NewName "cyber"
< Checking >
ipconfig -all
updata-alternative --set iptables /usr/sbin/iptables-legacy
vim /etc/rc.local
#!/bin/bash
iptables -t nat -D POSTROUTING 1
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
exit 0
chmod +x /etc/rc.local
systemctl restart rc-local
updata-alternative --set iptables /usr/sbin/iptables-legacy