Hi
How do I configure a network card in Solaris 10? using the command ifconfig, and also please advise me for persisting this ip address what are the files newly created and modify.
I am a new baby in solaris:)
Hi
How do I configure a network card in Solaris 10? using the command ifconfig, and also please advise me for persisting this ip address what are the files newly created and modify.
I am a new baby in solaris:)
dladm show-link
will give the output of network card interfaces. Then assign a ip-address by using the following command
#ifconfig eri0 192.168.0.1 netmask 255.255.255.0 up
#svcadm refresh network/physical
#svcadm restart network/physical
Then create a filename called hostname.eri0 in the /etc directory, and put your ip address in that file also made a entry in the /etc/hosts file. Thats it. Reboot the machine and check whether ip persist or not. Cheers
I tried the same commands.
#ifconfig lo0 plumb
#ifconfig lo0 192.168.90.2 netmask 255.255.255.0 up
created a new file /etc/sun1.lo0 and added the above entry in that
the following entry added in /etc/hosts
#192.168.90.2 sun1 loghost
the following entry added in /etc/netmasks
#192.168.90.0 255.255.255.0
after rebooting ip address is persist but netmask is showing 255.0.0.0
you are trying to configure for loopback connecter which has the default ip-address of 127.0.0.1. It will throw the packets to your card only. Just for testing purpose. whats the output of "dladm show-dev" and "dladm show-link" commands.
The file in /etc should actually ready "hostname.1o0" and contains the ip address or hostname. Are you putting the "#" in front of your entries in /etc/hosts and /etc/netmasks? Reboots aren't necessary either, just use smf like kingston showed you.