Our Solaris 10 server has one NIC with IP address at hme0 as below :
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu
1500 index 2
inet 172.27.248.133 netmask fffffff00 broadcast
172.27.248.255
In addition to the permanent address above, we need to add 3 IP
addresses with the same subnet, default gateway and netmasks to this
server. Could we do it ? If yes, could you let me know how
please ? One requirement is we cannot reboot the server at any time.
Thanks,
Bill
Yes.
> If yes, could you let me know how please ? One requirement is we cannot
> reboot the server at any time.
Here's how to do it w/o rebooting, for every new-addr/new-addr's-prefix pair:
ifconfig hme0 addif <new-addr>/<new-addr's-prefix> up
I'll assume you don't need any other routing stuff. I can't recall the
standard way to make this stick across reboots, so I'll let someone else
followup with that.
--
Daniel L. McDonald - Solaris Security & Networking Engineering
Mail: dan...@sun.com | * MY OPINIONS ARE NOT NECESSARILY SUN'S! *
35 Network Drive Burlington, MA |"rising falling at force ten
http://blogs.sun.com/danmcd/ | we twist the world and ride the wind" - Rush
Create a file called /etc/hostname.hme0:1 containing a single line holding
the IP number. Further IPs can be allocated by increating the :1 to :2, :3
etc.
--
Gustaf Lindborg: The sailor does not pray for wind, he learns to sail
Hi Daniel,
Will the current hme0 be hung if I issue "ifconfig hme0 addif <new-
addr>/<new-addr's-prefix> up" command ?
Thanks for your help.
Bill
The current hme0 will continue to run with no problems during and
after the ifconfig addif command. You can make the changes persist
across reboots by just adding the "addif" statements in /etc/
hostname.hme0
Uhh, sorta.
Solaris 8 and later parses the /etc/hostname.* files differently if they
have exactly one line or if they have more than one line.
While you can add ifconfig statements (like addif), you'll probably have
to modify the existing line as well.
(The modification usually consists of adding
netmask + broadcast + up
to the end of the existing line)
--
Darren Dunham ddu...@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >