LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Broadcast and dhcp Problem (https://www.linuxquestions.org/questions/linux-newbie-8/broadcast-and-dhcp-problem-469583/)

shipon_97 08-01-2006 12:20 AM

Broadcast and dhcp Problem
 
Friends ,

1 )I found different site/forum to add IP in the following way :

"ifconfig eth0 202.59.129.254 netmask 255.255.255.252 broadcast 202.59.129.255 up "
with this command ?


2) In the "/etc/dhcpd.conf" file i find the following line :
subnet 192.168.10.0 netmask 255.255.255.0

plz anyone can tell me , what is the meaning of this line ?

If my server IP is "192.168.10.1" and Netmask "255.255.255.240" then what changes to make the above line ?

Plz help ............

baikonur 08-01-2006 08:29 AM

ifconfig eth0 netmask 255.255.255.240 192.168.10.2

for example

EDIT:: with DHCP?

edit /etc/network/interfaces

man interfaces

shipon_97 08-01-2006 09:56 PM

Broadcast and dhcp Problem
 
Dear baikonur,

Actually I want to know what is the benefit to add "Broadcast Address" with IP Like Following way :

"ifconfig eth0 202.59.129.254 netmask 255.255.255.252 broadcast 202.59.129.255 up "

2) And In the "/etc/dhcpd.conf" file i find the following line (3rd Line):

"subnet 192.168.10.0 netmask 255.255.255.0 "
what represents this line in "dhcpd.conf" file ?

And If My server Ip is 192.168.10.1 and Subnet is "255.255.255.240" then is any changes to make for the above line ?


All times are GMT -5. The time now is 06:43 AM.