ifconfig

configure a network interface

Bring up eth0 interface with ifconfig, using netmask 255.255.255.0
copy
232
53
ifconfig eth0 192.168.101.115 netmask 255.255.255.0 upBring up eth0 interface with ifconfig, using netmask 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.