command to set Subnet Mask

Submitted by beparas
on November 25, 2008 - 2:09am

Hello friends,
is there any command in Linux to set Subnet Mask?

Thanks in advance

In GNU/Linux, it should be...

on
November 25, 2008 - 9:35pm

Hi Ho!

Issue `ifconfig -a' to list all of the available NICs.
Next, issue `ifconfig [INTERFACE_NAME like `eth0'] netmask [NETMASK, for example, 255.255.255.0]' to configure a certain NIC.

Best regards,

Eus (FSF member #4445)

In this digital era, where computing technology is pervasive,

your freedom depends on the software controlling those computing devices.

Join free software movement today!

It is free as in freedom, not as in free beer!

Join: http://www.fsf.org/jf?referrer=4445

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.