Skip to contentSkip to conversation

configuring linux machine as a router with two external interfaces

DISCUSSION sureshmadhu 2 participants 2 messages Oct 7, 2005

lore
Share & tools
lore
#0 lore raw

hi,
I couldn't write the script for configuring my linux machine that
has two external MAC interfaces as a router. The NAT should route the packet from internal network to one of the two external mac interfaces acoording to load balance in the each interface. can anybody help me to solve this problem?

with regards..

Suresh Madhu D
Project Trainee
e-consystems
chennai.

#1 lore raw

I don't think netfilter is the best tool for the job.
There is a kernel feature that allows bonding of two interfaces for traffic sharing and traffic equalization afair (although i havn't used it personally).
You can of course share the traffic with netfilter by marking packets in pre-routing and then routing them according to netfilter mark - but you must define yourself how to distribute the traffic between interfaces - i don't recall any target that could serve as a classic load balancing.

Marek

Quoted 14 lines · sureshmadhu

hi,
I couldn't write the script for configuring my linux machine that
has two external MAC interfaces as a router. The NAT should route the packet from internal network to one of the two external mac interfaces acoording to load balance in the each interface.
can anybody help me to solve this problem?

with regards..

Suresh Madhu D
Project Trainee
e-consystems
chennai.