Routing

Linux Advanced Routing and Traffic Control

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

 



Hi all,

I'm new to iproute2 and iptables. It's a very simple topology:



world--a.b.c.d--|router|--x.y.z.10--x.y.z.8--|linux+iptables|
                                                             |
                                                        172.16.0.1
                                                             |
                                                            / \
                                                           / HUB
                                               linux1=172.16.0.200

I can ping  x.y.z.8 from privite net linux1 or $windows but not
the router interface x.y.z.10.
Here are my settings:

ip ro sh
200.179.120.0/23 dev eth1  scope link
172.16.0.0/16 dev eth0  scope link
127.0.0.0/8 dev lo  scope link
default via 200.179.120.10 dev eth1

ip ru sh
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup 253

If I try:
ip route add 172.16.0.0/16 via 200.179.120.10
ip route add 172.16.0.0/16 via 200.179.120.8
I get
File exists

I'm already setting the rules. For now it's completly open.
iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere           state 
RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere           LOG level warning

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


Please, what I'm missing?

TIA
Jose Sebastiao Martins
tiao@int.efoa.br



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/02

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