problem in adding a gateway
HI,
I was using iptables and arptables for SNAT/DNAT and responding arp-requests, I did not assign the ip on any of my interfaces
Now I want to add a gateway from the same subnet, for example:
I am sending arp responses for 203.200.192.24 (sorry if some one has this IP) using arp tables.
Now I want to add a gateway e.g. 203.200.192.1 in the route table I am using command-
"ip route add default via 203.200.192.1 dev eth0 table 10"
but when I try this it says
RTNETLINK answers: Network is unreachable
is it because any of the interfaces does not belong to the subnet? please suggest some solution.
Signature · 2 lines
Thanks Pankaj Jain