Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing default route to different interface

Status
Not open for further replies.

gcazian

MIS
Dec 4, 2002
61
US
Currently, we have an AIX 5.1 system with 2 network interfaces. One interface is 10/100Mbps and another is 1000Mbps. Presently, all traffic is going through the slower card (en0). We want to change the default route so that all traffic is going through the faster interface (en2). Here is the current entry in the routing table:

default 10.10.10.1 UGc 0 0 en0 - -

I obviously need to remove the default route, but am a little unsure on how to recreate the new default route entry. Would the entry need to be created like so?:

route add 0 10.10.10.1 -if en2



Any help would be appreciated.

 
My distant past experience was that you should use smit to do the addition, the command line additions doesn't survive a reboot.
I think the reason was when using the smit way it adds it to the ODM. It offers a field for selecting your network interface.

Fastpath = smitty tcpip
Select:
Further Configuration
Static Routes
Add a Static Route

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Thanks, I wasn't sure if running from the command line would make the change permanent (i.e. place it in the ODM).

My only question now is how do I choose to make all traffic go through en2? If I go to "Add a Static Route" in smitty, there is no option to choose which interface to use.
 
There should be, on the page after selecting "Add a Static Route " the following line is available, press F4 to list your interfaces.

Network Interface [] +
(interface to associate route with)

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Sorry, the system is 4.3, not 5.1 as I previously stated. 4.3 doesn't have the option to choose which interface to use in this operation.

The workaround is to detatch the old interface, add an alias for the old IP address to en2, and add the new default route.

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top