Operating System - HP-UX
1830467 Members
2555 Online
110005 Solutions
New Discussion

4Nic cards - 4 C Net - One default

 
Odd Olsson
Advisor

4Nic cards - 4 C Net - One default

Hallo.
I wonder how to setup 4 Nicards pointing to 4 different C-Net .
3 of the card chould only have their own C-net traffic and the 1 should take the rest of the net.
I gonna use it on a back up server.
OJobb
4 REPLIES 4
Rainer von Bongartz
Honored Contributor

Re: 4Nic cards - 4 C Net - One default


you provide this information in /etc/rc.config.d/netconf

Here you define for every card it's IP-Address, Gateway, netmask , broadcast address und routing information.

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
MANOJ SRIVASTAVA
Honored Contributor

Re: 4Nic cards - 4 C Net - One default

Hi Lars


All the information is stored in /etc/rc.confog.d/netconf file after setting it up you can restart the daemon. The anither way to do is through SAM where it is easier since it is menu driven .


Manoj Srivastava
Odd Olsson
Advisor

Re: 4Nic cards - 4 C Net - One default

I now that I have to set netconf the thing is how.
How could I tell the machine that this i the defult gateway if not this 3 net.
Do I do like this
ROUTE_DESTINATION[1]=12.12.12.0
ROUTE_GATEWAY[1]=12.12.12.34 ( 12nets switch IP )
ROUTE_DESTINATION[2]=12.12.13.0
ROUTE_GATEWAY[1]=12.12.13.34 ( 13nets switch IP )
ROUTE_DESTINATION[3]=12.12.14.0
ROUTE_GATEWAY[1]=12.12.14.34 ( 14nets switch IP )
IROUTE_DESTINATION [0]=default
ROUTE_GATEWAY[0]=12.12.11.34 (all net (except the 12,13,14 net) switch IP)
and for the 3 specielnet
/Regards
OJobb
Mark van Hassel
Respected Contributor

Re: 4Nic cards - 4 C Net - One default

Hi Lars,

Configure it as follows:

ROUTE_DESTINATION[0]=default
ROUTE_GATEWAY[0]=12.12.11.34
ROUTE_DESTINATION[1]=12.12.12.0
ROUTE_GATEWAY[1]=12.12.12.34
ROUTE_DESTINATION[1]=12.12.13.0
ROUTE_GATEWAY[2]=12.12.13.34
ROUTE_DESTINATION[3]=12.12.14.0
ROUTE_GATEWAY[3]=12.12.14.34

This will cause all traffic to outside your subnets will go via 12.12.11.34.
Actually you do not need to set up gateway for [1] - [3] because subnetmasking will take care of that (traffic in the same subnet does not need a gateway). When you configure an IP address on a NIC, the OS will put an entry in the routing table automatically for that subnet (see netstat -rn).

Just another note : the index numbers between the brackets have NOTHING to do with the indexes used to configure the NICs (INTERFACE_NAME[0] etc.), you cannot configure routing per NIC.

Regards,
Mark.
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us