LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-26-2005, 10:09 AM   #1
A-fil
LQ Newbie
 
Registered: Sep 2005
Location: Örebro, Sweden
Distribution: Windows XP, Fedora Core 4, Debian "Sarge", Solaris
Posts: 1

Rep: Reputation: 0
Network on solaris


Hi

How do I configure a network card in Solaris 10? The os installer wanted to configure the cards but I pretty much ignored it -_- So, now i need to have the os locate and install the network cards, how to?


In case you didn't notice, I'm a reaaal solaris
 
Old 09-26-2005, 11:09 AM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
You could run sys-unconfig as root. That will reboot the system and go into a very similar "install process" where you will configure you network and other things, as well as the root password.
 
Old 10-25-2005, 04:56 AM   #3
jmcmillan
LQ Newbie
 
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
That's probably the easiest way but if you wnat to see what files are involved behind the scenes.... another possibility would be to use ifconfig.

If you know what the name if the interface is (i.e. hme0, dmfe0 bge0 or whatever) then you can use the 'plumb' option with ifconfig to bring it up

Code:
ifconfig bge0 plumb
Then use the ifconfig command to configure the card.

Code:
ifconfig bge0 ipaddress  netmask netmask broadcast broadcast up
which would looke something like...
Code:
ifconfig bge0 192.168.100.10  netmask 255.255.255.0 broadcast 192.168.100.255 up

you then need to update some files

in /etc/hosts add the following line
your ip address hostname loghost
i.e.
192.168.100.10 hostname loghost

In /etc/netmasks add the following line
your network address netmask
i.e
192.168.100.0 255.255.255.0

In /etc/defaultrouter enter the ip address of the defaultrouter on the network.
echo "router ip address" > /etc/defaultrouter
i.e.
echo 192.168.100.1 > /etc/defaultrouter


If there are nameservers on your network you might want to do the following also;
change the line in /etc/nsswitch.conf
from: hosts: files
to:hosts: files dns

add the ip addresses of your nameservers to /etc/resolv.conf
something like:
nameserver 192.168.100.233


Hope that helps.




Last edited by jmcmillan; 10-25-2005 at 05:09 AM.
 
Old 10-25-2005, 12:15 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
If you don't know the interface name, you can run
Code:
ifconfig -a plumb
and see if it shows up.
 
Old 10-26-2005, 07:18 PM   #5
dsschanze
Member
 
Registered: Aug 2004
Location: Gainesville, FL
Distribution: Linux Mint 12, Win7, iOS
Posts: 208

Rep: Reputation: 33
How do you configure Solaris 9 to use DHCP? I have just set up a Solaris 9 system in my pc support class since my high school uses dhcp for temporary computers, I need to be able to configure it.

-derek
 
Old 10-27-2005, 12:35 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Assuming your interface is bge0:
Code:
ifconfig bge0 dhcp
 
Old 10-27-2005, 07:21 AM   #7
dsschanze
Member
 
Registered: Aug 2004
Location: Gainesville, FL
Distribution: Linux Mint 12, Win7, iOS
Posts: 208

Rep: Reputation: 33
Quote:
Originally posted by jlliagre
Assuming your interface is bge0:
Code:
ifconfig bge0 dhcp
I just tried that and it doesn't seem to have the interface bge0. Do you know if it would be anything else?

Thanks in advance
 
Old 10-27-2005, 02:03 PM   #8
siwai
LQ Newbie
 
Registered: Oct 2005
Location: London, UK
Distribution: Suse
Posts: 2

Rep: Reputation: 0
Do you know what sort of network card it is?
instead of bge0 it could be hme0/eri0/ge0/qfe(0-3) amongst a few.

Are you using Sun hardware? If so what type?
 
Old 10-27-2005, 02:50 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
I just tried that and it doesn't seem to have the interface bge0. Do you know if it would be anything else?
I think I already answered that question to you in this very same thread:

http://www.linuxquestions.org/questi...37#post1919537

After running that command, "ifconfig -a" will show you all you all the interfaces available, just ignore lo0, which is a virtual one (loopback).
 
Old 11-12-2005, 01:01 AM   #10
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
Quote:
In /etc/defaultrouter enter the ip address of the defaultrouter on the network.
Defaultrouter means Gateway if I am on LAN , does't it ?

Quote:
add the ip addresses of your nameservers to /etc/resolv.conf
On my Desktop at work I have got this file , was created by system.

On my laptop, I have to create this file.

Is this normal ?
 
Old 11-12-2005, 01:28 AM   #11
norus
LQ Newbie
 
Registered: Feb 2005
Location: Internet
Posts: 25

Rep: Reputation: 15
Quote:
Originally posted by zillah
Defaultrouter means Gateway if I am on LAN , does't it ?


On my Desktop at work I have got this file , was created by system.

On my laptop, I have to create this file.

Is this normal ?
About /etc/defaultrouter: your default route
About /etc/resolv.conf: yes, create the file if it doesn't exist.
 
Old 11-12-2005, 03:29 AM   #12
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
On my Desktop at work I have got this file , was created by system.

On my laptop, I have to create this file.

Is this normal ?
If by "Is this normal", you mean "is it something for which at least one rational explanation exists", then the answer is yes.
 
Old 11-12-2005, 05:19 AM   #13
zillah
Member
 
Registered: Oct 2004
Posts: 536

Rep: Reputation: 30
Defaultrouter means default gateway if I am on LAN , does't it ?.

I configured my laptop at work with ip addresses belong to my LAN at work.

If I want to use same laptop at home, do I need to configure (modify files /etc/nnswitch.conf, resolve.conf,,,,etc accordoing to ip addresses belong to my LAN at home) it again to be able to access internet ?.

Last edited by zillah; 11-12-2005 at 05:24 AM.
 
Old 11-12-2005, 10:58 AM   #14
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
Working with laptop, i think the best way just use Dhcp, or else, you have to re-configure ur ip address, default route (gateway) and name servers. Surely, if your network configuration is correct, u can access internet again.
 
Old 11-13-2005, 04:10 AM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Defaultrouter means default gateway if I am on LAN , does't it ?.
Default router is the IP router your machine will use to reach any network missing an explicit route to.
On simple networks, there is only one router and it is used to connect to the Internet, so this is the defaultrouter.

Gateway is indeed a synonym, but this word is used in a wider range of situations.
 
  


Reply



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
Network Printer on Solaris 8 Pimple Solaris / OpenSolaris 9 08-26-2015 01:16 PM
How to configure network with solaris? subaruwrx Solaris / OpenSolaris 33 03-16-2007 05:33 PM
Network Install of redhat/solaris on sparc 10 melkor_41 Linux - Newbie 2 07-04-2005 10:35 AM
Network won`t work on Solaris 9 x86 with RTL8139 Pollyanna Solaris / OpenSolaris 1 12-26-2003 10:11 PM
/etc/sysconfig/network-scripts on Solaris? meshcurrent Solaris / OpenSolaris 6 11-24-2002 01:51 AM

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

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

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