LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 11-21-2006, 02:43 PM   #1
artasse
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 10.1.1.10 10.2.2.254 -interface en0


I made a persistent static route using a command like:

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

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
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
try:

smitty tcpip

as root.
 
Old 11-22-2006, 02:51 PM   #3
artasse
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 rc.net file in /etc that I was able to edit, which allowed me to add the route correctly during boot up.

-artasse
 
  


Reply


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

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 11:32 PM.

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