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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dual networks on AIX

Status
Not open for further replies.

texasitalian

IS-IT--Management
Aug 11, 2003
39
0
0
US
Hi AIX newbie here,

I have an AIX 5 on an IBM p series with two nics with static IP.
On the 1st nic I have both local and remote users using telnet (remote users come in thru firewall and nat).
I want 2nd static IP nic to function the same way but on different network.
How to create a second network on the second nic, without affecting the 1st nic?
Any comments are appreciated!
newbie
 
thanks bjverzal for your input! could you elaborate? I mean, what do I do in Minimum config? This is what I have done so far:

I have used smitty tcpip and gone into minimal config,
on both nics I have the same
hostname,
domain name
and subnet mask;
but different IP networks (ex. 10.0.0.2 and 10.0.3.2)
On the second nic I also changed the default gateway to point to a firewall IP on same network (as 2nd nic.

Also, was wondering if I need to change anything in resolv.conf and etc/host file, and what would it be changed to?

newbie

 
let us consider en0 and en1 for this example

1] smitty mktcpip
2] Choose en0
3] Input all the parameters and execute the command
4] Exit from the screen
5] confirm that the card is configured correctly using ifconfig en0 from the command line
6] smitty tcpip
7] Choose Further configuration option
8] Choose Network Interfaces option
9] Choose network Interface selection
10] Choose Change/Show charecteristics of a network Interface
11] Choose en1
12] Provide the new INTERNET address for the card
13] Provide the Network Mask Field
14] Change the current state to UP
15] If you are not wanting ARP change it to no
16] Execute the command and then exiut from the screen
17] Run ifconfig en0 and en1 to make sure that you got wat you wanted

Hope this helps my friend.


 
Thanks texaix! that will help me get this thing on the road.

I believe that both nics are configured to work on the same network, since I have seen both nics function, tho' not at the same time!

Now I just want to plunk the right info in the 2nd nic so that its on a different network, and connecting to remote sites via telnet through my 2nd firewall.

nic#1 is on network #1 with gateway#1 hostname "blah"
I want nic#2 on network #2 with gateway#2 hostname "blah"

will this work with the same hostname in both nics?

AND do I also need to change anything in /etc/hosts or
/etc/resolv.conf

any ideas?

aix newbie


 
As you know there can be only one hostname associated with a given IP address in a given Domain name

you can have blah.domain1.my.company for 10.0.0.2 and blah.domain2.my.company for 10.0.3.2. You can not have multiple IP addresses having the same hostname.

The resolver libraries will stop the lookup as soon as they hit the first entry for the give IP/hostname and your second entry will never be read [ As I understand - I may be wrong]

One of the ways to handle this may be

in /etc/hosts put FQDN

10.0.0.2 blah.domain1.my.company
10.0.3.2 blah.doamin2.my.company

to put an entry in the /etc/resolv.conf as follows:

nameserver <Nameserver IP adreess>
search domain1.my.company domain2.my.company my.company

and make sure that the /etc/netsvc.conf is having: hosts=bind,local

and if you are using NSORDER make sure that variable is also using the same hierarchy for the name resolution. Please use the same notation for /etc/irs.conf file as well.

To address the routing issue:

A given machine can have only one deafult route. So add the static routes for each of the subnets [assuming that you have a subnet mask of 255.255.255.0] with a deafult gateway for that subnet. over and above that you can assign a default gateway.

I will let other PUNDITS take over the stage. Good Luck !!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top