Kyle Fuller
2009-Apr-17 23:07 UTC
[crossbow-discuss] Crossbow router in a zone, with a internet connection and a external switch
I have two nic''s on my box, rtls0 (connected to a hardware router) and nge0 (connected to a switch which will share from my solaris box). Here is how I think it needs to be done. Please can someone correct me, and answer the questions below. dladm create-etherstub switch0 dladm create-vnic -d switch0 1 dladm create-vnic -d switch0 2 make nic nge0 go over switch0 (etherstub), don''t know how to do this. create a zone, called router, can have vnic1, and rtls0 (internet connection). It will becomd 192.168.0.1 on vnic1, and will run a dhcp server. It will route connections through rtls0 (to 192.168.5.1 (my hardware router)), the router zone will be 192.168.5.2. The main solaris (global zone) will use vnic2 to connect to the internet (as 192.168.0.2, etc). I have no idea how to set that up? I can plug a physical switch into my nic (nge0). Then plug another computer or server into this switch, and the router zone will assign it a IP (via dhcp) and route them internet. I could also create more virtual nic''s, and attach them to etherstub (switch0). For other zones to connect to the internet? Will this work? How can I route the connection through rtls0? And how would I forward a port to a machine on the router''s network? like ssh to 192.168.0.4. Thanks for your help. -- This message posted from opensolaris.org
Nicolas Droux
2009-Apr-18 16:12 UTC
[crossbow-discuss] Crossbow router in a zone, with a internet connection and a external switch
On Apr 17, 2009, at 5:07 PM, Kyle Fuller wrote:> I have two nic''s on my box, rtls0 (connected to a hardware router) > and nge0 (connected to a switch which will share from my solaris box). > > Here is how I think it needs to be done. Please can someone correct > me, and answer the questions below. > > dladm create-etherstub switch0 > dladm create-vnic -d switch0 1 > dladm create-vnic -d switch0 2 > make nic nge0 go over switch0 (etherstub), don''t know how to do this.You don''t have the create a switch separately and then associate it with your NIC. You can directly create VNICs on a physical NIC, and Crossbow will then do virtual switching between the VNICs that are created on top of the same physical NIC. As an alternative to a physical NIC, you can create VNICs on top of etherstubs, which allows you to build virtual switches which are completely independent from physical hardware. For examples on how to build networks in a box I''d suggest the following blog entries: http://blogs.sun.com/sunay/entry/network_in_a_box_creating http://blogs.sun.com/droux/entry/private_virtual_networks_for_solaris We have more documentation and examples here: http://opensolaris.org/os/project/crossbow/Docs Nicolas.> > > create a zone, called router, can have vnic1, and rtls0 (internet > connection). It will becomd 192.168.0.1 on vnic1, and will run a > dhcp server. It will route connections through rtls0 (to 192.168.5.1 > (my hardware router)), the router zone will be 192.168.5.2. > > The main solaris (global zone) will use vnic2 to connect to the > internet (as 192.168.0.2, etc). I have no idea how to set that up? > > I can plug a physical switch into my nic (nge0). Then plug another > computer or server into this switch, and the router zone will assign > it a IP (via dhcp) and route them internet. > > I could also create more virtual nic''s, and attach them to etherstub > (switch0). For other zones to connect to the internet? > > Will this work? How can I route the connection through rtls0? > > And how would I forward a port to a machine on the router''s network? > like ssh to 192.168.0.4. > > Thanks for your help. > -- > This message posted from opensolaris.org > _______________________________________________ > crossbow-discuss mailing list > crossbow-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/crossbow-discuss-- Nicolas Droux - Solaris Kernel Networking - Sun Microsystems, Inc. nicolas.droux at sun.com - http://blogs.sun.com/droux