I've got a problem concerning the integration of a TP-LINK Access Point into a virtual network segment.
Current Setup: Ubuntu 12.04 vmware machine
- eth0 - NAT mode (turned off when eth2 is active)
- eth1 - connected to virtual network segment
- eth2 - bridged to physical NIC
br0 - bridge in ubuntu between eth1 and eth2
# /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto eth1 iface eth1 inet manual auto eth2 iface eth2 inet manual auto br0 iface br0 inet static address 10.10.1.1 netmask 255.255.255.0 broadcast 10.10.1.255 bridge_ports eth1 eth2
I would like to integrate the TP-LINK Access point into the internal network. A dhcp- as well as an apache web server runs on 10.10.1.1, which I'd like to access through the AP, connected to the host NIC, which is bridged in the virtual machine.
What I tried is to bridge the interfaces eth1 and eth2 to integrate the AP into my virtual network. I see the SSID of my AP, although I cannot connect. (Security is turned off completely).
I configured the AP as following (except for the security feature):
My question now is, if this can work at all, or if there are any problems with 'bridging' the host NIC and run a dhcp server on it(does it interfere with the host)?
Or are there any other possibilities to get devices connected to the AP access the virtual network segment on eth1?
Thanks in advance Cyril
So after two days I've found a solution.
eth0 doesn't even have to be turned off. The problem really is the bridging mode from the virtual machine. The host machine automatically switched from WLAN to Ethernet when a cable was connected. Thus the VM didn't have full access to the AP.
VMware Workstation > Edit > Add Network > (Select a VMnet_) OK > (Select 'Bridged' and make sure you select the Ethernet Card instead of automatic) Apply > OK
Now simply replace the NIC from your virtual machine:
VM > Settings.. > (Select the Network adapter) > (Select 'Custom: Specific virtual network' and chose the VMnet_ you created before) > OK
Now make sure your host is using the WLAN interface and doesn't interfere with the normal NIC.
Also I had to change /etc/default/isc-dhcp-server to work on br0.
#/etc/default/isc-dhcp-server #BEFORE: INTERFACES="eth1" INTERFACES="br0" # NOW
You may want to restart your machine now.