LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   need help with solaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/need-help-with-solaris-628351/)

yawe_frek 03-15-2008 10:46 PM

need help with solaris
 
hi guys,

i am new to solaris. what command do i use to setup the box as a router.

THANKS

jlliagre 03-16-2008 07:16 AM

That depends on what kind of router you want. Start here:
http://docs.sun.com/app/docs/doc/819...jj?l=en&a=view

yawe_frek 03-19-2008 09:40 PM

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

jlliagre 03-20-2008 04:27 AM

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.

yawe_frek 03-23-2008 11:28 AM

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

jlliagre 03-23-2008 01:50 PM

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.

yawe_frek 03-23-2008 02:55 PM

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

jlliagre 03-23-2008 05:21 PM

Quote:

Originally Posted by yawe_frek (Post 3097926)
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.

yawe_frek 03-28-2008 02:37 AM

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.

jlliagre 03-28-2008 04:46 AM

Quote:

Originally Posted by yawe_frek (Post 3102801)
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
Code:

netstat -rn

yawe_frek 03-28-2008 12:55 PM

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.

jlliagre 03-28-2008 02:29 PM

Quote:

Originally Posted by yawe_frek (Post 3103265)
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:
Code:

svcs -a


All times are GMT -5. The time now is 07:18 PM.