I have installed the Tun/Tap driver (which is essentially a virtual point-to-point interface driver) in the global zone, and I want to make the corresponding interface visible in a non global zone.
When I run "ifconfig -a" in the global zone, I see the following: lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 zone rgZone inet 127.0.0.1 netmask ff000000 eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.254.1.103 netmask ffffff00 broadcast 10.254.1.255 ether 0:3:ba:9:59:2d eri0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 zone rgZone inet 10.254.1.105 netmask ffffff00 broadcast 10.254.1.255 tun0: flags=10008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4> mtu 1500 index 7 inet 192.168.48.1 --> 192.168.48.2 netmask ffffffff ether 0 Note the tun0 interface that I would like to make available to the non-global zone. When I run "ifconfig -a" in the non-global zone, I see the following: lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 eri0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.254.1.105 netmask ffffff00 broadcast 10.254.1.255 Note that there is no tun0:1. When I run "netstat -rn" on my non-global zone, I see the following: Routing Table: IPv4 Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 10.1.1.0 192.168.48.2 UG 1 0 10.254.1.0 10.254.1.105 U 1 90 eri0:1 224.0.0.0 10.254.1.105 U 1 0 eri0:1 default 10.254.1.1 UG 1 125 127.0.0.1 127.0.0.1 UH 4 203 lo0:1 Note the route from 10.1.1.0 to 192.168.48.2, which is associated with my tun0 device. Unfortunately, the non-global zone does not have a route for the address 192.168.48.2. If I run "netstat -rn" from a global zone, I see the following: Routing Table: IPv4 Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 192.168.48.2 192.168.48.1 UH 1 0 tun0 10.1.1.0 192.168.48.2 UG 1 0 10.254.1.0 10.254.1.103 U 1 204 eri0 224.0.0.0 10.254.1.103 U 1 0 eri0 default 10.254.1.1 UG 1 125 127.0.0.1 127.0.0.1 UH 30 431 lo0 In this case, we see the route to 192.168.48.2 via 192.168.48.1 that we need to also have on the non-global zone. I haven't done a lot of work with Solaris zones, so there may be something simple I am missing here. Any help would be appreciated. This message posted from opensolaris.org _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org