Bridge two ethernet interfaces in virtualbox. CentOS 7 [closed]

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I created the test environment in the VirtualBox:
Three virtual machines:
1 - like end-point host (IP static 192.168.1.2) - one ethernet interface connected to virtual lan (intnet1)
2 - like bridge host (IP 192.168.1.1) - two ethernet interfaces connected to virtual lan (intnet1 intnet2 respectively)
3 - like end-point host (IP static 192.168.1.3) - one ethernet interface connected to virtual lan (intnet2)
All machines clearly installed CentOS Linux release 7.3.1611 (Core)
configurations of network interfaces:
Machine-1: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-3: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth0)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s3
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth1)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s8
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-br0)
DEVICE=br0
TYPE=Bridge
STP=off
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NM_CONTROLLED=no
When I starts all interfaces on all machines:
Machine-1 can reach with Machine-2 via enp0s3
Machine-3 can not reach any other machine and other machine can not reach the Machine-3
How using Machine[1,3] reach any of them usign bridge?
What I doing wrong? Or may be I forgott to something else...
Thanks in advance!
centos virtualbox bridge
closed as off-topic by Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij Mar 21 at 19:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." â Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij
add a comment |Â
up vote
0
down vote
favorite
I created the test environment in the VirtualBox:
Three virtual machines:
1 - like end-point host (IP static 192.168.1.2) - one ethernet interface connected to virtual lan (intnet1)
2 - like bridge host (IP 192.168.1.1) - two ethernet interfaces connected to virtual lan (intnet1 intnet2 respectively)
3 - like end-point host (IP static 192.168.1.3) - one ethernet interface connected to virtual lan (intnet2)
All machines clearly installed CentOS Linux release 7.3.1611 (Core)
configurations of network interfaces:
Machine-1: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-3: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth0)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s3
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth1)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s8
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-br0)
DEVICE=br0
TYPE=Bridge
STP=off
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NM_CONTROLLED=no
When I starts all interfaces on all machines:
Machine-1 can reach with Machine-2 via enp0s3
Machine-3 can not reach any other machine and other machine can not reach the Machine-3
How using Machine[1,3] reach any of them usign bridge?
What I doing wrong? Or may be I forgott to something else...
Thanks in advance!
centos virtualbox bridge
closed as off-topic by Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij Mar 21 at 19:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." â Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij
While trying to ping any machine I see right MAC-addresses of destinations hosts. But no packages in tcpdump
â i.kimiko
Mar 12 at 19:59
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I created the test environment in the VirtualBox:
Three virtual machines:
1 - like end-point host (IP static 192.168.1.2) - one ethernet interface connected to virtual lan (intnet1)
2 - like bridge host (IP 192.168.1.1) - two ethernet interfaces connected to virtual lan (intnet1 intnet2 respectively)
3 - like end-point host (IP static 192.168.1.3) - one ethernet interface connected to virtual lan (intnet2)
All machines clearly installed CentOS Linux release 7.3.1611 (Core)
configurations of network interfaces:
Machine-1: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-3: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth0)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s3
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth1)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s8
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-br0)
DEVICE=br0
TYPE=Bridge
STP=off
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NM_CONTROLLED=no
When I starts all interfaces on all machines:
Machine-1 can reach with Machine-2 via enp0s3
Machine-3 can not reach any other machine and other machine can not reach the Machine-3
How using Machine[1,3] reach any of them usign bridge?
What I doing wrong? Or may be I forgott to something else...
Thanks in advance!
centos virtualbox bridge
I created the test environment in the VirtualBox:
Three virtual machines:
1 - like end-point host (IP static 192.168.1.2) - one ethernet interface connected to virtual lan (intnet1)
2 - like bridge host (IP 192.168.1.1) - two ethernet interfaces connected to virtual lan (intnet1 intnet2 respectively)
3 - like end-point host (IP static 192.168.1.3) - one ethernet interface connected to virtual lan (intnet2)
All machines clearly installed CentOS Linux release 7.3.1611 (Core)
configurations of network interfaces:
Machine-1: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-3: (/etc/sysconfig/network-scripts/ifcfg-enp0s3)
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.3
NETMASK=255.255.255.0
NM_CONTROLLED=no
NAME=enp0s3
DEVICE=enp0s3
ONBOOT=yes
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth0)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s3
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-eth1)
TYPE=Ethernet
NM_CONTROLLED=no
DEVICE=enp0s8
ONBOOT=yes
BRIDGE=br0
Machine-2: (/etc/sysconfig/network-scripts/ifcfg-br0)
DEVICE=br0
TYPE=Bridge
STP=off
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NM_CONTROLLED=no
When I starts all interfaces on all machines:
Machine-1 can reach with Machine-2 via enp0s3
Machine-3 can not reach any other machine and other machine can not reach the Machine-3
How using Machine[1,3] reach any of them usign bridge?
What I doing wrong? Or may be I forgott to something else...
Thanks in advance!
centos virtualbox bridge
asked Mar 7 at 16:01
i.kimiko
112
112
closed as off-topic by Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij Mar 21 at 19:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." â Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij
closed as off-topic by Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij Mar 21 at 19:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." â Jeff Schaller, Wouter Verhelst, G-Man, dr01, jimmij
While trying to ping any machine I see right MAC-addresses of destinations hosts. But no packages in tcpdump
â i.kimiko
Mar 12 at 19:59
add a comment |Â
While trying to ping any machine I see right MAC-addresses of destinations hosts. But no packages in tcpdump
â i.kimiko
Mar 12 at 19:59
While trying to ping any machine I see right MAC-addresses of destinations hosts. But no packages in tcpdump
â i.kimiko
Mar 12 at 19:59
While trying to ping any machine I see right MAC-addresses of destinations hosts. But no packages in tcpdump
â i.kimiko
Mar 12 at 19:59
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
I forgot to enable promiscuous mode for ethernet interfaces in settings for virtual machine-2. After that bridge works fine for me.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
I forgot to enable promiscuous mode for ethernet interfaces in settings for virtual machine-2. After that bridge works fine for me.
add a comment |Â
up vote
1
down vote
accepted
I forgot to enable promiscuous mode for ethernet interfaces in settings for virtual machine-2. After that bridge works fine for me.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
I forgot to enable promiscuous mode for ethernet interfaces in settings for virtual machine-2. After that bridge works fine for me.
I forgot to enable promiscuous mode for ethernet interfaces in settings for virtual machine-2. After that bridge works fine for me.
answered Mar 13 at 12:22
i.kimiko
112
112
add a comment |Â
add a comment |Â
While trying to ping any machine I see right MAC-addresses of destinations hosts. But no packages in tcpdump
â i.kimiko
Mar 12 at 19:59