Sponsored Content
Full Discussion: Default route question
Operating Systems AIX Default route question Post 302405933 by shockneck on Saturday 20th of March 2010 06:47:32 PM
Old 03-20-2010
Quote:
Originally Posted by gsabarinath
Hello I have a question regarding default route on AIX servers. (I am using a p5 5.3 TL9 machine).[...]

1. How do I know if a route a persistant across reboots (how to Check without actually rebooting the machine :-0) . Because as per my understanding route added with "route add" command is not persistant and the same done with smitty is persistant across reboots.
2. Is it because there were no packet transfered t,hat there is no entry about x.x.202.129
[...]
There are several ways to make a route persistent. On AIX this usually means writing the information into the ODM. This is done with the mkdev/chdev commands (that are being used by SMIT but can also be used on commandline). With the lsattr command you query the ODM:
Code:
# lsattr -El inet0

shows you the routes that are defined in the ODM and thus will be active after reboot. The same information but in different format can be found by querying the ODM directly:
Code:
# odmget -q attribute=route CuAt

The route command itself however can be used for the same purpose just by adding an entry into the /etc/rc.net. This would lead to a 'permanent' route but without a trace in the ODM.
As to your second question: from the inet0 information there should be 2 default routes. As the netstat output just shows one I would think that the missing default route was removed by the route command. However, it will be back after a reboot. Best to remove it from the ODM if you don't need it.
 

8 More Discussions You Might Find Interesting

1. AIX

Permanent Default Route

Hi, We are running AIX 5.2. Our default gateway used to be IP Address A. Our new default gateway is IP Address B. A netstat revealed that our default route was IP address A. We manually added default route with IP address B and removed the default route with IP address A. However,... (3 Replies)
Discussion started by: DenD
3 Replies

2. AIX

Default route removed - what to do ?

Hi, After accidental default route removal serial connection doesn't work. What should I do to connect to my machine ? thanks Vilius (7 Replies)
Discussion started by: vilius
7 Replies

3. 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

4. Solaris

Default route is configured, but seem to not work

Hiya, I got the default gateway set in /etc/defaultrouter file, however "netstat -nr" doesn't show anything like "default" in the routing table. As far as I know "netstat" on Solaris 10 u7 should show something like : Routing Table: IPv4 Destination Gateway Flags Ref ... (8 Replies)
Discussion started by: TomSu
8 Replies

5. IP Networking

DHCP/pxeboot Situation: how to specify default route?

Greetings, I am using debian squeeze to perform the following operation: 1. pxeboot Alix 2.c board into debian installer When I get to the installer my laptop's dhcp server successfully provides an ip address but does not set up the default route. I am not sure how to provide this. I... (2 Replies)
Discussion started by: mock
2 Replies

6. AIX

Default Route add fails

AIX version 5.3 when I try to add default gateway # route add 0 192.168.100.254 Or # route add default 192.168.100.254 I get the error 0821-275 route: socket: The file access permissions do not allow the specified action. searching on google i came across similar... (5 Replies)
Discussion started by: filosophizer
5 Replies

7. Solaris

Default route in system

Hi All Recently we have faced issue in SUN server after reboot of node 2 default routs has been added to system as below IRE Table: IPv4 **Destination*************Mask***********Gateway**********Device Mxfrg Rtt***Ref Flg**Out**In/Fwd* -------------------- ---------------... (2 Replies)
Discussion started by: aaysa123
2 Replies

8. Red Hat

IP Route add default and make permanet

Hi all, actually i'm facing this problem, we have 2 NICs on our VM.s with REDHAT 7.2 release, we made the following set up as we needed to access them from both IP ip route flush all ip route add 10.130.11.0/24 dev eno2 tab 1 ip route add 10.130.10.0/24 dev eno1 tab 2 ip route add... (0 Replies)
Discussion started by: charli1
0 Replies
Mojolicious::Routes(3pm)				User Contributed Perl Documentation				  Mojolicious::Routes(3pm)

NAME
Mojolicious::Routes - Always find your destination with routes SYNOPSIS
use Mojolicious::Routes; # New routes tree my $r = Mojolicious::Routes->new; # Normal route matching "/articles" with parameters "controller" and # "action" $r->route('/articles')->to(controller => 'article', action => 'list'); # Route with a placeholder matching everything but "/" and "." $r->route('/:controller')->to(action => 'list'); # Route with a placeholder and regex constraint $r->route('/articles/:id', id => qr/d+/) ->to(controller => 'article', action => 'view'); # Route with an optional parameter "year" $r->route('/archive/:year') ->to(controller => 'archive', action => 'list', year => undef); # Nested route for two actions sharing the same "controller" parameter my $books = $r->route('/books/:id')->to(controller => 'book'); $books->route('/edit')->to(action => 'edit'); $books->route('/delete')->to(action => 'delete'); # Bridges can be used to chain multiple routes $r->bridge->to(controller => 'foo', action =>'auth') ->route('/blog')->to(action => 'list'); # Simplified Mojolicious::Lite style route generation is also possible $r->get('/')->to(controller => 'blog', action => 'welcome'); my $blog = $r->under('/blog'); $blog->post('/list')->to('blog#list'); $blog->get(sub { shift->render(text => 'Go away!') }); DESCRIPTION
Mojolicious::Routes is the core of the Mojolicious web framework. See Mojolicious::Guides::Routing for more. ATTRIBUTES
Mojolicious::Routes inherits all attributes from Mojolicious::Routes::Route and implements the following new ones. "base_classes" my $classes = $r->base_classes; $r = $r->base_classes(['MyApp::Controller']); Base classes used to identify controllers, defaults to Mojolicious::Controller and Mojo. "cache" my $cache = $r->cache; $r = $r->cache(Mojo::Cache->new); Routing cache, defaults to a Mojo::Cache object. # Disable caching $r->cache(0); "conditions" my $conditions = $r->conditions; $r = $r->conditions({foo => sub {...}}); Contains all available conditions. "hidden" my $hidden = $r->hidden; $r = $r->hidden([qw(attr has new)]); Controller methods and attributes that are hidden from routes, defaults to "attr", "has" and "new". "namespace" my $namespace = $r->namespace; $r = $r->namespace('Foo::Bar::Controller'); Namespace used by "dispatch" to search for controllers. "shortcuts" my $shortcuts = $r->shortcuts; $r = $r->shortcuts({foo => sub {...}}); Contains all available shortcuts. METHODS
Mojolicious::Routes inherits all methods from Mojolicious::Routes::Route and implements the following ones. "add_condition" $r = $r->add_condition(foo => sub {...}); Add a new condition. "add_shortcut" $r = $r->add_shortcut(foo => sub {...}); Add a new shortcut. "auto_render" $r->auto_render(Mojolicious::Controller->new); Automatic rendering. "dispatch" my $success = $r->dispatch(Mojolicious::Controller->new); Match routes with Mojolicious::Routes::Match and dispatch. "hide" $r = $r->hide(qw(foo bar)); Hide controller methods and attributes from routes. "route" my $route = $r->route; my $route = $r->route('/:action'); my $route = $r->route('/:action', action => qr/w+/); my $route = $r->route(format => 0); Generate route matching all HTTP request methods. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Routes(3pm)
All times are GMT -4. The time now is 04:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy