Welcome to the most active Linux Forum on the web.
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


  Search this Thread
Old 11-21-2006, 02:43 PM   #1
LQ Newbie
Registered: Nov 2006
Distribution: RHEL4
Posts: 2

Rep: Reputation: 0
Question How does one make a static route persistent in AIX?

In AIX, I made a static route using a command similar to the following, but it wasn't persistent across reboots.

route add -host -interface en0

I made a persistent static route using a command like:

lsdev -l inet0 -a route="-host",,"

The problem with the lsdev was that the routing table entry it created didn't have a "G" in the flags field (ie - the "gateway" field didn't really show the gateway to the host).

I remember some years ago in another *nix (perhaps Unixware) I had to edit /etc/inet/config to make a gateway entry persistent. Is there some config file in AIX I can simpy edit to make a static route persistent?

-artasse (note: handle unrelated to art or ...)
Old 11-22-2006, 08:19 AM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49

smitty tcpip

as root.
Old 11-22-2006, 02:51 PM   #3
LQ Newbie
Registered: Nov 2006
Distribution: RHEL4
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks born4linux. Unfortunately, though smitty tcpip added the static route correctly, the route wasn't correct after the reboot. The G flag was missing (as shown by netstat -r), which means the value in the gateway field wasn't really a gateway.

I found there was a file in /etc that I was able to edit, which allowed me to add the route correctly during boot up.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
persistent static route ANU Linux - Networking 5 04-01-2012 07:23 PM
Help with static route noinfo Linux - Networking 1 10-05-2005 11:40 AM
static route cox Linux - Networking 3 09-30-2003 02:22 PM
Make a ROUTE persistent accross boots of the system thecrab Linux - Networking 2 05-30-2002 02:51 PM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 10:07 AM > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration