Hello there,
I've been running a stream radio station, my clans webpage, teamspeak and some steam source game servers for about 4 years now without major changes aside debian upgrades.
I got delivered my new hp proliant server and want to setup it at home before delivering to the data center.
I'm planning to virtualize the server so I have the webservices, mailservices, steam and streamservices and gameservers in different vm's. There should be installed a windows server for hosting dayz which should get a dedicated IP. But... my network knowledge wasn't best back in my school day's and haven't changed since I have had only 1 IP with a static interface.
So I'm asking if someone would be so kind as to help me?
Let's say my first IP is: 192.168.178.97 255.255.255.192
Gateway would be 192.168.178.65
Then I've a second IP: 192.168.20.30 255.255.255.255
My interface is this by now:
My question is how should I configure the interface for the second IP and how do I give it to the virtual windows? Any help would be appreciated.
Edit: Also I've only 1 MAC available, so the traffic should be routed through iptables. The proxmox tutorial for this is too difficult to understand for me. It say's interface should contain this:
auto vmbr0iface vmbr0 inet static address 10.10.10.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE
But where's the real IP adress gone? And why is routing done via interface rather than iptables?
I've been running a stream radio station, my clans webpage, teamspeak and some steam source game servers for about 4 years now without major changes aside debian upgrades.
I got delivered my new hp proliant server and want to setup it at home before delivering to the data center.
I'm planning to virtualize the server so I have the webservices, mailservices, steam and streamservices and gameservers in different vm's. There should be installed a windows server for hosting dayz which should get a dedicated IP. But... my network knowledge wasn't best back in my school day's and haven't changed since I have had only 1 IP with a static interface.
So I'm asking if someone would be so kind as to help me?
Let's say my first IP is: 192.168.178.97 255.255.255.192
Gateway would be 192.168.178.65
Then I've a second IP: 192.168.20.30 255.255.255.255
My interface is this by now:
network interface settings
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 85.25.243.97
netmask 255.255.255.192
gateway 85.25.243.65
bridge_ports eth0
bridge_stp off
bridge_fd 0
My question is how should I configure the interface for the second IP and how do I give it to the virtual windows? Any help would be appreciated.
Edit: Also I've only 1 MAC available, so the traffic should be routed through iptables. The proxmox tutorial for this is too difficult to understand for me. It say's interface should contain this:
auto vmbr0iface vmbr0 inet static address 10.10.10.1 netmask 255.255.255.0 bridge_ports none bridge_stp off bridge_fd 0 post-up echo 1 > /proc/sys/net/ipv4/ip_forward post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eth0 -j MASQUERADE
But where's the real IP adress gone? And why is routing done via interface rather than iptables?
Last edited: