PDA

View Full Version : Problem on a addition block Ip



magic1000
02-06-2011, 11:40 PM
I have a main IP is: 217.79.26.18 and a additions subnet is: 46.22.33.192/27

Now my /etc/network/interfaces file:


auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 217.79.26.18
netmask 255.255.255.0
broadcast 217.79.26.255
gateway 217.79.26.1
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet static
address 46.22.33.192
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0


It's corrected or not?
A guy tell me, networking must:



auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 217.79.26.18
netmask 255.255.255.0
broadcast 217.79.26.255
gateway 217.79.26.1
post-up echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp

auto vmbr0
iface vmbr0 inet static
address 46.22.33.192
netmask 255.255.255.224
bridge_ports none
bridge_stp off
bridge_fd 0


Thank you.

dietmar
02-07-2011, 06:21 AM
255.255.255.224 is the correct netmask for "46.22.33.192/27"