LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-11-2008, 05:26 PM   #1
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 35
Configure routing table to reach a zone from the global one


Hi.

I cannot configure the routing table in order to reach the two zones I've created (shared IP address) from the global zone.

The two NICs of my workstation are configured via DHCP and the output of ifconfig -a is:
Code:
bash-3.2# 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 ssh-zone
        inet 127.0.0.1 netmask ff000000 
lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        zone blastwave-zone
        inet 127.0.0.1 netmask ff000000 
nge0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2
        inet 192.168.0.128 netmask ffffff00 broadcast 192.168.0.255
        ether 0:14:4f:80:d6:b0 
nge1: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 3
        inet 192.168.0.130 netmask ffffff00 broadcast 192.168.0.255
        ether 0:14:4f:80:d6:b1 
nge1:1: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
        zone ssh-zone
        inet 192.168.0.132 netmask ffffff00 broadcast 192.168.0.255
nge1:2: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 3
        zone blastwave-zone
        inet 192.168.0.140 netmask ffffff00 broadcast 192.168.0.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128
The output of netstat -r is:
Code:
bash-3.2# netstat -r

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              speedtouch.lan       UG        1         58 nge0      
default              speedtouch.lan       UG        1        108 nge1      
192.168.0.0          solaris.lan          U         1         19 nge0      
192.168.0.0          Unknown-00-14-4f-80-d6-b1.lan U         1          3 nge1      
solaris              solaris              UH        3        561 lo0       

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If   
--------------------------- --------------------------- ----- --- ------- ----- 
::1                         ::1                         UH      1      35 lo0
The two zones use the nge1 NIC, while the global zone uses nge0. I have no problem reaching the zones from another workstation, but from the global zone I cannot even ping it. I suppose the problem is the routing table but I don't know how to fix it. traceroute output is:
Code:
bash-3.2# traceroute 192.168.0.132
traceroute: Warning: Multiple interfaces found; using 192.168.0.128 @ nge0
traceroute to 192.168.0.132 (192.168.0.132), 30 hops max, 40 byte packets
 1  * * * *
and so on so I suppose the problem is indeed routing (note that traceroute says it's using nge0).

Any ideas?

Bye,
Enrico.
 
Old 03-11-2008, 07:23 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,507

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Under the current implementation, nge0 cannot communicate to zones bound to nge1. Crossbow project will substantially improve that by allowing full virtualization of the network interfaces. See http://www.opensolaris.org/os/project/crossbow/

In the meantime, I guess you need to set a static route telling the O/S to use nge1 to reach nge1:1 and nge1:2.

Try:
Code:
route add 192.168.0.132 192.168.0.130
route add 192.168.0.140 192.168.0.130
 
Old 03-12-2008, 04:27 AM   #3
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Original Poster
Rep: Reputation: 35
Thanks jlliagre, I didn't know about this issue neither about crossbow project.

Another question, if you please... The two NICs are configured using DHCPs, so after rebooting, I'll have to add routes manually. The Solaris way to do that should be adding a startup script run after physical network service has started, or there's a better way to do that?

Thanks,
Enrico.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
XDMCP from global zone to Brandz zone coolster Solaris / OpenSolaris 2 03-03-2008 07:15 AM
How to share a ZFS file system between a global zone and a non global zone? crisostomo_enrico Solaris / OpenSolaris 7 11-28-2007 08:20 AM
routing table selie Linux - Networking 2 05-04-2007 09:12 AM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
global offset table blanks Programming 1 02-25-2005 03:59 PM


All times are GMT -5. The time now is 09:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration