ifconfig / ipconfig Command Options
Feature / Argument |
Linux |
Windows |
/a - Display in Verbose mode all connection information |
-a |
-all |
ifconfig interface-name - Show just 1 interface |
Yes |
No |
ifconfig eth0 up - Turn interface on |
Yes |
No |
ifconfig interface-name down - Turn interface off |
Yes |
No |
ifconfig eth0 192.168.10.2 - Set interface address |
Yes |
No |
ifconfig interface-name netmask 255.255.255.0 - Set mask |
Yes |
No |
ifconfig eth0 hw ether AA:BB:CC:DD:EE:FF |
Yes |
No |
ipconfig /renew [or linux] sudo dhclient -v (get net dhcp addr) |
Yes |
Yes |
ipconfig /release [or linux] sudo dhclient -v -r (drop dhcp addr) |
Yes |
Yes |
ifconfig interface-name mtu 1000 - Set Max Trans Unit |
Yes |
No |
ifconfig eth0 broadcast 192.168.10.255 - Set broadcast |
Yes |
No |
ifconfig alias-name 192.168.10.10 - Set a new alias name |
Yes |
No |