Mailing List Archive

[Bug 335] New: zebra does not get IP of interface after interface name change
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug
report.

http://bugzilla.quagga.net/show_bug.cgi?id=335

Summary: zebra does not get IP of interface after interface name
change
Product: Quagga
Version: CVS
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: Very High
Component: zebra
AssignedTo: maintainers@quagga.net
ReportedBy: windo@p6drad-teel.net


When interface name is changed by:

ip link set name newname dev oldname

cpn-vpn2-test:~# vtysh -c "show interface tun0"
Interface tun0 is up, line protocol detection is disabled
index 59 metric 1 mtu 1500
flags: <UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>
inet 10.1.0.1/32 peer 10.1.0.2
9 input packets (0 multicast), 720 bytes, 0 dropped
0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame
0 fifo, 0 missed
5 output packets, 320 bytes, 0 dropped
0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat
0 window, 0 collisions
cpn-vpn2-test:~# ip link set dev tun0 down
cpn-vpn2-test:~# ip link set name tunnel dev tun0
cpn-vpn2-test:~# ip link set dev tunnel up
cpn-vpn2-test:~# vtysh -c "show interface tunnel"
Interface tunnel is up, line protocol detection is disabled
index 59 metric 1 mtu 1500
flags: <UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>
65 input packets (0 multicast), 5200 bytes, 0 dropped
0 input errors, 0 length, 0 overrun, 0 CRC, 0 frame
0 fifo, 0 missed
5 output packets, 320 bytes, 0 dropped
0 output errors, 0 aborted, 0 carrier, 0 fifo, 0 heartbeat
0 window, 0 collisions

The address is lost the right after renaming the interface. This is what logs show:

2007/01/17 13:47:02 ZEBRA: netlink_parse_info: netlink-listen type
RTM_NEWLINK(16), seq=0, pid=0
2007/01/17 13:47:02 ZEBRA: interface index 61 was renamed from tun0 to tunnel
2007/01/17 13:47:02 ZEBRA: interface tun0 index 61 is now inactive.
2007/01/17 13:47:02 ZEBRA: route 10.1.0.2/32 ifindex 61 doesn't exist in rib
2007/01/17 13:47:02 ZEBRA: MESSAGE: ZEBRA_INTERFACE_ADDRESS_DELETE 10.1.0.1/32
on tun0
2007/01/17 13:47:02 ZEBRA: MESSAGE: ZEBRA_INTERFACE_DELETE tun0
2007/01/17 13:47:02 ZEBRA: MESSAGE: ZEBRA_INTERFACE_ADD tunnel
2007/01/17 13:47:02 ZEBRA: interface tunnel index 61 becomes active.
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8092e38, fib 0x8092e38
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x80922b0, fib 0x80922b0
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8092898, fib 0x8092898
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8091fc8, fib 0x8091fc8
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8091670, fib 0x8091670
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8092c58, fib 0x8092c58
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8092b68, fib 0x8092b68
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8092be0, fib 0x8092be0
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8091bd8, fib 0x8091bd8
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x80923a8, fib 0x80923a8
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8092cd0, fib 0x8092cd0
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x80919c0, fib 0x80919c0
2007/01/17 13:47:02 ZEBRA: rib_process: Updating existing route, select
0x8091dd0, fib 0x8091dd0

To get the address back to quagga, it needs to be removed and readded.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs