Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-15-2008, 09:46 PM
|
#1
|
|
Member
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144
Rep:
|
need help with solaris
hi guys,
i am new to solaris. what command do i use to setup the box as a router.
THANKS
|
|
|
|
03-19-2008, 08:40 PM
|
#3
|
|
Member
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144
Original Poster
Rep:
|
Thanks friend,
Actually what i want to attain is ip-forwarding in solaris. i wouldnt mind if you can just point out the basic things i need to do. Hope to hear from you soon
Thanks
|
|
|
|
03-20-2008, 03:27 AM
|
#4
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Use the routeadm command to enable ip-forwarding.
Code:
routeadm -e ipv4-forwarding
or the equivalent:
Code:
svcadm enable ipv4-forwarding
See routeadm man page for details.
|
|
|
|
03-23-2008, 10:28 AM
|
#5
|
|
Member
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144
Original Poster
Rep:
|
Thanks so much friend, i tend to be more familiar with linux but now i want to move into Unix. Solaris to be precized.
i would be really oblige if you can tell me the relevants commands you think i should know in solaris.
Less i forget while i wad surfing the net and looking for info on how to enable ip_forwarding in solaris. i saw something like this :
ifconfig iprb0 plumb
i was wondering if this was similar to :
ifconfig iprb0 up
Hope to hear from you .
Thanks
Last edited by yawe_frek; 03-23-2008 at 10:30 AM.
|
|
|
|
03-23-2008, 12:50 PM
|
#6
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
They are similar but different commands.
"ifconfig iprb0 plumb" makes the iprb0 interface available for further commands. "ifconfig iprb0 unplumb" does the opposite. After unplumbing an interface, it won't appear in "ifconfig -a" output.
"ifconfig iprb0 up" makes the iprb0 interface up, i.e. able to send and receive packets. "ifconfig iprb0 down" is disabling all traffic from the interface but all its other settings are still there.
|
|
|
|
03-23-2008, 01:55 PM
|
#7
|
|
Member
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144
Original Poster
Rep:
|
hi thanks very much for taking out time to put me through i appreciate.
Can i also use the following commands to enable ip_forwarding
ndd -set /dev/ip ip_forwarding 1
svcadm enable svc:/network/ipv4-forwarding
Thanks
|
|
|
|
03-23-2008, 04:21 PM
|
#8
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Quote:
Originally Posted by yawe_frek
ndd -set /dev/ip ip_forwarding 1
|
Probably, but it is bypassing the service commands and won't persist after reboots.
Quote:
|
svcadm enable svc:/network/ipv4-forwarding
|
This is equivalent to the one I suggested, just longer to type.
|
|
|
|
03-28-2008, 01:37 AM
|
#9
|
|
Member
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144
Original Poster
Rep:
|
thanks so much. pls sir i still have more questions to ask.
i will start with :
1.)I kindly want to know how to switch from CDE in solaris to CLI just the way i do it in linux with alt+ctrl f1,f2,f3 etc.
2.)how do i know my current runlevel and how do i change it cos i have gone through the inittab but it is totally difference.
3.)how do i veiw my routing table, is it route -rn
Thanks.
|
|
|
|
03-28-2008, 03:46 AM
|
#10
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Quote:
Originally Posted by yawe_frek
1.)I kindly want to know how to switch from CDE in solaris to CLI just the way i do it in linux with alt+ctrl f1,f2,f3 etc.
|
This feature used to exist in old Solaris releases but was dropped a long time ago. It is in the process of being integrated again, but is not yet.
Quote:
|
2.)how do i know my current runlevel and how do i change it cos i have gone through the inittab but it is totally difference.
|
"who -r" will show the current run level, although that means less than what it used to with SMF and milestones. What do you want to achieve by switching run levels ?
Quote:
|
3.)how do i veiw my routing table, is it route -rn
|
Use
|
|
|
|
03-28-2008, 11:55 AM
|
#11
|
|
Member
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144
Original Poster
Rep:
|
Thank you very much for the reply.
well regarding switching btw Gui and Cli, i do it a lot on Linux so i was thinking it was going to be possible in Solaris 10.
Less i forget pls how do i stop,start,restart a service, how do i know services that are currently running or not running. I will be really be glade.
It really has not been easy with solaris 10 but i know i will be a master soon. Thanks onces again for your assistance.
Thanks.
|
|
|
|
03-28-2008, 01:29 PM
|
#12
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
Quote:
Originally Posted by yawe_frek
well regarding switching btw Gui and Cli, i do it a lot on Linux so i was thinking it was going to be possible in Solaris 10.
|
It is very much possible with Solaris, but that doesn't involves run levels like with many Linux distributions.
To disable the graphic environment, run:
Code:
/usr/dt/dtconfig -d
To re-enable it:
Code:
/usr/dt/dtconfig -e
Quote:
|
Less i forget pls how do i stop,start,restart a service, how do i know services that are currently running or not running. I will be really be glade.
|
Run this:
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|