1834020 Members
3038 Online
110063 Solutions
New Discussion

Re: Error on routing

 
Shibin_2
Honored Contributor

Error on routing

I have a HP Unix 9000 K class server. When I booted, it made and error on /etc/rc.log as follows:

Configure LAN interfaces
Output from "/sbin/rc2.d/S008net.sd start":
----------------------------
ERROR: usage: add destination [netmask mask] gateway [metric]
ERROR: usage: add destination [netmask mask] gateway [metric]
ERROR: usage: add destination [netmask mask] gateway [metric]
"/sbin/rc2.d/S008net.sd start" FAILED


I recently entered two new routing entries on /etc/rc.config.d/netconf file. The entries seems to be alright, but still this error coming. Pls help
Regards
Shibin
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Error on routing

Shalom,

Error in the netconf file.

Back out the change, do not keep a backup copy in the /etc/rc.config.d folder and try again.

To find the mistake, I have to actually see your netconf file.

I'm willing to do that offline. See my ITRC profile for a secure contact form.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: Error on routing

You do have errors in netconf file. If you can post it, we can have a look at it.
There is no substitute to HARDWORK
Shibin_2
Honored Contributor

Re: Error on routing

check out my netconf file.....

...........................................

# netconf: configuration values for core networking subsystems
#
# @(#) $Revision: 1.4.116.4 $ $Date: 96/01/22 14:56:43 $
#
# HOSTNAME: Name of your system for uname -S and hostname
#
# OPERATING_SYSTEM: Name of operating system returned by uname -s
# ---- DO NOT CHANGE THIS VALUE ----
#
# LOOPBACK_ADDRESS: Loopback address
# ---- DO NOT CHANGE THIS VALUE ----
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

HOSTNAME="mb_india"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1


# Internet configuration parameters. See ifconfig(1m), lanconfig(1m)
#
# INTERFACE_NAME: Network interface name (see lanscan(1m))
#
# IP_ADDRESS: IP address in decimal-dot notation (e.g., 192.1.2.3)
#
# SUBNET_MASK: Subnetwork mask in decimal-dot notation, if different
# from default
#
# BROADCAST_ADDRESS: Broadcast address in decimal-dot notation, if
# different from default
#
# LANCONFIG_ARGS: Link-layer encapsulation methods (e.g., ieee, ether).
# See lanconfig(1m) for details.
#
# DHCP_ENABLE Determines whether or not DHCP will be enabled on the
# network interface (see auto_parms(1M), dhcpclient(1M))
# 1 enables DHCP; 0 disables DHCP.
#
# For each additional network interfaces, add a set of variable assignments
# like the ones below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.101.39.25
SUBNET_MASK[0]="255.255.255.0"
netconf (38%)


BROADCAST_ADDRESS[0]=""
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0

# Internet routing configuration. See route(1m), routing(7)
#
# ROUTE_DESTINATION: Destination host or network IP address in
# decimal-dot notation, preceded by the word
# "host" or "net"; or simply the word "default".
#
# ROUTE_MASK: Subnetwork mask in decimal-dot notation, or C language
# hexadecimal notation. This is an optional field.
# A IP address, subnet mask pair uniquely identifies
# a subnet to be reached. If a subnet mask is not given,
# then the system will assign the longest subnet mask
# of the configured network interfaces to this route.
# If there is no matching subnet mask, then the system
# will assign the default network mask as the route's
# subnet mask.
#
# ROUTE_GATEWAY: Gateway IP address in decimal-dot notation.
# If local interface, must use the same form
# as used for IP_ADDRESS above.
#
# ROUTE_COUNT: An integer that indicates whether the gateway is a
# remote interface (one) or the local interface (zero).
#
# ROUTE_ARGS: Route command arguments and options. This variable
# may contain a combination of the following arguments:
# "-f", "-n" and "-p pmtu".
#
# For each additional route, add a set of variable assignments like the ones
# below, changing the index to "[1]", "[2]" et cetera.
#
# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

ROUTE_DESTINATION[0]="128.1.13.0"
ROUTE_MASK[0]="255.255.255.0"
ROUTE_GATEWAY[0]="10.101.39.4"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

# Dynamic routing to Swift Server

ROUTE_DESTINATION[1]="172.18.0.0"
ROUTE_MASK[1]="255.255.0.0"
ROUTE_GATEWAY[1]="10.101.39.4"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

# Dynamic routing daemon configuration. See gated(1m)


ROUTE_DESTINATION[2]="10.101.41.1"
ROUTE_MASK[2]="255.255.255.0"
ROUTE_GATEWAY[2]="10.101.39.1"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""


#
# GATED: Set to 1 to start gated daemon.
# GATED_ARGS: Arguments to the gated daemon.

GATED=0
GATED_ARGS=""

#
# Router Discover Protocol daemon configuration. See rdpd(1m)
#
# RDPD: Set to 1 to start rdpd daemon
netconf (95%)

RDPD=0

#
# Reverse Address Resolution Protocol daemon configuration. See rarpd(1m)
#
# RARPD: Set to 1 to start rarpd daemon
#

RARPD=0
Regards
Shibin
siva baskaran
Regular Advisor

Re: Error on routing

ROUTE_DESTINATION[2]="10.101.41.1"
ROUTE_MASK[2]="255.255.255.0"
ROUTE_GATEWAY[2]="10.101.39.1"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""

yes there is problem with u r enry just pu "net" word suffix of detination ip like

ROUTE_DESTINATION[2]="net 10.101.41.1"
ROUTE_MASK[2]="255.255.255.0"
ROUTE_GATEWAY[2]="10.101.39.1"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""

becoz of it indicated this is n/w ip , and error is gave tree time, and u have entered tree entry so make correct and and restar the correcponding service immediately u can check it out the error will come at next boot or not

thanks
siva


Jim Keeble
Trusted Contributor

Re: Error on routing



ROUTE_DESTINATION[2]="10.101.41.1"
ROUTE_MASK[2]="255.255.255.0"
ROUTE_GATEWAY[2]="10.101.39.1"
ROUTE_COUNT[2]="1"
ROUTE_ARGS[2]=""

It looks like you want a network route here, but you have given a host address as the destination. So you probably want :

ROUTE_DESTINATION[2]="10.101.41.0"
or
ROUTE_DESTINATION[2]="net 10.101.41.0"

Or, if a host route really is what you want, ie., a route only to that one host:

ROUTE_DESTINATION[2]="host 10.101.41.1"
ROUTE_MASK[2]="255.255.255.255"
Shibin_2
Honored Contributor

Re: Error on routing

I found the solution my self. Anyway, thanks guys to help me out.
Regards
Shibin