LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-15-2008, 09:46 PM   #1
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Rep: Reputation: 15
need help with solaris


hi guys,

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

THANKS
 
Old 03-16-2008, 06:16 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That depends on what kind of router you want. Start here:
http://docs.sun.com/app/docs/doc/819...jj?l=en&a=view
 
Old 03-19-2008, 08:40 PM   #3
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
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
 
Old 03-20-2008, 03:27 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 03-23-2008, 10:28 AM   #5
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
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.
 
Old 03-23-2008, 12:50 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 03-23-2008, 01:55 PM   #7
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
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
 
Old 03-23-2008, 04:21 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by yawe_frek View Post
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.
 
Old 03-28-2008, 01:37 AM   #9
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
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.
 
Old 03-28-2008, 03:46 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by yawe_frek View Post
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
 
Old 03-28-2008, 11:55 AM   #11
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Original Poster
Rep: Reputation: 15
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.
 
Old 03-28-2008, 01:29 PM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Ubuntu/WSL
Posts: 9,788

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by yawe_frek View Post
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
 
  


Reply

Tags
iptables, route, router


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
LXer: Cool distro of the day: Damn Small Solaris (yes, I said Solaris) LXer Syndicated Linux News 0 02-26-2008 01:20 AM
LXer: Compiz on Solaris x86 - Eye Candy for Solaris’s Desktop LXer Syndicated Linux News 1 05-30-2007 02:31 PM
LXer: Marvell Yukon Driver (SK-9E22) for Solaris (x64) 8.19.1.3 installation procedure in Solaris Express LXer Syndicated Linux News 0 04-22-2007 03:16 AM
LXer: Hp Puts Solaris on More X64 Servers, Partners for Solaris Emulation LXer Syndicated Linux News 0 02-07-2007 07:21 AM
great solaris website for newbies http://solaris-x86.org/ feetyouwell Solaris / OpenSolaris 2 12-06-2006 12:14 AM

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

All times are GMT -5. The time now is 06:52 AM.

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