March 30, 201412 yr I've searched this forum and havent found any walkthrough on how to configure the virtual network invironment for xen in unraid. could anyone by chance point me in the right direction or if so inclined to throw a walkthrough up on how to configure and create virtualized nics/switches in unraid/xen? what I'm looking to do is dedicate a nic to funneling WAN to pfsense vm then a switch that connects all the other vm's/dom0 and the rest of my network to the LAN side of the pfsense vm. any help would be HUGELY appreciated UPDATE I just found this http://lime-technology.com/forum/index.php?topic=31816.msg289782#msg289782 seems to explain ALMOST what I was looking for. Is there a to use brctl in a way that it will survive a reboot?
March 31, 201412 yr Author I set up pfsense with 2 nics on pass-through I wish I could, unfortunately the system I'm running isn't vt-d capable. Sent from my SCH-I605 using Tapatalk
March 31, 201412 yr In that case, I have no idea if you can make it work out not. You will l need to have at least a second Nic only for WAN. As for the other one being virtual, I guess technically it should work, I just don't know though. Have you tried it and you are just getting stuck at a certain point?
March 31, 201412 yr I faced a similar issue but reverted to passing through one NIC for WAN and using the bridge for local traffic. The trouble I had was creating two VIF entry's in the config and creating a second bridge in XEN so gave up. The bridge works fine and so far have had transfer speeds up to 320MB/s between SSD's.
March 31, 201412 yr Author I have more than one nic on the system. My apologies for an unclear description, I have 3 nics available, just no idea how to allocate a different bridge for each nic. Sent from my SCH-I605 using Tapatalk
April 1, 201412 yr You would need to create another bridge (not sure at what time or how in unRAID) and then specify that to the VM in the cfg file. Would it be better to create direct tunnels ETH0 / ETH1 / ETH2 instead of creating Bridge0 / Bridge1 / Bridge2 http://toic.org/blog/2008/multiple-network-interfaces-in-xen/#.UzojIfkaYoI
April 1, 201412 yr Author ok, created the 2nd and 3rd bridge through these lines in the go file # xen bridge config brctl delif xenbr0 eth0 eth1 ### setup for eth0 & xenbr1 brctl addbr xenbr1 brctl stp xenbr1 on brctl addif xenbr1 eth0 ### setup for eth1 and xenbr2 brctl addbr xenbr2 brctl stp xenbr2 on brctl addif xenbr2 eth1 xenbr0 is setup through the webui which automatically adds eth0 & eth1 hence the delif entries went to test to see if it worked and realized that I honestly have no clue how to setup the cfg file for pfsense LOL here's what I'm using (it doesn't work at all) name="pfsense" bootloader='pygrub' memory=512 vcpus=2 disk=['phy:/mnt/cache/domains/pfsense/pfsense.img,hda,w','phy:/mnt/cache/domains/pfsense/pfsense.iso,hdc:cdrom,r'] vif=['mac=00:16:3e:35:4t:88,bridge=xenbr1','mac=00:16:3e:36:3t:87,bridge=xenbr2'] boot="ncd" vnc='1' vnclisten='0.0.0.0' vncpassword=''
April 3, 201412 yr Author With the help of Smakovits I got the vm up and running, installed pfsense and.... now im back to the network config, added some lines to my go file in order to issue ip addresses to xenbr1 & xenbr2 which now looks like # xen bridge config brctl delif xenbr0 eth0 eth1 ### setup for xenbr1 brctl addbr xenbr1 brctl stp xenbr1 on brctl addif xenbr1 eth0 Ifconfig xenbr1 192.168.1.X netmask 255.255.255.0 ### setup for xenbr2 brctl addbr xenbr2 brctl stp xenbr2 on brctl addif xenbr2 eth1 ifconfig xenbr2 10.0.0.X netmask 255.255.255.0 After reboot the nics traded identifiers though (ie used to be nic1=eth0 nic2=eth1 nic3=eth2, after reboot nic1=eth1 nic2=eth0 nic3=eth2) seems that with each reboot the nics get randomly given identities. Anyone know of a work around for this, or perhaps going the brctl/ifconfig route isnt the way to go...
Archived
This topic is now archived and is closed to further replies.