Solved

Add Multi routing address on Solaris 8 server

Posted on 2003-11-07
5
5,370 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 25 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 25 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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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 …

728 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