Solaris / OpenSolarisThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Windows XP, Fedora Core 4, Debian "Sarge", Solaris
Posts: 1
Rep:
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?
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.
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
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.
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 ?.
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.