I'm setting up an Ubuntu Server 14.04 with a wired connection (p4p1) and creating an ad-hoc wireless network. Here's my interfaces file:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto p4p1
iface p4p1 inet dhcp
# WiFi
auto wlan0
iface wlan0 inet dhcp
wireless-mode ad-hoc
wireless-channel 4
wireless-essid Augmented Learning
wireless-key 1234567890
address 192.168.0.2
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.2
Things are running smooth when one of the two interface is up, but when both are up, I can neither access Internet (via p4p1) nor access my ad-hoc network (with wlan0).
What should I do to run them both at the same time ? I don't need to share the connection.
Thanks,