setting up static ip on linux

Posted by user64908 on Super User See other posts from Super User or by user64908
Published on 2012-07-05T14:56:04Z Indexed on 2012/07/05 15:18 UTC
Read the original article Hit count: 187

Filed under:
|

I understood the interface file in linux needs to be edited and the corresponding lines added.

I don't understand what network and broadcast are for, it seems extra versus a windows static ip configuration. In my case my gateway is 192.168.5.1 and my machine ip is 192.168.5.101, what would be my network and broadcast address, is the below correct and what exactly do they mean?

iface eth0 inet static
       address 192.168.5.101  
       gateway 192.168.5.1
       netmask 255.255.255.0
       network 192.168.5.0
       broadcast 192.168.5.255

© Super User or respective owner

Related posts about linux

Related posts about networking