1. Windows
(1) To see the MAC address and IP for static assignmentarp -a(2) To see the interface name
netsh interface show interface
(3) Assign IP and MAC address
netsh interface ip add neighbors "$interface_name" "$ip_addr" "$mac_addr"
* In case to restore the connection type back to dynamic assignment
netsh interface ip delete neighbors "$interface"
ref. https://security.stackexchange.com/questions/150228/can-i-set-a-fixed-gateway-ip-and-mac-address-to-prevent-arp-spoofing
2. Linux
(1) vi /etc/ethers$mac_addr $ip_addr
ref. man ethers
No comments:
Post a Comment