Jump to content

Recommended Posts

Posted (edited)

Есть сервер с Centos 7 с 3мя сетевыми. На 2 сетевые (eth1, eth2) сыпется зеркалированный трафик со свитчей. Надо весь этот трафик завернуть на eth3, для передачи на другой сервер. Как это сделать?

Edited by syster
Posted

bridge + ebtables!

 

brctl addbr br0

brctl addif br0 eth1

brctl addif br0 eth2

brctl addif br0 eth3

bridge fdb add 00:00:00:00:dd:10 dev eth3

ebtables -t nat -A PREROUTING -i eth1 -j dnat --to-destination 00:00:00:00:dd:10

ebtables -t nat -A PREROUTING -i eth2 -j dnat --to-destination 00:00:00:00:dd:10

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...