Page 1 of 1

CentOS Host serving Ubuntu VM

Posted: 4. Mar 2016, 15:23
by sndlt
Hello V-Box people!

Need some help bridging CentOS NIC(physical) to a Ubuntu VM via Virtual-Box's bridging option.

CentOS 7 is running on UCS behind proxy(http/https) environment.
Trying to bridge through that interface so that the VM and the physical interface can be in the same subnet. (I want the physical NIC to act like a switch).

The CentOS host and Ubuntu VM can ping each other. But can't ssh into Ubuntu VM nor can Ubuntu VM ping default gw.

I tried to post as many relevant info as possible below. Thanks as always.

"/etc/sysctl"

Code: Select all

centos-2 ~]# cat /etc/sysctl.conf 
# System default settings live in /usr/lib/sysctl.d/00-system.conf.
# To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
#
# For more information, see sysctl.conf(5) and sysctl.d(5).
net.ipv4.ip_forward = 1
"ifconfig - Host"

Code: Select all

centos-2 ~]# ifconfig
enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.27.255.85  netmask 255.255.255.0  broadcast 172.27.255.255

"ifconfig - VM"

Code: Select all

ubuntu ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 172.27.255.158  netmask 255.255.255.0  broadcast 172.27.255.255
"I can ping"

Code: Select all

centos-2 ~]# ping 172.27.255.158
PING 172.27.255.158 (172.27.255.158) 56(84) bytes of data.
64 bytes from 172.27.255.158: icmp_seq=1 ttl=64 time=0.705 ms
64 bytes from 172.27.255.158: icmp_seq=2 ttl=64 time=0.314 ms

ubuntu ~]# ping 172.27.255.85
PING 172.27.255.85 (172.27.255.85) 56(84) bytes of data.
64 bytes from 172.27.255.85: icmp_seq=1 ttl=64 time=0.605 ms
64 bytes from 172.27.255.85: icmp_seq=2 ttl=64 time=0.914 ms
Trying to find logs on Linux, etc.
Will update this post with more info as necessary.