5
edits
m (You have to bring the bridge interface up as well.) |
No edit summary |
||
Line 53: | Line 53: | ||
Install OpenVPN from your distribution package manager, then run the following commands (as root) to create the virtual interface and bridge it to your physical Ethernet adapter: | Install OpenVPN from your distribution package manager, then run the following commands (as root) to create the virtual interface and bridge it to your physical Ethernet adapter: | ||
<pre> | <pre> | ||
openvpn --mktun --dev | openvpn --mktun --dev Dolphin0 --dev-type tap --user john --group doe # john:doe will be running the emulator | ||
brctl addbr br0 | brctl addbr br0 | ||
brctl addif br0 | brctl addif br0 Dolphin0 | ||
brctl addif br0 eth0 # or whatever your network interface is | brctl addif br0 eth0 # or whatever your network interface is | ||
ip l set Dolphin up | ip l set Dolphin0 up | ||
ip l set br0 up | |||
ip l set Dolphin promisc on | |||
</pre> | |||
Dolphin supports multiple bridge interfaces so you'll be able to bridge multiple Dolphin instances together on the same system. Dolphin on Linux currently supports up to 32 bridges and will attempt to connect to bridges labeled from Dolphin0 to Dolphin31 sequentially until one suceeds or they all fail to connect to. Be careful with this, since if you attempt to use multiple Dolphin instances using the same broadband MAC address then games will encounter issues. | |||
For an example of how to bridge two Dolphin instances together and have two games like Mario Kart: Double Dash play with each other. | |||
<pre> | |||
openvpn --mktun --dev Dolphin0 --dev-type tap --user john --group doe # john:doe will be running the emulator | |||
openvpn --mktun --dev Dolphin1 --dev-type tap --user john --group doe | |||
brctl addbr br0 | |||
brctl addif br0 Dolphin0 | |||
brctl addif br0 Dolphin1 | |||
ip l set Dolphin0 up | |||
ip l set Dolphin1 up | |||
ip l set br0 up | ip l set br0 up | ||
ip l set Dolphin promisc on | ip l set Dolphin promisc on |
edits