I am learning networking by building a small virtual network within a CentOS host. I need some guidance at the highest level to start planning:
The Scenario:
A CentOS 7 HOST needs to have a CentOS 7 GUEST, and both the HOST and the GUEST must each have different static public IP addresses. I understand that this is accomplished by creating a bridge on the HOST.
The HOST physical box is connected via Ethernet to a router/modem that has a GATEWAY IP address of 12.34.567.8aa
. There are 5 public static IP addresses available, including 12.34.567.111
, 12.34.567.222
, 12.34.567.333
, 12.34.567.444
, and 12.34.567.555
How should the static public IP addresses be defined for the HOST, the BRIDGE, and the GUEST? Should they have three separate IP addresses? Or should the HOST and the BRIDGE have the same IP?
The current ip addresses as defined on the HOST are as follows. The HOST's connection to the router/modem is eno1
, and the BRIDGE is defined as br1
.
[root@remote-host ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether making:this:anonymous brd making:this:anonymous
inet 12.34.567.111/29 brd 12.34.567.8xx scope global eno1
valid_lft forever preferred_lft forever
inet6 making:this:anonymous scope global dynamic
valid_lft 414553sec preferred_lft 414553sec
inet6 making:this:anonymous scope global noprefixroute dynamic
valid_lft 2419198sec preferred_lft 345598sec
inet6 making:this:anonymous scope link
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether making:this:anonymous brd making:this:anonymous
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether making:this:anonymous brd making:this:anonymous
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 1000
link/ether making:this:anonymous brd making:this:anonymous
50: br1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether making:this:anonymous brd making:this:anonymous
inet 12.34.567.111/29 brd 12.34.567.8xx scope global br1
valid_lft forever preferred_lft forever
inet6 making:this:anonymous scope link
valid_lft forever preferred_lft forever
63: vnet0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br1 state UNKNOWN qlen 1000
link/ether making:this:anonymous brd making:this:anonymous
inet6 making:this:anonymous scope link
valid_lft forever preferred_lft forever
[root@remote-host ~]#