You are not logged in.

#1 2011-07-25 21:56:23

fowler
Member
Registered: 2009-01-26
Posts: 152

Set netmask/broadcast with netcfg

Is there a variable I need to set to set a broadcast or subnet address in my profile config file in /etc/network.d/eth0 for a static IP address using netcfg?  I've tried BROADCAST, MASK, NETMASK,... and I can't seem to set it.  For example I need to have an interface set to 10.16.4.200/22, but netcfg always sets it to /24 when I issue /etc/rc.d/net-profiles restart.

Offline

#2 2011-07-26 07:54:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Set netmask/broadcast with netcfg

Use the appropriate 'ip' command syntax in the IPCFG field. See /etc/network.d/examples/ethernet-iproute the ip man page for more details.

Offline

Board footer

Powered by FluxBB