Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
ifconfig [2016/04/27 13:59]
steve
ifconfig [2016/04/27 14:07]
steve
Line 49: Line 49:
 ifconfig eth0 192.168.1.1 ifconfig eth0 192.168.1.1
 </​code>​ </​code>​
 +
 +Note that if you don't set a broadcast or netmask address when setting the ip (fex: ''​ifconfig eth0 192.168.1.1''​),​ then ''​ifconfig''​ will set them to the default values. Broadcast would be ''​192.168.1.255''​ and netmask would be ''​255.255.255.0''​.
  
 ** Remove the IP address of an interface ** ** Remove the IP address of an interface **
Line 59: Line 61:
  
 ** Set the IP address and broadcast of an interface ** ** Set the IP address and broadcast of an interface **
- 
-Note that if you don't set a broadcast or netmask address when setting the ip (fex: ''​ifconfig eth0 192.168.1.1''​),​ then ''​ifconfig''​ will set them to the default values. Broadcast would be ''​192.168.1.255''​ and netmask would be ''​255.255.255.0''​. 
  
 <​code>​ <​code>​
Line 71: Line 71:
 ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 ifconfig eth0 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0
 </​code> ​ </​code> ​
 +
 +** Set the MAC address of an interface **
 +
 +<​code>​
 +ifconfig eth0 hw ether 00:​16:​3E:​24:​13:​59
 +</​code>​