I’m making an attempt to study extra about laptop networks by establishing issues in my homelab, which features a pfSense router and a spare laptop computer which has Debian put in on it. I’ve arrange a KVM visitor on the Debian machine. My purpose is to configure issues in order that I can attain the KVM visitor from my LAN, simply as I can attain some other system on the LAN. To attain this, I’m following this information to arrange a bridge on the Debian machine: https://jamielinux.com/docs/libvirt-networking-handbook/bridged-network.html
I’m on the level the place I must put the next config into /and so on/community/interfaces:
# If not sure what 'netmask' or 'gateway' must be, ask your internet hosting supplier.
iface eth0 inet guide
auto br0
iface br0 inet static
# Use the MAC handle recognized above.
hwaddress ether f1:c2:7e:46:c8:9a
handle 192.168.3.246
netmask ?????????????????????????????????????????????
gateway 192.168.3.1
bridge_ports eth0
# If you wish to activate Spanning Tree Protocol, ask your internet hosting
# supplier first as it might battle with their community.
bridge_stp off
# If STP is off, set to 0. If STP is on, set to 2 (or higher).
bridge_fd 0
# Irrelevant, since I haven't got IPv6 configured
#iface br0 inet6 static
# handle 2001:db8::1
# netmask 64
# gateway fe80::1
# autoconf 0
My LAN seems like this:
My concept was to provide the Debian server the static IP 192.168.3.246, as a result of I perceive it needs to be outdoors the handle pool vary, however contained in the LAN (so the values I might select from are 246-254)?.
My query is: what do I put because the netmask? Ought to or not it’s 255.255.255.0 (or alternatively, 24), as a result of that’s the subnet masks of the LAN?
I’ve been making an attempt to know this by studying the manpages for interfaces, however I do not perceive how netmask
is used when I’ve a static IP.