Connecting to the host from a namespace

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have an issue that can probably be solved by creating a new routing 
table for a specific interface only, but I am not sure how to do this.

the host
========
macvtap0 of eth0
macvtap1 of eth1
with an ip 192.168.10.100 on a macvtap0


namespace testing
=================
eth1 macvtap of host eth1
with eth1 and ip 192.168.122.100

If I would like to ping from the namespace to the host 

I add this route in the namespace
ip route add 192.168.10.100 dev eth1

And this route on the host
ip route add 192.168.122.100 dev macvtap1 

This works wel until I add in the namespace
eth0 macvtap of host eth0
with eth0 and ip 192.168.10.200

If I remove the namespace route of 192.168.10.100 dev eth1, then eth0 
has (of course) correct connectivity. 

Thus interface eth1, 192.168.122.100 has correct connectivity having 
this route:  
 ip route add 192.168.10.100 dev eth1
And interface eth0, 192.168.10.200 has correct connectivity without this 
route:
 ip route add 192.168.10.100 dev eth1

So I need to have some routing for eth1 that if it receives traffic from 
the host 192.168.10.100, it only replies to the host via this interface. 
And maybe that it only replies to traffic for 192.168.122.100? Any 
ideas? 






[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux