What am I doing wrong, I configure interfaces ce1,ce,2 and ce3 but when I reboot the server they lose the configuration and I have to reset them?
ifconfig ce1 plumb
ifconfig ce2 plumb
ifconfig ce1 155.216.13.72 netmask 255.255.255.240
ifconfig ce2 155.216.13.73 netmask 255.255.255.240
ifconfig ce1 up
ifconfig ce2 up
I created files these files
hostname.ce1
hostname.ce2
hostname.ce3
and added the ip's for the other interfaces in the host entry
hosts
::1 localhost
127.0.0.1 localhost
155.216.13.71 dixxa0accvce005 loghost
155.216.13.72 dixxa0accvce005a
155.216.13.73 dixxa0accvce004b
155.216.13.74 dixxa0accvce009
I think the disconnect here is that you need to put the hostname in the /etc/hostname.ce1,2,3 files. So, in your instance, put a different hostname in each file corresponding to the ip address you want assigned to that interface.
HTH
1 Like
Maybe you need to add them to the start-up scripts, as I see no promise to save the settings in a file for future reference in the man page. I did see this:
The ifconfig com-
mand must be used at boot time to define the network address of each
interface present on a machine; it may also be used at a later time to
redefine an interface's address or other operating parameters.
No registry in UNIX!
1 Like
This is not necessary in Solaris 10. Simply put the hostname that corresponds to the IP address you want on the interface into the proper /etc/hostname.<interface> file and you should be good.
# cat /etc/hostname.ce1
dixxa0accvce005
#
This is all you need.
1 Like
thanks guys, you've been really helpful. Coming from windows this is pretty different then what I'm used to.
Soon, you will not want to go back . . . .