James Allsopp wrote:
> I'm trying to learn more about networking and set up BIND, LDAP and
> Nagios on a KVM virtual machine. The VM works great and I can ssh into
> it from the host, and view the nagios pages from the host. However the
> VM gets the address 192.168.1.x and the host is 192.168.1.2.

What number is 'x' above?  Hopefully some number other than .1 or .2.

> auto br0
> iface br0 inet static
>     address 192.168.1.2
>     network 192.168.1.0
>     netmask 255.255.255.0
>     broadcast 192.168.0.255
>     gateway   192.168.1.1
>     bridge_ports eth0
>     bridge_fd 0
>     bridge_hello 2
>     bridge_maxage 12
>     bridge_stp off

Remove 'network' line.  Remove 'broadcast' line.  Let the tool
calculate it from 'netmask'.  That will prevent errors such as in the
above where the broadcast setting is incorrect.  :-)  [It should have
been 192.168.1.255 not 192.168.0.255.]

I don't see any other problem.

I do not set 'bridge_hello' nor 'bridge_maxage'.  I do set
'bridge_maxwait' to 0.  YMMV.

I also use the resolvconf package and therefore also set
dns-nameservers and dns-search but that is a separate thing.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to