To explain the comment here a little more, basically what you need to do is
- connect to both ethernet and wifi, you should now have 2 interfaces showing in
ifconfig -a.
Let's assume the wifi IP is 192.168.0.11 and the ethernet is 10.1.1.45. Wifi gateway is 192.168.0.1 and the ethernet gateway is 10.1.1.1
- now you need to setup the routing table to send some traffic via ethernet and the rest via wifi. Lets say traffic destined for a couple of ethernet internal subnets - all
10.0.0.0/8 addresses (and for some strange reason) 149.9.1.0/24 should go via ethernet and everything else can go to wifi
Disclaimer - I dont have an ubuntu vm handy to test, these are the commands I use on a Mac to do the same thing
$ route add 10.0.0.0/8 10.1.1.1
$ route add 149.9.1.0/24 10.1.1.1
netstat -rn will show the routing table:
$ netstat -rn
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.0.0 10.1.1.1 255.0.0.0 UG 0 0 0 eth1
149.9.1.0 10.1.1.1 255.255.255.0 UG 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
169.254.169.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.0.1 0.0.0.0 255.255.0.0 U 0 0 0 eth0
you might need to muck around with the ordering of the interfaces to make it work. netstat and ip will be your friends here.