ifconfig

configure a network interface

Change the netmask on eth1 to 255.255.255.0
copy
191
40
ifconfig eth1 netmask 255.255.255.0Change the netmask on eth1 to 255.255.255.0

details |

Options:

  • ifconfig netmaskifconfig
    Set the IP network mask for this interface. This value defaults to the usual class A, B or C network mask (as derived from the interface IP address), but it can be set to any value.