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
Solved

Add Multi routing address on Solaris 8 server

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
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…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

808 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