D
D
dflbrhekbn2018-11-28 12:04:50
linux
dflbrhekbn, 2018-11-28 12:04:50

How to redirect traffic between subinterface and bridge?

Ubuntu 18.04. There was an interface enp4s0with a static address (192.168.0.244) and a enp4s0:1static subinterface (10.1.244.13), as well as the rule

up route add -net 10.62.231.60 netmask 255.255.255.255  gw 10.1.244.1
.
After installing KVM, I created a bridge br0and added it enp4s0to vnet0what I could see virtual machines on the network.
But now I can't get on 10.62.231.60. I read about ebtables and tried to add a rule to it
blockquote>ebtables -t broute -A BROUTING -i enp4s0 -p 802_1Q -j DROP
(I'm not sure if this is correct), but the address is still not available to me and ebtables -Ldoes not show any rules.
What's the right way to break it all down?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question