[OpenIndiana-discuss] etherstub and bridge
anilj at me.com
Sun Feb 26 04:49:20 UTC 2012
What I am really trying to do is, isolate the zone, but also at the same time have it be able to talk the outside world. Going over the "real link" means it would see all the wire traffic (broadcasts etc... from the rest of the network, it isn't isolated).
There are various examples out there that do NAT'ing (assigning RFC 1918 address on the non-global zone and then doing NAT'ing on the global zone) but I would much prefer not to do that and use real routable IP addresses in the zone, but still be able to virtualize and go over it's own "virtual wire".
How would I route this traffic properly, if at all?
On Feb 25, 2012, at 10:43 AM, James Carlson wrote:
> On 2/24/12 8:06 PM, Anil Jangity wrote:
>> I tried to setup a etherstub and a vnic. I then tried to setup a bridge between that and the physical interface, as follows:
>> LINK CLASS MTU STATE BRIDGE OVER
>> igb0 phys 1500 up zbridge --
>> igb1 phys 1500 up -- --
>> workswitch0 etherstub 1500 unknown zbridge --
>> work0 vnic 1500 unknown -- workswitch0
>> zbridge0 bridge 1500 up -- workswitch0 igb0
> Perhaps a dumb question here, but why would you do that? The whole
> point of an etherstub object is that it's not connected to the outside
> world. And if you want a connection to the outside world, why not just
> create the vnic on top of a real link?
> That aside, I think you might get further using 'dladm create-simnet'
> rather than an etherstub. A simnet is a simulated Ethernet interface.
> As for the "STATE unknown" bit, I believe that's because etherstubs
> don't have physical links and thus don't have physical link status.
> It's probably harmless.
> James Carlson 42.703N 71.076W <carlsonj at workingcode.com>
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
More information about the OpenIndiana-discuss