Can somebody tell me how can I get similar behavior as do following Cisco command on Linux ?
Code: Select all
# no ip classlessFor example If I have next routing table
Code: Select all
# ip route list
172.28.60.0/22 dev eth0 proto kernel scope link src 172.28.61.222
default via 172.28.60.1 dev eth0If I do this, is it ok ?
Code: Select all
iptables -A OUTPUT -d 172.28.60.0/22 -j ACCEPT
iptables -A OUTPUT -d 172.28.0.0/16 -j DROP Which range of IPs should i drop to get same behavior ?
Or its possible to get same behavior using other tools than iptables etc. iproute2 ?
I have limited knowledge of routing an networking so any idea helps . Thank you ...


