?
Solved

Add Multi routing address on Solaris 8 server

Posted on 2003-11-07
5
Medium Priority
?
5,378 Views
Last Modified: 2013-12-19
Manage SUN Solaris 8 NIS suite. Need to add additional route addresses for new clients.
Problem is the "route add net" command only allows one route and the route is gone after booting system.
 
I think the solution could be to add another network card, but we can not do that now.  Need help
0
Comment
Question by:lhodges
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 100 total points
ID: 9701796
Crat a startup script /etc/init.d/add_static_routes, with all of your route add commands in it.
then link to it from /etc/rc3.d
i.e.
ln -s /etc/init.d/add_static_routes /etc/rc3.d/S99add_static_routes
0
 

Author Comment

by:lhodges
ID: 9738788
Thank you for the your assistance.  I will try the procedure and report status ASAP.

                                                                                         hodge
0
 

Assisted Solution

by:lapt
lapt earned 100 total points
ID: 9745429
On Solaris, you can easily add multiple IP addresses on a single
network adapter:

# ifconfig hme0 192.168.255.141 up netmask 255.255.255.0

With this command you set your primary address, and usually that's
done by Solaris when the machine is booted. Now if you want to add
another address:

# ifconfig hme0:1 150.0.3.24 netmask 255.255.0.0
# ifconfig hme0:1 up

ifconfig -a will show that your machine now has multiple IP addresses.
Now you can communicate with computers that are on the 192.168.255
network as well as the 150.0 network, provided they are on same cable
as you are.



If you need these interface evertime after a reboot, you must add for each interface a /etc/hostname.xyz file. For your primary IP it will be the file has to be named as /etc/hostname.hme0 and for the second one it
must be /etc/hostname.hme0:1 and so on

-------------------------------------------------------



This is what i do on our Netras, the interface is probaly calld something else than  hme0 on a 220R search for the file /etc/hostname.* and check the extension.


1. Add an entry for the additional IP adress in /etc/host (recommended if if you use DNS or NIS, just to be able to boot correctly if this services are note (yet) available)

2. Create /etc/hostname.hme0:<nn> this will enable this interface on every boot. this file must just contain the hostname assosiated with the IP address.  <nn> is just a number, you can hav lots of Ip on the same interface (256?)

3. Configure the interface (without rebooting the system) A 'ifconfig -a' shows you the current configured itnerfaces and may help you the get the broeadcast address and netmask.            

# ifconfig hme0:<nn> inet <ipadress>  netmask 255.255.255.0 \
  broadcast <xxx.xxx.xxx.xxx>
# ifconfig -a  # show the configuration

4. Startup the interface
# ifconfig hme0:<nn> up
# ifconfig hme0:<nn> plumb
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Make the most of your online learning experience.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question