If you have two NICs that are on the same network segment (i.e. en0 = 135.100.50.1 and en1 = 135.100.50.2) and you want trafic to the 135.100.x.x network to default through en1:
run an rmdev -dl on both en0 and en1
rmdev -dl en0
rmdev -dl en1
run config manager
cfgmgr
setup en1 FIRST
smitty tcpip (minium config on en1)
then setup en0 (prefferably via smitty inet)
smitty inet (change/config en0)
When you do a netstat -nr, you will find an entry that looks like this
135.100/16 135.100.50.2 en1
There may be a way to do this with the -interface switch for the route command, but I've yet to find this documented anywhere.
Just because your netstat shows a network through a specific interface does not mean that ALL output will go through that one adapter. That would defeate the purpose of allowing users to enable 2 NIC cards on the same subnet w/ AIX 5.x.
ALL packets will be routed round-robin through BOTH NIC cards.
If you want to enable packets through a specific NIC card, you'll use the route commands shown above.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.