MERAprojects / ops-build

Other
0 stars 0 forks source link

Entry in routing table isn`t updated after change of the IP address of the interface. #23

Open alrukav opened 7 years ago

alrukav commented 7 years ago

Problem Description:

Entry in routing table isn`t updated after change of the IP address on the interface.

OpenSwitch version:

Version OpenSwitch 0.4.0 (Build: appliance-ops-0.4.0-meraswitch/devel/master-20170112131723-dev)

Test Topology:

Single DUT1.

Steps to reproduce the problem:

  1. Configure DUT1 as in attached file.
  2. Check routing table on DUT1.
switch# show ip route
Displaying ipv4 routes selected for forwarding
'[x/y]' denotes [distance/metric]
1.2.3.0/24,  1 unicast next-hops 
    via  eth1,  [0/0],  connected
  1. Change IP address of the interface (eth1) and check routing table - NOK: Entry is not changed:
switch(config-if)# do show running-config interface eth1
interface eth1 
   no shutdown 
   ip address 20.20.20.20/24
   exit

switch# show ip route
Displaying ipv4 routes selected for forwarding
'[x/y]' denotes [distance/metric]
1.2.3.0/24,  1 unicast next-hops 
    via  eth1,  [0/0],  connected
  1. Shutdown the interface(eth1) and check routing table - OK.
switch# show ip route
No ipv4 routes configured 
  1. No shutdown the interface (eth1) and check routing table - NOK: Entry is not changed:
switch# show ip route
Displaying ipv4 routes selected for forwarding
'[x/y]' denotes [distance/metric]
1.2.3.0/24,  1 unicast next-hops 
    via  eth1,  [0/0],  connected

route_table_isnt_updated.txt

xivamar commented 7 years ago

It isn't reproduced if you at first delete old ip-address:

 switch# conf ter
 switch(config)# interface eth1
 switch(config-if)# no ip address 1.2.3.1/24
 switch(config-if)# ip address 20.20.20.20/24
 switch(config-if)# end