I have to configure an ubuntu hardy server network interface.
The service hoster told me that this is the network data for the machine:
IP Range: 126.96.36.199 to 188.8.131.52 Netmask: 255.255.255.248 Broadcast: 184.108.40.206 Gateway: 220.127.116.11 Subnet: 18.104.22.168/29
I am only using the first IP address. I will update the /etc/hosts file with 22.214.171.124, but I am still unsure how the /etc/network/interfaces file should be. This is my plan:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 126.96.36.199 netmask 255.255.255.248 network 111.111.200.??? broadcast 188.8.131.52 gateway 184.108.40.206
As you can see I don't know how to build the network line. How would I calculate the data for the network line and what is the result?
(I changed the first 2 octets of the subnet, they are not "111.111" in the real setup.)
Edit: This is what I will use, constructed from the accepted answer below:
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 220.127.116.11 netmask 255.255.255.248 # the following line is optional/redundant, # because address and netmask are given above: network 18.104.22.168 broadcast 22.214.171.124 gateway 126.96.36.199