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!

Multiple Default Gateways

Status
Not open for further replies.

SLG

MIS
Dec 19, 2001
106
US
I have an AIX box connected to two different networks and I need to define two different default gateways so that users from both networks can access it. I am having trouble figureing out the best way to do this.
Thanks in advance for your suggestions.
 
You cannot assign 2 different default gateways, hence the term default. You can assign it one, and your users from both networks will be able to access the machine (depending on your network configuration)
 
OK, let me describe the situation better.
I have 2 T1s connecting to the box through two different ISPs and two differnet subnets. I intend to setup VPNs to about 300 users on one network and 500 on the other.
That is why I need to setup gateways for both cards in the box.
I've been playing with gated but it is turning to be a real pain in the butt.
Any help would be appreciated.
 
you will need to assign one default gateway then add routes like so:

Routing tables
Destination Gateway Flags Refs Use If PMTU Exp Groups

Route Tree for Protocol Family 2 (Internet):
default 177.234.240.65 UG 120 692361484 en1 - -
127/8 127.0.0.1 U 7 2001824 lo0 - -
177.234.240.64/26 177.234.240.93 U 45 147778868 en1 - -
177.234.252.88 177.234.240.65 UGHW 0 908940 en1 - 5
199.123/25 199.123.3.126 UG 0 19610 en2 - -
199.123.0.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.1/25 199.123.3.126 UG 0 11335 en2 - -
199.123.1.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.2/25 199.123.3.126 UG 0 0 en2 - -
199.123.2.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.3/25 199.123.3.24 U 21 81097437 en2 - -
199.123.4/25 199.123.3.126 UG 0 0 en2 - -
199.123.4.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.5/25 199.123.3.126 UG 0 0 en2 - -
199.123.5.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.6/25 199.123.3.126 UG 0 34750 en2 - -
199.123.6.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.7/25 199.123.3.126 UG 0 46812 en2 - -
199.123.7.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.8/25 199.123.3.126 UG 0 0 en2 - -
199.123.8.120 199.123.3.126 UGH 0 0 en2 - -
199.123.8.128/25 199.123.3.126 UG 0 0 en2 - -
199.123.9/25 199.123.3.126 UG 0 1443 en2 - -
199.123.9.128/25 199.123.3.126 UG 0 0 en2 - -

Route Tree for Protocol Family 24 (Internet v6):
::1 ::1 UH 0 0 lo0 16896 -


IBM Certified -- AIX 4.3 Obfuscation
 
a working example from our implementation. these two class B networks cannot see each other and most of our servers have both. in this example, 199.123.3.126 is the switch for the second network.

usually we have this scripted like so:
print "adding routes to the ${privbase}.${oct}.0 and ${privbase}.${oct}.128" "networks via ${gateway}..."
print "$(mkdev -t inet) ... \c"
print "$(chdev -l inet0 -a route=net,-hopcount,1,-netmask,${netmask},${privbase}.${oct}.0,${gateway})" "... \c"

${privbase} would be 199.123 in this case.

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top