Re: Cannot route through an if without ip

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

 



antonio.dibacco wrote:

>
> I have an ethernet (eth1) without any assigned ip, nevertheless I
> would like to route through this IF but issueing the following command
> gives an error:
> route add -net 192.168.1.0 dev eth1
> If the same IF has an address the command will be correctly executed.
> Why?
>
You can't do that. If you know the mac of the other router, do domething
like:

#ip ro add 172.20.20.20/32 dev eth1 scope link
#arp -s 172.20.20.20 <mac>
#ip ro add 192.168.1.0/24 via 172.20.20.20.20

So .. this just show why you can't just route throught an ethernet
device, unless you "want" to do some multicast flood.


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux