[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Add Multi routing address on Solaris 8 server

Posted on 2003-11-07
5
Medium Priority
?
5,391 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
3 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Make the most of your online learning experience.
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
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

872 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