Re: problem with flowi structure

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Friday, September 17, 2010 - 2:08 am

Le vendredi 17 septembre 2010 à 10:46 +0200, Nicola Padovano a écrit :

# ip addr show dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
qlen 1000 txqueues 4 
    link/ether f4:ce:46:bb:32:d4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.108/24 brd 192.168.20.255 scope global eth1
    inet6 fe80::f6ce:46ff:febb:32d4/64 scope link 
       valid_lft forever preferred_lft forever
# ip addr add 192.168.20.67/24 dev eth1
# ip addr show dev eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP
qlen 1000 txqueues 4 
    link/ether f4:ce:46:bb:32:d4 brd ff:ff:ff:ff:ff:ff
    inet 192.168.20.108/24 brd 192.168.20.255 scope global eth1
    inet 192.168.20.67/24 scope global secondary eth1
    inet6 fe80::f6ce:46ff:febb:32d4/64 scope link 
       valid_lft forever preferred_lft forever
# ip ro
192.168.20.0/24 dev eth1  proto kernel  scope link  src 192.168.20.108 
default via 192.168.20.254 dev eth1 

# ip ro flush cache
# ip ro flush cache
# ip ro get 192.168.20.110
192.168.20.110 dev eth1  src 192.168.20.108 
    cache  mtu 1500 advmss 1460 hoplimit 64
# ip ro get 192.168.20.110 from 192.168.20.67
192.168.20.110 from 192.168.20.67 dev eth1 
    cache  mtu 1500 advmss 1460 hoplimit 64
# ip ro list cache
192.168.20.110 dev eth1  src 192.168.20.108 
    cache  mtu 1500 advmss 1460 hoplimit 64
192.168.20.110 from 192.168.20.67 dev eth1 
    cache  mtu 1500 advmss 1460 hoplimit 64

You can see two different routes in cache to reach 192.168.20.110,
one from "0.0.0.0" (we force src 192.168.20.108),
one from 192.168.20.67 

With different keys (src addr, tos, fwmark, ...) we can have a lot of
different routes for apparently same destination


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
problem with flowi structure, Nicola Padovano, (Thu Sep 16, 8:14 am)
Re: problem with flowi structure, Eric Dumazet, (Thu Sep 16, 8:26 am)
Re: problem with flowi structure, Nicola Padovano, (Thu Sep 16, 8:30 am)
Re: problem with flowi structure, Eric Dumazet, (Thu Sep 16, 8:54 am)
Re: problem with flowi structure, Nicola Padovano, (Thu Sep 16, 12:25 pm)
Re: problem with flowi structure, AIJAZ BAIG, (Thu Sep 16, 10:40 pm)
Re: problem with flowi structure, Nicola Padovano, (Fri Sep 17, 1:46 am)
Re: problem with flowi structure, Eric Dumazet, (Fri Sep 17, 2:08 am)
Re: problem with flowi structure, Nicola Padovano, (Fri Sep 17, 2:53 am)
Re: problem with flowi structure, Nicola Padovano, (Fri Sep 17, 9:27 am)
Re: problem with flowi structure, Eric Dumazet, (Fri Sep 17, 9:34 am)
Re: problem with flowi structure, Nicola Padovano, (Fri Sep 17, 10:05 am)
Re: problem with flowi structure, Eric Dumazet, (Fri Sep 17, 10:51 am)
Re: problem with flowi structure, Nicola Padovano, (Fri Sep 17, 11:01 am)
Re: problem with flowi structure, Eric Dumazet, (Fri Sep 17, 11:07 am)
Re: problem with flowi structure, Nicola Padovano, (Fri Sep 17, 11:25 am)
Re: problem with flowi structure, Jan Engelhardt, (Fri Oct 1, 4:46 pm)
Re: problem with flowi structure, Nicola Padovano, (Sat Oct 2, 1:08 am)
Re: problem with flowi structure, David Miller, (Sat Oct 2, 1:18 pm)