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

Multiple Gateways

Status
Not open for further replies.

Haunter

Programmer
Jan 2, 2001
379
US
Is it possible to assign more than one gateway to a single ethernet adapter? If so how?

Ty
 
for example eth0 has ip 192.168.1.1 and is used as the gateway for 3 other subnets:
route add -net 192.168.2.0/24 gw 192.168.1.1 eth0
route add -net 192.168.3.0/24 gw 192.168.1.1 eth0
route add -net 192.168.4.0/24 gw 192.168.1.1 eth0

now all traffic to 192.168.*.0 will be pushed through eth0

***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top