I'm a somewhat new/inexperienced person which has started on an IT career path. I've done things like setup services in aws and run webservers on machines up to now. What I'm trying to do now is setup a machine at home, which has Centos7 installed, and have a set of VM's (QEmu) and/or docker containers hosted on it which is able to be access publically.
I have gliffyfied what I think the setup should be like. Link
The biggest problem I'm facing is assigning my server machine a (internal) static IP and having static IP's for each vm and container. Frankly I haven't managed to assign my machine a static IP and setup a virtual bridge without loosing internet connectivity. I've been following a few blogs and tutorials here and there but I'm quite confused now.
So here I go:
- Are there any glaring holes in my initial thinking?
- What purpose does a virtual bridge serve?
- Do I need a virtual bridge per VM and Container?
- What kind of mechanism do i need to use to give my VM's and Containers static IP's (AND keep internet connectivity)
- Whats the best method to handle having only 1 public IP? Port forwarding on the Router? Routing based on hostname from the Router? Another method?
- How do I best make use of the 4 RJ45/Ethernet ports on my machine?
- What is "Network Manager" (apart from what you can gleam from its name) and why does it keep giving me grief?
File ifconf-enp3s0
Code: Select all
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPADDR=192.168.2.1
PREFIX=24
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp3s0
NM_CONTROLLED=no
UUID=e698bc20-0933-449a-bdc5-fd8d63aadf3f
DEVICE=enp3s0
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
BRIDGE=br0
Code: Select all
TYPE=Bridge
DEVICE=br0
BOOTPROTO=static
IPADDR=192.168.2.1
NETMASK=225.225.225.0
GATEWAY=192.168.1.1
PREFIX=24
ONBOOT=yes
NM_CONTROLLED=no
DELAY=0