LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 11-19-2009, 12:23 PM   #1
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Rep: Reputation: 15
enable ip_forwarding


hi,
i want to enale ip_forwarding in solaris 8 container server. It throws below error , provide help to overcome this issue.
# ndd -set /dev/ip ip_forwarding 1
device name given is not a stream device (No such device or address)
# ndd -set /dev/ip ip_forwarding 1
open of /dev/ip failed: No such file or directory
 
Old 11-19-2009, 12:38 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 9,426

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
Quote:
Originally Posted by malli42108 View Post
hi,
i want to enale ip_forwarding in solaris 8 container server. It throws below error , provide help to overcome this issue.
# ndd -set /dev/ip ip_forwarding 1
device name given is not a stream device (No such device or address)
# ndd -set /dev/ip ip_forwarding 1
open of /dev/ip failed: No such file or directory
This might be a better question for the Solaris forum, rather than the "Linux-Newbie" one....but a quick Google search turns up:
http://www.itsyourip.com/networking/...rating-system/

Quote:
In Solaris 8 and later, IP forwarding can be enabled or disabled on a per interface basis. For example, if there are 3 hme NIC cards namely hme0,hme1,hme2 then assume, we allow IP Forwarding only from hme0 and disable on hme1 and hme2 then the following will help:

# ndd -set /dev/ip hme0:ip_forwarding 1
And the error you're getting is telling as well...you say it's a "container server"...is this running under a Solaris 10 container? VMware? What platform (SPARC? x86?). DOES the /dev/ip device exist, and can you get out to the network.
 
Old 11-19-2009, 02:20 PM   #3
pixellany
Guru
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch+KDE
Posts: 16,552

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Off to Solaris we go....
 
Old 11-19-2009, 05:00 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,091

Rep: Reputation: 227Reputation: 227Reputation: 227
Are you using an exclusive or shared IP for that zone ?
 
Old 11-20-2009, 01:28 AM   #5
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
i already given info that, it is a solaris 8 sparc machine.i can set ip_forwarding noemally if it is not container server.
# ndd -set /dev/ip ip_forwarding 1
but it throws error in container servers.
# ndd -set /dev/ip ip_forwarding 1
device name given is not a stream device (No such device or address)
or
# ndd -set /dev/ip ip_forwarding 1
open of /dev/ip failed: No such file or directory
 
Old 11-20-2009, 03:38 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,091

Rep: Reputation: 227Reputation: 227Reputation: 227
Again, are you using a shared or exclusive IP ?
If not exclusive, you cannot set any networking flag with ndd on the non global zone.
 
Old 11-24-2009, 08:50 AM   #7
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
it is exclusive ip not shared ip. Sun container can have 6 servers, 3 servers are solaris 10 with different ip and 3 servers are solaris 8 with different ip. but problem is still there.
 
Old 11-24-2009, 08:58 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,091

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by malli42108 View Post
it is exclusive ip not shared ip.
Please post one of the Solaris 8 zones configuration. (/etc/zone/zonename.xml).
Quote:
Sun container can have 6 servers
Hmm, I guess you mean Sun server have 6 containers.
 
Old 11-26-2009, 09:13 AM   #9
malli42108
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 15
sorry i mistaken, it's not exclusive ip , it is shared ip.
$ zoneadm list -vc
ID NAME STATUS PATH BRAND IP
1 dslam036-zone running / native shared

Below is your requirement.
vi /etc/zones/SUNWsolaris9.xml

<?xml version="1.0"?>

<!--
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

ident "@(#)SUNWsolaris8.xml 1.1 08/05/06 SMI"

DO NOT EDIT THIS FILE. Use zonecfg(1M) instead.
-->

<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "file:///usr/shar
e/lib/xml/dtd/zonecfg.dtd.1">

<zone name="default" zonepath="" autoboot="false" brand="solaris8">
</zone>

Now please specify ,can i able to set ip_forwarding to these servers?
 
Old 11-26-2009, 09:19 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,091

Rep: Reputation: 227Reputation: 227Reputation: 227
You didn't posted what I asked for: /etc/zones/dslam036-zone.xml (and please use code tags).

In any case, as you are using a shared IP, IP configuration is done in the global zone, not the solaris 8 zone.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GD Enable vadivelphp Linux - Server 1 03-27-2009 11:20 AM
help me to enable 3d in my vga lion_heart_300 Red Hat 6 08-05-2006 11:15 AM
How to enable vsync? NTolerance Linux - General 0 04-10-2005 06:50 PM
Can't enable 3D yzrider210 Linux - Hardware 24 12-30-2003 12:09 AM
problem dialing internet after ip_forwarding set up anwar_lpk Linux - Networking 3 05-11-2003 09:18 AM


All times are GMT -5. The time now is 11:00 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
Open Source Consulting | Domain Registration