Solved

Add Multi routing address on Solaris 8 server

Posted on 2003-11-07
5
5,344 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
5 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 25 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now