in the absence of netmask and broadcast parameters, i believe ifconfig
ends up with the "natural" masks and broadcast addresses that would
correspond with the network address.  (i think getnetbyname or
getnetbyaddr actually are the routinges doing this).

net 63 is a class a, so use a class a netmask, etc.

we changed the script that does our ifconfig to add the missing
parameters.

in bsd, there's a convention which can be used in /etc/networks
to define such things institutionally, as well as name networks.
dunno about linux.

On Fri, Mar 09, 2001 at 04:14:15PM -0800, Matthew Schalit wrote:
> 
> Well I'm a bit confused today trying to understand
> how Oxygen-021401 calculates the netmasks of my nics.
> 
> 
> 
> I'm guessing that network.conf is where the nics are
> setup, so I filled out the fields in there:
> 
> 
> -------------------------------------------
> IF1_IFNAME=eth0
> IF1_IPADDR=63.194.213.179
> IF1_NETWORK=63.194.213.0
> IF1_STATE=up
> 
> IF2_IFNAME=eth1
> IF2_IPADDR=10.1.1.254
> IF2_NETWORK=10.1.1.0
> IF2_STATE=up
> --------------------------------------------
> (clearly my netmask is 255.255.255.0 for both IF's)
> 
> 
> 
> Both the following commands concur that eth0 and eth1 
> get incorrect netmasks and broadcasts:
> 
>    ifconfig -a
>    ip address show
> 
> ------------------------------------------------------
> ifconfig -a
> -----------
> 
> eth0     Link encap:Ethernet  HWaddr 00:90:27:50:50:50
>          inet addr:63.194.213.179  Bcast:63.255.255.255  Mask:255.0.0.0
>          blah blah blah
> 
> 
> 
> 
> eth1     Link encap:Ethernet  HWaddr 00:90:27:30:32:34
>          inet addr:10.1.1.254  Bcast:10.255.255.255  Mask:255.0.0.0
>          blah blah blah
> ----------------------------------------------------------------
> 
> I left out ip address show because I didn't want to
> type it all in, but trust me, it had the same erroneous data.
> 
> Sooooo.....
> What'd I do?  What'd I do?
> 
> I didn't do it. . .  I'm new.
> Matthew
> 
> _______________________________________________
> Leaf-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/leaf-devel

-- 
mark seiden, [EMAIL PROTECTED], 1-(650) 592 8559 (voice) Pacific Time Zone

_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to