Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
ifconfig [2016/04/27 13:59] steve |
ifconfig [2016/04/27 13:59] 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> |