Sponsored Content
Operating Systems Linux Add persistent route in cent os 6.5 Post 302959629 by omkar.jadhav on Friday 6th of November 2015 03:24:15 AM
Old 11-06-2015
Can someone please assist ...
below are the entries which i had made as a static route :

Code:
 
cat /etc/sysconfig/network-scripts/route-eth0
ADDRESS0=10.0.0.0
NETMASK0=255.0.0.0
GATEWAY0=10.59.160.128
cat /etc/sysconfig/network-scripts/route-bond1
NETMASK0=0.0.0.0
GATEWAY0=49.44.52.90
ADDRESS0=0.0.0.0

but still post restarting network service routing for bond1 is replaced by eth0 as below :
Code:
 
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
49.44.52.96     *               255.255.255.224 U     0      0        0 bond1
10.59.163.128   *               255.255.255.192 U     0      0        0 eth0
10.70.77.0      *               255.255.255.192 U     0      0        0 bond0
link-local      *               255.255.0.0     U     1002   0        0 eth0
link-local      *               255.255.0.0     U     1014   0        0 bond0
link-local      *               255.255.0.0     U     1015   0        0 bond1
10.0.0.0        10.59.160.128   255.0.0.0       UG    0      0        0 eth0
default         10.59.160.128   0.0.0.0         UG    0      0        0 eth0

ideally even after network restart it should be :
Code:
 
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
49.44.52.96     *               255.255.255.224 U     0      0        0 bond1
10.59.163.128   *               255.255.255.192 U     0      0        0 eth0
10.70.77.0      *               255.255.255.192 U     0      0        0 bond0
link-local      *               255.255.0.0     U     1002   0        0 eth0
link-local      *               255.255.0.0     U     1014   0        0 bond0
link-local      *               255.255.0.0     U     1015   0        0 bond1
10.0.0.0        10.59.160.128   255.0.0.0       UG    0      0        0 eth0
default         49.44.52.90    0.0.0.0         UG    0      0        0 bond1

---------- Post updated 11-06-15 at 03:24 AM ---------- Previous update was 11-05-15 at 04:15 AM ----------

can someone suggest what might be wrong in above case and how to correct it..
 

10 More Discussions You Might Find Interesting

1. AIX

route add

Hello , We have 3 rs/6000 server's running aix on our local network, so each time I try to ping one of these servers we get a "network is down" error , I've been instructed to use to route add command which is ... #route add server.ip router.ip after this the ping command works fine ,... (6 Replies)
Discussion started by: cubicle^dweller
6 Replies

2. IP Networking

Do I need to add a route??

I have two networks connected by cisco routers. My first subnet is 192.168.0.0 and my second is 192.168.1.0. My SCO unix machine is on the 192.168.1.0 subnet with an IP of 192.168.1.231. It can see the entire .1.0 subnet but nothing on the other network. My cicso router(gateway) to the other... (6 Replies)
Discussion started by: agoodrich
6 Replies

3. HP-UX

Add Route on HP-UX v10.x, help.

Hi, My H-UX box has the GW pointing to 10.10.10.1 and I need add it a new route pointing to 192.168.80.x with the GW 10.10.10.13 I tried with: #route add 192.168.80.2 255.255.255.255 10.10.10.13 but I get: add net 192.168.80.0: gateway 255.255.255.0: Network is unreachable I tried with... (4 Replies)
Discussion started by: efrenba
4 Replies

4. IP Networking

Route add probleme

I have a system that i want to reach via a vpn created vi a fierwall.The fierwall in an other system. The ip i am trying to get to is 172.16.4.48 I need to get to it via the hme1 interface. The vpn gateway has this ip 172.30.50.1 I need to clean up the routing table and make this work; or is it... (5 Replies)
Discussion started by: waterboy
5 Replies

5. Solaris

Route Add

Hi, I am trying to add route command in Solaris 10 machine in the following fashion: route add -host 10.8.112.10 180.144.1.250 -interface lo0:1 this command fails with an error "lo0:1: bad value" I want to add a route to 10.8.112.10 that picks 180.144.1.250 as the gateway via the... (3 Replies)
Discussion started by: sudhir_shet
3 Replies

6. IP Networking

route add

I have built a new linux server, via a iLo connection. and I am trying to connect via my desktop to the server I have just built to the management port eth0 via putty. Please could some one advise how to connect to this server from my desktop. Do i need to create add a route access on the... (0 Replies)
Discussion started by: venhart
0 Replies

7. Solaris

Add route to solaris10

Hi need to add 2 routes, one on each server. I know the route add comand but I have always been given the parameters to put in. I need a route in each of the 2 following servers to be able to ping and ssh between them. But how do i know which netmask to put in the route add command ? In... (6 Replies)
Discussion started by: vettec3
6 Replies

8. AIX

Unable to add persistent IP

i am trying to make HACMP but when i add a persistent ip, error shows unable to determine address for 'UPIDGIS1_pers' pls help me out AIX - 5.3 HACMP -5.4 thanks (2 Replies)
Discussion started by: reply.ravi
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. IP Networking

Add explicit route

Add explicit route to 10.128.255.41/32 , gateway: 10.128.201.254 if not working, please try gateway through management port: 10.128.55.254 Just want to double confirm if this would be the correct command #route add -net 10.128.255.41/32 10.128.201.254 And if didnt work #route add... (1 Reply)
Discussion started by: Thilagarajan
1 Replies
ROUTE6D(8)						    BSD System Manager's Manual 						ROUTE6D(8)

NAME
route6d -- RIP6 Routing Daemon SYNOPSIS
route6d [-adDhlnqsS] [-R routelog] [-A prefix/preflen,if1[,if2...]] [-L prefix/preflen,if1[,if2...]] [-N if1[,if2...]] [-O prefix/preflen,if1[,if2...]] [-P number] [-p pidfile] [-Q number] [-T if1[,if2...]] [-t tag] DESCRIPTION
The route6d utility is a routing daemon which supports RIP over IPv6. Options are: -a Enables aging of the statically defined routes. With this option, any statically defined routes will be removed unless corresponding updates arrive as if the routes are received at the startup of route6d. -R routelog This option makes the route6d to log the route change (add/delete) to the file routelog. -A prefix/preflen,if1[,if2...] This option is used for aggregating routes. prefix/preflen specifies the prefix and the prefix length of the aggregated route. When advertising routes, route6d filters specific routes covered by the aggregate, and advertises the aggregated route prefix/preflen, to the interfaces specified in the comma-separated interface list, if1[,if2...]. The characters "*", "?", and "[" in the interface list will be interpreted as shell-style pattern. The route6d utility creates a static route to prefix/preflen with RTF_REJECT flag, into the kernel routing table. -d Enables output of debugging message. This option also instructs route6d to run in foreground mode (does not become daemon). -D Enables extensive output of debugging message. This option also instructs route6d to run in foreground mode (does not become dae- mon). -h Disables the split horizon processing. -l By default, route6d will not exchange site local routes for safety reasons. This is because semantics of site local address space is rather vague (specification is still in being worked), and there is no good way to define site local boundary. With -l option, route6d will exchange site local routes as well. It must not be used on site boundary routers, since -l option assumes that all interfaces are in the same site. -L prefix/preflen,if1[,if2...] Filter incoming routes from interfaces if1,[if2...]. The route6d utility will accept incoming routes that are in prefix/preflen. If multiple -L options are specified, any routes that match one of the options is accepted. ::/0 is treated specially as default route, not ``any route that has longer prefix length than, or equal to 0''. If you would like to accept any route, specify no -L option. For example, with ``-L 2001:db8::/16,if1 -L ::/0,if1'' route6d will accept default route and routes in 6bone test address, but no others. -n Do not update the kernel routing table. -N if1[,if2...] Do not listen to, or advertise, route from/to interfaces specified by if1,[if2...]. -O prefix/preflen,if1[,if2...] Restrict route advertisement toward interfaces specified by if1,[if2...]. With this option route6d will only advertise routes that matches prefix/preflen. -P number Specifies routes to be ignored in calculation of expiration timer. The number must be 1, 2, or 3 and it means route flags of RTF_PROTO1, RTF_PROTO2, or RTF_PROTO3. When 1 is specified, routes with RTF_PROTO1 will never expire. -p pidfile Specifies an alternative file in which to store the process ID. The default is /var/run/route6d.pid. -Q number Specifies flag which will be used for routes added by RIP protocol. The default is 2 (RTF_PROTO2). -q Makes route6d in listen-only mode. No advertisement is sent. -s Makes route6d to advertise the statically defined routes which exist in the kernel routing table when route6d invoked. Announcements obey the regular split horizon rule. -S This option is the same as -s option except that no split horizon rule does apply. -T if1[,if2...] Advertise only default route, toward if1,[if2...]. -t tag Attach route tag tag to originated route entries. tag can be decimal, octal prefixed by 0, or hexadecimal prefixed by 0x. Upon receipt of signal SIGINT or SIGUSR1, route6d will dump the current internal state into /var/run/route6d_dump. FILES
/var/run/route6d_dump dumps internal state on SIGINT or SIGUSR1 SEE ALSO
G. Malkin and R. Minnear, RIPng for IPv6, RFC2080, January 1997. NOTE
The route6d utility uses IPv6 advanced API, defined in RFC2292, for communicating with peers using link-local addresses. Internally route6d embeds interface identifier into bit 32 to 63 of link-local addresses (fe80::xx and ff02::xx) so they will be visible on internal state dump file (/var/run/route6d_dump). Routing table manipulation differs from IPv6 implementation to implementation. Currently route6d obeys WIDE Hydrangea/KAME IPv6 kernel, and will not be able to run on other platforms. Current route6d does not reduce the rate of the triggered updates when consecutive updates arrive. BSD
November 18, 2012 BSD
All times are GMT -4. The time now is 09:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy