[LARTC] routing C class with route2

Linux Advanced Routing and Traffic Control

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

 



Here's the situation.

My ISP routes all C class to specific IP ( that IP is from another class)=
 and=20
I got cisco router who has that IP on whitch all C class is routed.
On the other port of the cisco router all IPs of this C class are awaliab=
le.
Some poor attempt to graphicaly show you..

ISP's routing.
C class -> some.ip.198

99.some.ip.198 ->binded at  || CISCO || at binded<- C.class.ip.1

So the router just makes the whole C class awaliable ((that it gets on=20
99.some.ip.198)) out his other port with ip C.class.ip.1.

Can this be done on linux using only (route2) ip tool? Without iptables.

I'm thinking something like
ip addr add 99.some.ip.198/32 dev eth0 (eth0 is the interface on witch th=
e IPs=20
come in - the whole class)
ip addr add C.class.ip.1/22 dev eth1
ip route add 99.some.ip.gateway

I hope you understood this mess and can help me a bit.

Tnx.
-Martin



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