Sponsored Content
Operating Systems Solaris Couldn't add route on Solaris 10 Post 302706049 by gjackson123 on Wednesday 26th of September 2012 03:32:58 AM
Old 09-26-2012
Couldn't add route on Solaris 10

Hi Solaris Experts,

I am trying to add a routing table entry on our 5.1 Generic_144488-12 sun4v sparc Solaris 10 SUNW,SPARC-Enterprise-T5220 so that it is possible to ping 10.56.9.34 node

Code:
 
# netstat -rnv 
 
IRE Table: IPv4 
Destination Mask Gateway Device Mxfrg Rtt Ref
Flg Out In/Fwd 
-------------------- --------------- ----------------------- 
default 0.0.0.0 10.56.120.1 1500* 0 1 UG 36895 0 
default 0.0.0.0 10.56.120.1 e1000g0 1500* 0 1 UG 36493 0 
10.56.120.0 255.255.252.0 10.56.120.15 e1000g0 1500* 0 1 U 57218 0 
224.0.0.0 240.0.0.0 10.56.120.15 e1000g0 1500* 0 1 U 0 0 
127.0.0.1 255.255.255.255 127.0.0.1 lo0 8232* 0 4 UH 76729 0 
 

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000 
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone ultratest
inet 127.0.0.1 netmask ff000000 
e1000g0: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
inet 10.56.120.15 netmask fffffc00 broadcast 10.56.123.255
ether 0:14:4f:d4:f6:34 
e1000g0:1: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
zone ultratest
inet 10.56.120.31 netmask fffffc00 broadcast 10.56.123.255

# route add -net 10.56.9.34 -netmask 255.255.240.0 -gateway 10.56.0.1
add net 10.56.9.34: gateway 10.56.0.1: Network is unreachable
 
# ping 10.56.0.1 (gateway)
10.56.0.1 is alive
# route add -net 10.56.0.0 -netmask 255.255.240.0 -gateway 10.56.0.1 
add net 10.56.0.0: gateway 10.56.0.1: Network is unreachable
# ping 10.56.9.34
no answer from 10.56.9.34

Also added IP address of gateway (10.56.0.1) to /etc/defaultrouter:
Code:
# more /etc/defaultrouter
10.56.120.1
10.56.0.1

Are there any services that needs to be restarted for it to query gateway when looking up 10.56.9.34?

I have followed some instructions available from Googling but could not understand why they are not working here.

Thanks in advance,
George

Last edited by fpmurphy; 09-27-2012 at 08:25 AM.. Reason: remove fonts, tidy up post
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Route for Solaris 8

Hello Dear Friends, I'm here again I need to know where is the permanent file for gateway configuration. I did the following command route add -net 0.0.0.0 5.0.0.3 ( My Gateway), but when i restart my computer i have to do it again. What the file can i set the permanent configuration for my... (1 Reply)
Discussion started by: themask
1 Replies

2. Solaris

setting a route in Solaris

I am having problems getting this to work, though it seems like it would be simple. I have a host with 2 interfaces, hme0 (192.168.0.132) for the primary interface, and hme1 (192.168.0.16) for backups. I want it to talk to the backup host, which is 192.168.0.21, across the hme1 interface. Thanks (2 Replies)
Discussion started by: 98_1LE
2 Replies

3. IP Networking

add route to a subnet - Solaris 2.6

WE are running Unix - Solaris 2.6, we create a subnet. In the windows enviroment we are able to add a static route by using route add -p 172.16.10.0 mask 255.255.255.0 172.16.17.224, but when we add the route in Solaris as route add -net 172.16.10.0 255.255.255.0 172.16.17.224, we receive an... (5 Replies)
Discussion started by: cassy
5 Replies

4. Solaris

SOLARIS does not route

hi, i installed solaris 9 on an SPARC server with two network interfaces. behind each interface is a small lan. i can reach every computer in every lan using one of the other interface when i am logged in the solaris. but if a computer from one lan has to connect to a computer on the other lan,... (4 Replies)
Discussion started by: bong02
4 Replies

5. Solaris

Solaris Route configuraion

Hi, Any one can help me in this below mentioned issue I am facing in my solaris server? here the scenario goes.... i have multiple segments in my LAN like remote csr, database, production etc. and all the segments are configured in Windows/CISCo network. from my all system in remote... (1 Reply)
Discussion started by: Praan
1 Replies

6. Solaris

solaris 10 u5 what happens if no default route configured

Hi, I am new to solaris 10. What is the procedure the os takes if a default route is not configured? I am using a multihomed server with 4 interfaces. It looked strange to me this morning, because i had not defined a default route it defaulted to making one up, with the ip address of another... (9 Replies)
Discussion started by: borderblaster
9 Replies

7. Solaris

Route new network interface Solaris 8

Hi there, I'm trying to configure an additional network interface on Solaris 8 (eri0). The interface has been activated, but all the frames are still routed to the current default interface (ce0) I've tried following command (with various syntaxes...) unsuccessfully so far: # route add... (2 Replies)
Discussion started by: sreiniche
2 Replies

8. Solaris

route and interface configuration in solaris

Hi, Every time when i boot my system i have to manually issue the following commands. ifconfig elxl0 plumb 192.168.200.129 netmask 255.255.255.0 up route add default 192.168.200.1 I need some help so that it should be configured permanently and i wouldn't have to manually issue... (2 Replies)
Discussion started by: malikshahid85
2 Replies

9. Solaris

Add route to solaris 10

I need to add a new route on solaris10 machine. I want that all traffic on the 23 port (telnet) use 192.168.200.1 gateway. How I do ? Thank you in advance. (1 Reply)
Discussion started by: arfry
1 Replies

10. Solaris

Couldn't upgrade Solaris 10 x86 from Sun Fire x2200 to Dell Precision Wrkst

:)Dear Solaris Experts, I need to clone a Solaris 10 x86 system using a ufsdump backup from the following source & target servers: Sun Fire x2200 M2 with Quad Core Processor # /usr/platform/`uname -i`/sbin/prtdiag System Configuration: Sun Microsystems Sun Fire X2200 M2 with Quad Core... (8 Replies)
Discussion started by: gjackson123
8 Replies
netmasks(4)							   File Formats 						       netmasks(4)

NAME
netmasks - network mask database SYNOPSIS
/etc/inet/netmasks /etc/netmasks DESCRIPTION
The netmasks file contains network masks used to implement IP subnetting. It supports both standard subnetting as specified in RFC-950 and variable length subnetting as specified in RFC-1519. When using standard subnetting there should be a single line for each network that is subnetted in this file with the network number, any number of SPACE or TAB characters, and the network mask to use on that network. Network numbers and masks may be specified in the conventional IP `.' (dot) notation (like IP host addresses, but with zeroes for the host part). For example, 128.32.0.0 255.255.255.0 can be used to specify that the Class B network 128.32.0.0 should have eight bits of subnet field and eight bits of host field, in addition to the standard sixteen bits in the network field. When using variable length subnetting, the format is identical. However, there should be a line for each subnet with the first field being the subnet and the second field being the netmask that applies to that subnet. The users of the database, such as ifconfig(1M), perform a lookup to find the longest possible matching mask. It is possible to combine the RFC-950 and RFC-1519 form of subnet masks in the net- masks file. For example, 128.32.0.0 255.255.255.0 128.32.27.0 255.255.255.240 128.32.27.16 255.255.255.240 128.32.27.32 255.255.255.240 128.32.27.48 255.255.255.240 128.32.27.64 255.255.255.240 128.32.27.80 255.255.255.240 128.32.27.96 255.255.255.240 128.32.27.112 255.255.255.240 128.32.27.128 255.255.255.240 128.32.27.144 255.255.255.240 128.32.27.160 255.255.255.240 128.32.27.176 255.255.255.240 128.32.27.192 255.255.255.240 128.32.27.208 255.255.255.240 128.32.27.224 255.255.255.240 128.32.27.240 255.255.255.240 128.32.64.0 255.255.255.192 can be used to specify different netmasks in different parts of the 128.32.0.0 Class B network number. Addresses 128.32.27.0 through 128.32.27.255 have a subnet mask with 28 bits in the combined network and subnet fields (often referred to as the subnet field) and 4 bits in the host field. Furthermore, addresses 128.32.64.0 through 128.32.64.63 have a 26 bits in the subnet field. Finally, all other addresses in the range 128.32.0.0 through 128.32.255.255 have a 24 bit subnet field. Invalid entries are ignored. SEE ALSO
ifconfig(1M), inet(7P) Postel, Jon, and Mogul, Jeff, Internet Standard Subnetting Procedure, RFC 950, Network Information Center, SRI International, Menlo Park, Calif., August 1985. V. Fuller, T. Li, J. Yu, K. Varadhan, Classless Inter-Domain Routing (CIDR): an Address Assignment and Aggregation Strategy, RFC 1519, Network Information Center, SRI International, Menlo Park, Calif., September 1993. T. Pummill, B. Manning, Variable Length Subnet Table For IPv4, RFC 1878, Network Information Center, SRI International, Menlo Park, Calif., December 1995. NOTES
/etc/inet/netmasks is the official SVr4 name of the netmasks file. The symbolic link /etc/netmasks exists for BSD compatibility. SunOS 5.10 7 Jan 1997 netmasks(4)
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy