Difference between revisions of "Ifconfig"

From Tassadar
Jump to: navigation, search
(Created page with "Ifconfig is the command-line tool that every Windows admin wishes he had. You can both check and set your IP address quickly, which makes it one of my favorite programs. ''ifco...")
 
Line 3: Line 3:
  
 
''ifconfig -a'' // displays your current network information
 
''ifconfig -a'' // displays your current network information
 +
 
''ifconfig e0a 192.168.1.9 netmask 255.255.255.0'' // sets interface e0a to the specified network settings
 
''ifconfig e0a 192.168.1.9 netmask 255.255.255.0'' // sets interface e0a to the specified network settings
  
  
 
It's important to note that the default gateway is not present in the NIC config, rather it's done through the [[route]] command.
 
It's important to note that the default gateway is not present in the NIC config, rather it's done through the [[route]] command.

Revision as of 11:31, 30 October 2011

Ifconfig is the command-line tool that every Windows admin wishes he had. You can both check and set your IP address quickly, which makes it one of my favorite programs.


ifconfig -a // displays your current network information

ifconfig e0a 192.168.1.9 netmask 255.255.255.0 // sets interface e0a to the specified network settings


It's important to note that the default gateway is not present in the NIC config, rather it's done through the route command.