adding routes in Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris adding routes in Solaris
# 8  
Old 12-04-2006
Quote:
Originally Posted by Brad_52000
Thanks for the reply, if this files not exist, do I create a file name routes, and if this is the case will the entries follow this format

10.0.83.5 10.0.97.249

10.0.83.5 is the destination and .249 is the gateway, just asking the proper file layout.

Thanks again.
enter the routes in the file /etc/inet/routes like this:

net "network" "router"

example:
net 192.168.0.0/24 192.168.0.254

hth,
DN2
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

New to Solaris (Checking/Adding network and harddisk)

Hi all, As per the topic goes, q1) how do i check remotely (over ssh) - how many physical network interfaces I really have ? -- if an interface exists before and it got plug out, it must not be show again. -- i tried dladm show-link and ifconfig -a, but it seems to show a previously... (4 Replies)
Discussion started by: javanoob
4 Replies

2. Solaris

Adding User in Solaris Error.....

Hi all, when I type this command useradd -d /home/ram89 -m ram89 it gives an error unable to create home directory. Why so ? How to create user in Solaris? The perfect method? Please guide me. Thanks in advance Manali. (5 Replies)
Discussion started by: manalisharmabe
5 Replies

3. Solaris

Problem with routes in Solaris 10

Hello All, I have a Solaris 10 machine with 4 physical network interfaces configured viz. igb0, e1000g0, igb2 and e1000g2. Out of these interfaces, I am routing all my normal monitoring and O&M activities via. igb0 and e1000g0 interfaces. However, I am facing an issue on one of the... (4 Replies)
Discussion started by: mystition
4 Replies

4. Solaris

Adding a user twice to Solaris OS

is it possible to add a user twice to solaris server with the same id? i have been added twice in the past week and that is messing up one application that i am using which authenticate against the os. (10 Replies)
Discussion started by: basel
10 Replies

5. UNIX for Dummies Questions & Answers

Adding an additional harddrive in solaris 9

Hello, I have a system which a new harddrive was installed for additional space. I now need to mount the drive and transfer data from /home to the new drive with a mount point named /home. How do I go about doing this? Thanks in advance. (5 Replies)
Discussion started by: GLJ@USC
5 Replies

6. UNIX for Dummies Questions & Answers

adding interfaces in solaris 9

Hi, Have a solaris 9 e420, one onboard nic. Now I added a quad nic card. I have never had more than a single interface. Any help on setting this new card up? or links? PLease? ; thanks! (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

7. UNIX for Advanced & Expert Users

Adding Fonts to Solaris 2.8

Does anyone know the location where to place a series of new fonts, so its asseble by general applications (equiv. to C:\WINNT\Fonts) in WIN2000. Thanks (2 Replies)
Discussion started by: Breen
2 Replies

8. UNIX for Dummies Questions & Answers

Adding an interface to solaris?

I have a quad ethernet card in my sun box, and only 3 of them are visable when I "ifconfig -a". How do I activate the the 4th one? I think it is solaris 5.6. Thanks. Marc (1 Reply)
Discussion started by: mmaniscalco
1 Replies
Login or Register to Ask a Question
defaultrouter(4)						   File Formats 						  defaultrouter(4)

NAME
defaultrouter - configuration file for default router(s) SYNOPSIS
/etc/defaultrouter DESCRIPTION
The /etc/defaultrouter file specifies a IPv4 host's default router(s). The format of the file is as follows: IP_address ... The /etc/defaultrouter file can contain the IP addresses or hostnames of one or more default routers, with each entry on its own line. If you use hostnames, each hostname must also be listed in the local /etc/hosts file, because no name services are running at the time that defaultrouter is read. Lines beginning with the ``#'' character are treated as comments. The default routes listed in this file replace those added by the kernel during diskless booting. An empty /etc/defaultrouter file will cause the default route added by the kernel to be deleted. Use of a default route, whether received from a DHCP server or from /etc/defaultrouter, prevents a machine from acting as an IPv4 router. You can use routeadm(1M) to override this behavior. FILES
/etc/defaultrouter Configuration file containing the hostnames or IP addresses of one or more default routers. SEE ALSO
in.rdisc(1M), in.routed(1M), routeadm(1M), hosts(4) SunOS 5.10 17 Aug 2004 defaultrouter(4)