scripting routing changes on aix 4.3 and 5x


 
Thread Tools Search this Thread
Operating Systems AIX scripting routing changes on aix 4.3 and 5x
# 1  
Old 07-18-2008
scripting routing changes on aix 4.3 and 5x

Hi All,

I need to script a routing changes on my aix servers. I can't use smitty, very slow.

I need to delete the static routing and add a new one. I also need to change default routing.

I know using route add and route delete but I think I remember that this is not enough that's why I prefer smitty to make the changes effective.

Is smitty just for the default routing? Using 'minimum configuration...' or a script will do as well. I know a deleting and adding routing will do on script effectively.

Do I need to change some files? Like in solaris the /etc/defaultrouter and /etc/staticroutes, is there an equivalent in aix4.3 and aix 5x

Thanks in advance.
# 2  
Old 07-18-2008
No changes on files are needed, afaik. You just delete/add the routes with the route command and do your changes to the ODM with for example with chdev on inet0 etc.
When you're done, don't forget to write the new image with bosboot -ad /dev/ipldevice. Else you might have your old routes back next time you reboot.
# 3  
Old 07-18-2008
about the bosboot, i don't think that is related to the routing because bosboot is related to boot logical volume.

and smitty will make the default permanent. just verify after the routing changes with "lsattr -El inet0' and if the list give you the old route, just delete it with "chdev -l inet0 -a delroute=....this will come from lsattr output..."

cheers!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in scripting in AIX

Hello, In a loop I am using below command for every database crsctl status res | grep -E "ora\.$DATABASE\.(.+)\.svc" and below is one of the sample output NAME=ora.sgraphut.sgraphutxdb.svc Now I want to extract just service name out of this string (that is sgraphutxdb) please help me how... (1 Reply)
Discussion started by: Vishal_dba
1 Replies

2. AIX

Aix Routing Problem

I need the following solution , please help me... Current situation ip: 192.168.0.12 persistent and 192.168.254.12 service ip gateway: 192.168.0.254 subnet: 255.255.255.0 i have added a new ip on a new nic ip: 10.10.255.40 gateway: 10.10.255.62 subnet: 255.255.255.224 ... (1 Reply)
Discussion started by: rajibimran
1 Replies

3. AIX

how do I create a routing table (AIX)

Hi, I just noticed that we cannot connect to some parts of our network. I guess this has something to do with a network change some time ago where we got different subnets. We have our workstations all connected to a switch with a subnet 10.100.123.xx The switch is then connected to our main... (5 Replies)
Discussion started by: eRJe
5 Replies

4. AIX

Routing setup - AIX

Hi All, I know there is a way to do this in routers. The question is whether it is posisble to do this in AIX. For our Web Focus ODBC connection to the Disaster Recovery servers, we want to restrict the access to the ODBC ports so that only the IP address of the Web Focus server can get to... (1 Reply)
Discussion started by: strunz
1 Replies

5. AIX

AIX routing and TCPIP. Anyone find any good Tutorials?

HI All, Does anyone out there know of any good online tutorials for the basics of routing, gateways, networking with AIX, preferably the more recent versions like 5.2/5.3? Using commands such as netstat, smit mkroute, etc. to connect to boxes on a network, and load software with networked... (1 Reply)
Discussion started by: jeffpas
1 Replies

6. AIX

AIX Routing Issue

Hello, I've moved to a new network with multiple AIX box's. Most of them are working fine and dandy. On one box I need to set up a static route to a gateway.. no problem right? Whenever I add the route it appears in the routing table as UGc and then begins adding new entries to the... (1 Reply)
Discussion started by: joshstar14
1 Replies

7. UNIX for Dummies Questions & Answers

AIX 5.3 Routing

Hey all you *Nix Gurus...I got a relatively simple one for ya. I just cloned an AIX 5.3 server without copy over the Network info. However, now I need to update the routing table on the destination server so that it mirrors the source. Aside from painstakingly, manually updating the ODM using... (1 Reply)
Discussion started by: BlitzSonik
1 Replies

8. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

9. Shell Programming and Scripting

scripting guru's pls help me with scripting on AIX

can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files... pls someone help me on this... thanking in anticipation.... (1 Reply)
Discussion started by: thatiprashant
1 Replies

10. AIX

AIX 4.3.3.0 routing problems

Hello guys. I have a AIX running an ip of 128.2.1.85 255.255.255.0, Main office router is 128.2.1.2 .we just got an t1 line point to point for a remote office with to pcs. My question. I'm not able to ping those pcs one of them is using this ip 128.2.2.128 255.255.255.0 Remote router ip... (2 Replies)
Discussion started by: josramon
2 Replies
Login or Register to Ask a Question