Exact meaning of netmask for ifconfig ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi! 

As I am configoring a rather unusual network setup, I must know the exact meaning of 
the NETMASK (and BROADCAST) paramaters of the ifconfig command. 

Currently I use : 

ifconfig eth0 122.122.122.122 netmask 255.255.255.255 

(IP not real ) 

"ifconfig eth0" then prints, that eth0 has a broadcast address of 122.255.255.255, which 
does not look right. 

Later I set this routing : 

route add 10.49.1.1 dev eth0 
route add default gw 10.49.1.1 

Will this work ? 

I am currently testing under knoppix 3.7 on a single PC, not in the real target network. 

Background or "Why am I doing this" ? 

A PC will be conncted to an ADSL modem. It will have a PPPoE session to the ISP. 
Two other PCs will be connected to the first PC. 
The ISP assigned two static IP adresses, that I want to set for the two PCs ( not the "router" PC ). 

Regards, 
David Bala.ic 

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux