This is probably something simple and has already been asked but I just don't know what I'm looking for. I lack the vocabulary. I have a server running with a Debian host and have KVM installed. I have a virtual netork that's configured with DHCP and instructed it to forward connections to one of the host's NICs using a NAT connection. However, this host device has more than one NIC, one that is connected to an external network, and one that in not being used. Is it possible to set up a bridged connection between my NAT virtual network and this other unused NIC? The idea would be to allow other physical devices to connect to this virtual network and get an IP from it which will allow this other physical device to communicate with the virtual machines running on the virtual network. Then any other connection requests to the outside world would be forwarded with NAT with the other NIC that's in use to connect to the internet. Where would I start and what would I be looking for to accomplish this? I have looked at some documentation however, can't seem to find what I'm looking for. If this question is unclear, please let me know and I'll try and reiterate.
Asked
Active
Viewed 1,016 times
1 Answers
2
Yes, you can do this. Add the second NIC to the internal bridge. As you are using debian, the commands might look something like this:
brctl show
Identify the bridge for your virtual network.
brctl addif <name of bridge> <name of interface>
This makes the change temporarily. To make the change permanent you should edit your config files. If you have a /etc/network/interfaces file, adding the line "bridge <name of bridge>" under the interface you'd like to be on the internal network will do the trick. If you have /etc/sysconfig/network-scripts/ folder, then you'll have a file named 'ifcfg-' and you'll need to put the changes in there. Documentation is available online for the formats for each of these files.
Andy
- 1,735