Sponsored Content
Operating Systems Solaris how to add a default gateway in a zone of different VLAN of global zone Post 302577557 by soliberus on Tuesday 29th of November 2011 10:34:21 AM
Old 11-29-2011
I don't fully understand your situation.

Are you saying you can ping the default gateway from within the zone, but not from the global zone?

Have you configured your zone to use ip-type=shared (default) or ip-type=exclusive

If your zone is configured as ip-type=shared it will use the global zone's default gateway etc. You cannot change any IP settings within the zone itself.

On the other hand, if you have configured your zone as ip-type=exclusive it should be a simple case of added your default gateway to the /etc/defaultrouter file within the zone.
This User Gave Thanks to soliberus For This Post:
 

9 More Discussions You Might Find Interesting

1. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies

2. Solaris

Not able to ping global zone from local zone

Hi Gurus I am not able to ping the local zone from global zone when i am trying to ping i am getting below ICMP Host Unreachable from gateway zone ( 192.268.35.210) for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210) However i can ping local zone from global please... (12 Replies)
Discussion started by: kumarmani
12 Replies

3. Solaris

[b]How to mount a folder from global zone to non global zone??

Hi All There is one folder in global zone I just want to share the same folder innon global zone. How can i do it? pls send me script for this. (2 Replies)
Discussion started by: vijaysachin
2 Replies

4. Solaris

Mounting OpenSolaris Zone FS in Global Zone

Hi, We have had a hard drive failure on one of our sandbox OpenSolaris system. We had 2 solaris zones configured at /tank/zones/teamcity and /tank/zones/jira for respective products. The zpool (tank) was mirrored (2 drives). I'd like to mount the non-faulty drive in the global zone and... (4 Replies)
Discussion started by: sophie.cowell
4 Replies

5. Solaris

showing 2 different time zones in global zone and nonglobal zone

can some one help me out as it is showing 2 different time zones in global zone and nonglobal zone .In global zone it is showing in GMT while in nonglobal zone i it showing as PDT. System in running with solaris 10 (3 Replies)
Discussion started by: ravijanjanam12
3 Replies

6. Solaris

Scripting changes to multiple zone configurations in the same Global Zone

So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones. if I were to do this manually here's what I would do: zonecfg -z zone1 select... (2 Replies)
Discussion started by: os2mac
2 Replies

7. Solaris

Solaris non-global zone network vlan

Have 2 nics on physical system net0 phys 1500 up -- net1 phys 1500 up -- 1. I want to create a link aggregation with LACP enabled with above 2 nics 2. Create port-group(Like we create on ESXi) with VLAN-ID 2141 3. And assign this... (0 Replies)
Discussion started by: Shirishlnx
0 Replies

8. Solaris

Global Zone getting crontab info from zone

Hi, First post. I have a script that I am having a little trouble with and I hope someone can help. I will post the code for your input, but I want to read the lines of a file and use this as input to a command in a while loop... #!/bin/sh # # ### Variables MSG=/tmp/tmptest.txt... (7 Replies)
Discussion started by: dakelly
7 Replies

9. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies
getzonelabelbyid(3TSOL) 			       Trusted Extensions Library Functions				   getzonelabelbyid(3TSOL)

NAME
getzonelabelbyid, getzonelabelbyname, getzoneidbylabel - map between zones and labels SYNOPSIS
cc [flags...] file... -ltsol [library...] #include <tsol/label.h> m_label_t *getzonelabelbyid(zoneid_t zoneid); m_label_t *getzonelabelbyname(const char *zonename); zoneid_t *getzoneidbylabel(const m_label_t *label); DESCRIPTION
The getzonelabelbyid() function returns the mandatory access control (MAC) label of zoneid. The getzonelabelbyname() function returns the MAC label of the zone whose name is zonename. The getzoneidbylabel() function returns the zone ID of the zone whose label is label. All of these functions require that the specified zone's state is at least ZONE_IS_READY. The zone of the calling process must dominate the specified zone's label, or the calling process must be in the global zone. RETURN VALUES
On successful completion, the getzonelabelbyid() and getzonelabelbyname() functions return a pointer to a sensitivity label that is allo- cated within these functions. To free the storage, use m_label_free(3TSOL). If the zone does not exist, NULL is returned. On successful completion, the getzoneidbylabel() function returns the zone ID with the matching label. If there is no matching zone, the function returns -1. ERRORS
The getzonelabelbyid() and getzonelabelbyname() functions will fail if: ENOENT The specified zone does not exist. The getzonelabelbyid() function will fail if: ENOENT No zone corresponds to the specified label. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
Intro(2), getzonenamebyid(3C), getzoneidbyname(3C), libtsol(3LIB), m_label_free(3TSOL), attributes(5), labels(5) NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions. SunOS 5.11 20 Jul 2007 getzonelabelbyid(3TSOL)
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy