LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-22-2007, 10:06 PM   #1
isra
Member
 
Registered: Jan 2006
Location: Mexico, city
Distribution: DEBIAN, OpenSolaris
Posts: 32

Rep: Reputation: 15
Network between zones


Hi
I wondered if it is possible to send IP packages between zones. I have tried but when i ping the global zone from a non-global(destroy-zone) zone displays host unreachable. All of this is because i want to have an nfs server in the global zone and nfs client in the non-global, the purpose is to test some commands in the same computer because i don't have another one.
Maybe this output can help:
*-----------------------------------------------*
* destroy-zone *
*-----------------------------------------------*
# zoneadm list
destroy-zone
# ifconfig -a
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0:1: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
inet 192.168.200.2 netmask ffffff00 broadcast 192.168.200.255
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
192.168.200.0 192.168.200.2 U 1 20 rtls0:1
224.0.0.0 192.168.200.2 U 1 0 rtls0:1
127.0.0.1 127.0.0.1 UH 1 34 lo0:1
*-----------------------------------------------*
* global zone *
*-----------------------------------------------*
# zoneadm list
global
destroy-zone
# ifconfig -a
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 destroy-zone
inet 127.0.0.1 netmask ff000000
rtls0: flags=201000802<BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
inet 192.168.200.3 netmask ffffff00 broadcast 192.168.200.255
ether 8:0:46:ee:86:ac
rtls0:1: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
zone destroy-zone
inet 192.168.200.2 netmask ffffff00 broadcast 192.168.200.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
rtls0: flags=202004801<UP,MULTICAST,DHCP,IPv6,CoS> mtu 1500 index 2
inet6 fe80::a00:46ff:feee:86ac/10
ether 8:0:46:ee:86:ac
# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
224.0.0.0 127.0.0.1 U 1 0 lo0
127.0.0.1 127.0.0.1 UH 8 259 lo0

Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
fe80::/10 fe80::a00:46ff:feee:86ac U 1 0 rtls0
ff00::/8 fe80::a00:46ff:feee:86ac U 1 0 rtls0
::1 ::1 UH 1 41 lo0
 
Old 08-23-2007, 12:16 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by isra View Post
Hi
I wondered if it is possible to send IP packages between zones. I have tried but when i ping the global zone from a non-global(destroy-zone) zone displays host unreachable.
[...}
# ifconfig -a
rtls0: flags=201000802<BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
inet 192.168.200.3 netmask ffffff00 broadcast 192.168.200.255
ether 8:0:46:ee:86:ac
rtls0:1: flags=201000803<UP,BROADCAST,MULTICAST,IPv4,CoS> mtu 1500 index 2
zone destroy-zone
inet 192.168.200.2 netmask ffffff00 broadcast 192.168.200.255
It is of course possible to communicate with TCP/IP between zones.

The issue in your case is that the network interface is down in the global zone.

You can fix that with:
Code:
ifconfig rtls0 up
 
Old 08-23-2007, 10:40 AM   #3
isra
Member
 
Registered: Jan 2006
Location: Mexico, city
Distribution: DEBIAN, OpenSolaris
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks i will do it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help on configuring dns zones tr3s Linux - Server 5 08-23-2007 02:34 AM
Is my solaris 10 with zones? xpucto Solaris / OpenSolaris 7 02-26-2006 10:20 AM
Time Zones in Linux skaa Linux - Software 5 06-29-2004 10:34 AM
dns zones jmono Linux - Networking 3 05-19-2003 09:39 PM
GNOME snap zones? epitome Linux - Software 3 04-16-2003 02:04 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration