Sponsored Content
Full Discussion: Error adding static route
Operating Systems Solaris Error adding static route Post 302432174 by l33tbot_if on Thursday 24th of June 2010 05:53:24 AM
Old 06-24-2010
here it is :

Code:
root@xxxx # less /etc/netmasks 
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
# 
#       network-number  netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
#               128.32.0.0 255.255.255.0
#
1.4.125.0     255.255.255.0
2.15.246.0   255.255.255.0
root@xxxx # less /etc/defaultrouter 
1.4.125.1
root@xxxx # netstat -nr

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface 
-------------------- -------------------- ----- ----- ---------- --------- 
default              1.4.125.1          UG        1        227           
1.4.125.0          1.4.125.123        U         1        505 ce0       
224.0.0.0            1.4.125.123        U         1          0 ce0       
127.0.0.1            127.0.0.1            UH       36      74784 lo0       
root@xxxx # ping 2.15.246.253
no answer from 2.15.246.253
root@xxxx # ping 2.15.246.1  
2.15.246.1 is alive
root@xxxx # traceroute 2.15.246.1
traceroute to 2.15.246.1 (2.15.246.1), 30 hops max, 40 byte packets
 1  1.4.125.3 (1.4.125.3)  0.317 ms  0.252 ms  0.233 ms
 2  1.4.113.75 (1.4.113.75)  0.552 ms  0.431 ms  0.421 ms
 3  1.4.113.21 (1.4.113.21)  0.471 ms  0.477 ms  0.509 ms
 4  1.4.113.142 (1.4.113.142)  3.176 ms  3.174 ms  3.120 ms
 5  1.1.126.121 (1.1.126.121)  3.392 ms  3.227 ms  3.321 ms
 6  1.1.126.50 (1.1.126.50)  3.303 ms  3.367 ms  3.306 ms
 7  2.15.246.1 (2.15.246.1)  3.359 ms  3.481 ms  3.373 ms
root@xxxx # traceroute 2.15.246.253
traceroute to 2.15.246.253 (2.15.246.253), 30 hops max, 40 byte packets
 1  1.4.125.3 (1.4.125.3)  0.352 ms  0.228 ms  0.246 ms
 2  1.4.113.75 (1.4.113.75)  0.526 ms  0.439 ms  0.450 ms
 3  1.4.113.13 (1.4.113.13)  0.545 ms  0.482 ms  0.466 ms
 4  1.4.113.138 (1.4.113.138)  3.326 ms  3.153 ms  3.128 ms
 5  1.2.201.138 (1.2.201.138)  3.293 ms  3.302 ms  3.304 ms
 6  1.1.126.50 (1.1.126.50)  3.282 ms  3.363 ms  3.232 ms
 7  1.6.4.7 (1.6.4.7)  3.429 ms  3.377 ms  3.384 ms
 8  * * *
 9  *^C
root@xxxx # route add -net 2.15.246.0 255.255.255.0 2.15.246.1 2
add net 2.15.246.0: gateway 255.255.255.0: Network is unreachable

Moderator's Comments:
Mod Comment Please use code tags...

Last edited by Scott; 07-17-2010 at 07:53 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. IP Networking

static route ?

Hi, I have a machine that sits on 10.2 network. I need to ssh from this to another box that is on both 10.125 & 10.140 VLANs what should I need to do? Thanks! (3 Replies)
Discussion started by: chaandana
3 Replies

2. HP-UX

Static route for hpux 11.22

I want to make static route how would I proceed? I'm using "route add DestinationIP gatewayIP hop to 1 I would like to make this permanent, so when it reboots I don't want to loose it, would I do this in netconf file? If so where? I did a search got this site, it didn't help much. ... (2 Replies)
Discussion started by: catwomen
2 Replies

3. UNIX for Dummies Questions & Answers

Static Route

Hi, Request you to please tell me the command or the process to add the static route in redhat linux. Thanks in Advance. Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

4. AIX

removing static route

#netstat -nr (shows the following with more static routes) 192.168.18.202 10.129.155.1 UGH 0 29 en0 - - and i just want to remove the above one i tried #smitty rmroute destination type= net dest add = 192.168.18.202 default gateway= 10.129.155.1 net... (1 Reply)
Discussion started by: pchangba1
1 Replies

5. IP Networking

When to use static route on server?

Hi guys, sorry for asking noob question. When do we really need to add a static route on the server? I encounter this situation whereby a client trigger a network packet to the destination but the destination does not know how to return the traffic back to the client (source). The issue was... (4 Replies)
Discussion started by: DrivesMeCrazy
4 Replies

6. Solaris

Network interface down after adding static route

Please , I have a problem I have add a statis route on Solaris 10, but after this, the network interface of Server was Offline. The system is in cluster mode (3.2) route add -net 10.10.1.128 -netmask 255.255.255.128 10.10.1.51 ------------------- lo0:... (1 Reply)
Discussion started by: Ruggero
1 Replies

7. Red Hat

static route not working on startup

Hi, Using Centos, under /etc/rc5.d, I wrote a quick script to add my static route when the server gets rebooted. The script doesn't get executed. I did set the permission to 777. After I reboot the server, if I execute, it works manually. I do this all the time on Solaris and never had... (5 Replies)
Discussion started by: samnyc
5 Replies

8. AIX

Edit Static Route

Anyone know how to edit a static route in AIX? I find myself deleting and then recreating the route with the new information. Would be nice to know how to edit the route. (3 Replies)
Discussion started by: bbbngowc
3 Replies

9. Red Hat

Static route not added

Hello Guys.. I am facing this weird problem of static route not added after reboot!! Following is my route-<interface> file.. # cat /etc/sysconfig/network-scripts/route-eth0 ADDRESS0=172.31.0.1 NETMASK0=255.255.255.255 GATEWAY0=192.168.208.1 ADDRESS1=172.31.15.2... (3 Replies)
Discussion started by: parth_buch
3 Replies

10. IP Networking

Static route on router

Hi all, This may be the basic question of Routing but I am a sort of new to networking so I am asking. Do I need to put route for my router's LAN port ip to WAN (serial) port ip Or the router itself can communicate between its ports without routes. lan (172.26.40.5) ... (3 Replies)
Discussion started by: dextergenious
3 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 07:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy