Unix Technical Forum

Beginner Question - How to assign mulitple IP addresses to Solaris 10server

This is a discussion on Beginner Question - How to assign mulitple IP addresses to Solaris 10server within the comp.unix.solaris forums, part of the Solaris Operating System category; --> Hello, Our Solaris 10 server has one NIC with IP address at hme0 as below : hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-10-2008, 04:53 PM
underh20.scubadiving@gmail.com
 
Posts: n/a
Default Beginner Question - How to assign mulitple IP addresses to Solaris 10server

Hello,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-10-2008, 04:53 PM
Dan McDonald
 
Posts: n/a
Default Re: Beginner Question - How to assign mulitple IP addresses to Solaris 10server

In article <93de70d4-13d1-46e4-826a-700afadc6201@s13g2000prd.googlegroups.com>,
<underh20.scubadiving@gmail.com> wrote:
>Hello,
>
>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 ?


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: danmcd@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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2008, 06:02 AM
news@buffy.sighup.org.uk
 
Posts: n/a
Default Re: Beginner Question - How to assign mulitple IP addresses to Solaris 10 ?server

In comp.unix.misc Dan McDonald <danmcd@eng.sun.com> wrote:
> In article <93de70d4-13d1-46e4-826a-700afadc6201@s13g2000prd.googlegroups.com>,
> <underh20.scubadiving@gmail.com> wrote:
>>Hello,
>>
>>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 ?

>
> 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.


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2008, 06:02 AM
underh20
 
Posts: n/a
Default Re: Beginner Question - How to assign mulitple IP addresses toSolaris 10 server

On Mar 10, 10:29*am, dan...@Eng.Sun.COM (Dan McDonald) wrote:
> In article <93de70d4-13d1-46e4-826a-700afadc6...@s13g2000prd.googlegroups.com>,
>
> *<underh20.scubadiv...@gmail.com> wrote:
> >Hello,

>
> >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 ?

>
> 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 tenhttp://blogs.sun.com/danmcd/* * | we twist the world and ride the wind" - Rush


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-17-2008, 06:02 AM
ITguy
 
Posts: n/a
Default Re: Beginner Question - How to assign mulitple IP addresses toSolaris 10 server

On Mar 10, 1:19 pm, underh20 <humphrey.c.c...@gmail.com> wrote:
> On Mar 10, 10:29 am, dan...@Eng.Sun.COM (Dan McDonald) wrote:
>
>
>
> > In article <93de70d4-13d1-46e4-826a-700afadc6...@s13g2000prd.googlegroups.com>,

>
> > <underh20.scubadiv...@gmail.com> wrote:
> > >Hello,

>
> > >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 ?

>
> > 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 tenhttp://blogs.sun.com/danmcd/ | we twist the world and ride the wind" - Rush

>
> 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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-17-2008, 06:03 AM
Darren Dunham
 
Posts: n/a
Default Re: Beginner Question - How to assign mulitple IP addresses to ?Solaris 10 server

In comp.unix.solaris ITguy <southallc@gmail.com> wrote:
> 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 ddunham@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. >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com