All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] How to disable verbose kernel logs for linux ethernet bridge?
@ 2005-05-08  3:44 Alan Tam
  2005-05-09 16:59 ` [Bridge] Port link status disconnect Jorge Lanza
  2005-05-09 17:52 ` [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Stephen Hemminger
  0 siblings, 2 replies; 10+ messages in thread
From: Alan Tam @ 2005-05-08  3:44 UTC (permalink / raw)
  To: bridge

Hi,

This is part of my dmesg output which is generated whenever some network 
topology changes. It is very annoying. Any ways for me to inhibit those 
which are only informational but not warnings which I need to take care? 
I am running the all bridges on tap* interfaces emulated by OpenVPN. I 
am running stock 2.6.8 kernel from Debian sarge.

Please CC me Thanks!

---8<---8<---8<---8<---8<---8<---8<---8<---8<---
br0: port 1(tap0) entering listening state
br0: port 1(tap0) entering learning state
br0: topology change detected, propagating
br0: port 1(tap0) entering forwarding state
br0: port 1(tap0) entering disabled state
device tap1 entered promiscuous mode
br0: port 2(tap1) entering listening state
br0: port 1(tap0) entering listening state
br0: port 2(tap1) entering learning state
br0: port 1(tap0) entering learning state
br0: topology change detected, propagating
br0: port 2(tap1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(tap0) entering forwarding state
eth0: no IPv6 routers present
tap0: no IPv6 routers present
br0: no IPv6 routers present
tap1: no IPv6 routers present
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: neighbor 8000.00:ff:04:c8:95:4e lost on port 1(tap0)
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering forwarding state
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, propagating
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: neighbor 8000.00:ff:05:d2:76:ca lost on port 1(tap0)
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering forwarding state
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, sending tcn bpdu
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, sending tcn bpdu
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, sending tcn bpdu
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, sending tcn bpdu
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
tap0: received packet with  own address as source address
tap0: received packet with  own address as source address
tap0: received packet with  own address as source address
tap0: received packet with  own address as source address
tap0: received packet with  own address as source address
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering forwarding state
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, propagating
tap0: received packet with  own address as source address
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering forwarding state
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: neighbor 8000.00:ff:05:d2:76:ca lost on port 1(tap0)
br0: port 2(tap1) entering listening state
br0: received tcn bpdu on port 1(tap0)
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering learning state
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
br0: topology change detected, propagating
br0: port 2(tap1) entering forwarding state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering forwarding state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering blocking state
br0: neighbor 8000.00:ff:05:d2:76:ca lost on port 1(tap0)
br0: port 2(tap1) entering listening state
br0: port 2(tap1) entering learning state
br0: topology change detected, sending tcn bpdu
br0: port 2(tap1) entering forwarding state
br0: neighbor 8000.00:ff:16:cb:25:97 lost on port 2(tap1)
br0: topology change detected, propagating
---8<---8<---8<---8<---8<---8<---8<---8<---8<---

-- 
Regards,
Alan


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bridge] Port link status disconnect
  2005-05-08  3:44 [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Alan Tam
@ 2005-05-09 16:59 ` Jorge Lanza
  2005-05-09 17:50   ` Stephen Hemminger
  2005-05-09 17:52 ` [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Stephen Hemminger
  1 sibling, 1 reply; 10+ messages in thread
From: Jorge Lanza @ 2005-05-09 16:59 UTC (permalink / raw)
  To: bridge

Hi all.

I have been working with bridges on kernel 2.4.X but now I have upgrade to 
kernel 2.6.11 and the behaviour seems to be different.
I face problem when I include a wireless device as in /var/log/messages I 
get (3-5) which before I didn't.

1)May  5 10:53:01 fuj1 kernel: br0: topology change detected, propagating
2)May  5 10:53:01 fuj1 kernel: br0: port 2(eth2) entering forwarding state
3)May  5 10:53:06 fuj1 kernel: eth2: New link status: Disconnected (0002)
4)May  5 10:53:06 fuj1 kernel: ip_tables: (C) 2000-2002 Netfilter core team
5)May  5 10:53:07 fuj1 kernel: eth2: New link status: Connected (0001)
6)May  5 10:53:20 fuj1 kernel: br0: port 2(eth2) entering disabled state


Lets explain the steps I follow. Brigde ports  --- eth1 wired 
interface      eth2 wireless interface
To set up the bridge and include both ports I run the following.

brctl addbr br0
brctl addif br0 eth1
brctl addif br0 eth2
ifconfig eth1 0.0.0.0
ifconfig eth2 0.0.0.0
ifconfig br0 10.0.1.4 up

As you can see I set the eth2 ip address to 0.0.0.0. However after a while 
the eth2 returns by it self to the previous configured IP address (i.e. 
128.0.1.50). So, in order to make things work in the correct way I have to 
retype ifconfig eth2 0.0.0.0 and the second time seems that everything 
works as expected and the eth2 doesn't go back to the previous state.

Why does it happen? What can I do? I need the device not to "get out of the 
brigde" and reconfigured. I have try to brctl br0 setfd 0  but still have 
the same problem.

Any help is really welcomed.

TA.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] Port link status disconnect
  2005-05-09 16:59 ` [Bridge] Port link status disconnect Jorge Lanza
@ 2005-05-09 17:50   ` Stephen Hemminger
       [not found]     ` <6.1.2.0.2  .20050510115447.043b4c90@luna.tlmat.unican.es>
  2005-05-10  9:59     ` Jorge Lanza
  0 siblings, 2 replies; 10+ messages in thread
From: Stephen Hemminger @ 2005-05-09 17:50 UTC (permalink / raw)
  To: Jorge Lanza; +Cc: bridge

On Mon, 09 May 2005 18:59:54 +0200
Jorge Lanza <jlanza@tlmat.unican.es> wrote:

> Hi all.
> 
> I have been working with bridges on kernel 2.4.X but now I have upgrade to 
> kernel 2.6.11 and the behaviour seems to be different.
> I face problem when I include a wireless device as in /var/log/messages I 
> get (3-5) which before I didn't.
> 
> 1)May  5 10:53:01 fuj1 kernel: br0: topology change detected, propagating
> 2)May  5 10:53:01 fuj1 kernel: br0: port 2(eth2) entering forwarding state
> 3)May  5 10:53:06 fuj1 kernel: eth2: New link status: Disconnected (0002)
> 4)May  5 10:53:06 fuj1 kernel: ip_tables: (C) 2000-2002 Netfilter core team
> 5)May  5 10:53:07 fuj1 kernel: eth2: New link status: Connected (0001)
> 6)May  5 10:53:20 fuj1 kernel: br0: port 2(eth2) entering disabled state
> 
> 
> Lets explain the steps I follow. Brigde ports  --- eth1 wired 
> interface      eth2 wireless interface
> To set up the bridge and include both ports I run the following.
> 
> brctl addbr br0
> brctl addif br0 eth1
> brctl addif br0 eth2
> ifconfig eth1 0.0.0.0
> ifconfig eth2 0.0.0.0
> ifconfig br0 10.0.1.4 up
> 
> As you can see I set the eth2 ip address to 0.0.0.0. However after a while 
> the eth2 returns by it self to the previous configured IP address (i.e. 
> 128.0.1.50). So, in order to make things work in the correct way I have to 
> retype ifconfig eth2 0.0.0.0 and the second time seems that everything 
> works as expected and the eth2 doesn't go back to the previous state.
> 
> Why does it happen? What can I do? I need the device not to "get out of the 
> brigde" and reconfigured. I have try to brctl br0 setfd 0  but still have 
> the same problem.
>

Probably you have eth2 configured in the normal distribution network configuration
and the hotplug scripts are detecting the transition and setting it back.

You need to make sure eth interfaces are not configured by other means.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] How to disable verbose kernel logs for linux ethernet bridge?
  2005-05-08  3:44 [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Alan Tam
  2005-05-09 16:59 ` [Bridge] Port link status disconnect Jorge Lanza
@ 2005-05-09 17:52 ` Stephen Hemminger
  2005-05-10  0:55   ` Alan Tam
  1 sibling, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2005-05-09 17:52 UTC (permalink / raw)
  To: Alan Tam; +Cc: bridge

On Sun, 08 May 2005 11:44:32 +0800
Alan Tam <Tam@SiuLung.com> wrote:

> Hi,
> 
> This is part of my dmesg output which is generated whenever some network 
> topology changes. It is very annoying. Any ways for me to inhibit those 
> which are only informational but not warnings which I need to take care? 
> I am running the all bridges on tap* interfaces emulated by OpenVPN. I 
> am running stock 2.6.8 kernel from Debian sarge.
> 
> Please CC me Thanks!
> 
>

The easiest way would be to change all those printk's you don't want to see
in the br_stp_if.c from:
	printk(KERN_INFO "%s: port ...
to
	printk(KERN_DEBUG "%s: port ...

then they will show up only in /var/log/messages.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] How to disable verbose kernel logs for linux ethernet bridge?
  2005-05-09 17:52 ` [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Stephen Hemminger
@ 2005-05-10  0:55   ` Alan Tam
  0 siblings, 0 replies; 10+ messages in thread
From: Alan Tam @ 2005-05-10  0:55 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

Stephen Hemminger wrote:

>On Sun, 08 May 2005 11:44:32 +0800
>Alan Tam <Tam@SiuLung.com> wrote:
>  
>
>>This is part of my dmesg output which is generated whenever some network 
>>topology changes. It is very annoying. Any ways for me to inhibit those 
>>which are only informational but not warnings which I need to take care? 
>>I am running the all bridges on tap* interfaces emulated by OpenVPN. I 
>>am running stock 2.6.8 kernel from Debian sarge.
>>    
>>
>The easiest way would be to change all those printk's you don't want to see
>in the br_stp_if.c from:
>	printk(KERN_INFO "%s: port ...
>to
>	printk(KERN_DEBUG "%s: port ...
>
>then they will show up only in /var/log/messages.
>  
>
Yes, but recompiling the kernel is not a good thing to me. I think "echo 
5 > /proc/sys/kernel/printk" is acceptable. The reason it isn't the 
default is probably that most part of the kernel won't be so verbose.

-- 
Regards,
Alan


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] Port link status disconnect
  2005-05-09 17:50   ` Stephen Hemminger
       [not found]     ` <6.1.2.0.2  .20050510115447.043b4c90@luna.tlmat.unican.es>
@ 2005-05-10  9:59     ` Jorge Lanza
  2005-05-10 21:52       ` Stephen Hemminger
  1 sibling, 1 reply; 10+ messages in thread
From: Jorge Lanza @ 2005-05-10  9:59 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge


At 19:50 09/05/2005, Stephen Hemminger wrote:
 >On Mon, 09 May 2005 18:59:54 +0200
 >Jorge Lanza <jlanza@tlmat.unican.es> wrote:
 >>
 >> As you can see I set the eth2 ip address to 0.0.0.0. However after a while
 >> the eth2 returns by it self to the previous configured IP address (i.e.
 >> 128.0.1.50). So, in order to make things work in the correct way I have to
 >> retype ifconfig eth2 0.0.0.0 and the second time seems that everything
 >> works as expected and the eth2 doesn't go back to the previous state.
 >>
 >> Why does it happen? What can I do? I need the device not to "get out of 
the
 >> brigde" and reconfigured. I have try to brctl br0 setfd 0  but still have
 >> the same problem.
 >>
 >
 >Probably you have eth2 configured in the normal distribution network
 >configuration
 >and the hotplug scripts are detecting the transition and setting it back.
 >
 >You need to make sure eth interfaces are not configured by other means.

Thanks very much, but the problem now is that I don't understand how to do 
what you tell me.
Could you give me some hints on it? It would be grateful if you could do so.

TA.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] Port link status disconnect
  2005-05-10  9:59     ` Jorge Lanza
@ 2005-05-10 21:52       ` Stephen Hemminger
  2005-05-11  7:36         ` Jorge Lanza
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2005-05-10 21:52 UTC (permalink / raw)
  To: Jorge Lanza; +Cc: bridge

On Tue, 10 May 2005 11:59:48 +0200
Jorge Lanza <jlanza@tlmat.unican.es> wrote:

> 
> At 19:50 09/05/2005, Stephen Hemminger wrote:
>  >On Mon, 09 May 2005 18:59:54 +0200
>  >Jorge Lanza <jlanza@tlmat.unican.es> wrote:
>  >>
>  >> As you can see I set the eth2 ip address to 0.0.0.0. However after a while
>  >> the eth2 returns by it self to the previous configured IP address (i.e.
>  >> 128.0.1.50). So, in order to make things work in the correct way I have to
>  >> retype ifconfig eth2 0.0.0.0 and the second time seems that everything
>  >> works as expected and the eth2 doesn't go back to the previous state.
>  >>
>  >> Why does it happen? What can I do? I need the device not to "get out of 
> the
>  >> brigde" and reconfigured. I have try to brctl br0 setfd 0  but still have
>  >> the same problem.
>  >>
>  >
>  >Probably you have eth2 configured in the normal distribution network
>  >configuration
>  >and the hotplug scripts are detecting the transition and setting it back.
>  >
>  >You need to make sure eth interfaces are not configured by other means.
> 
> Thanks very much, but the problem now is that I don't understand how to do 
> what you tell me.
> Could you give me some hints on it? It would be grateful if you could do so.

What distribution of linux are you using? Redhat, Fedora, Debian, Suse?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] Port link status disconnect
  2005-05-10 21:52       ` Stephen Hemminger
@ 2005-05-11  7:36         ` Jorge Lanza
  2005-05-11 16:20           ` Stephen Hemminger
  0 siblings, 1 reply; 10+ messages in thread
From: Jorge Lanza @ 2005-05-11  7:36 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

At 23:52 10/05/2005, Stephen Hemminger wrote:
 >What distribution of linux are you using? Redhat, Fedora, Debian, Suse?

I'm using Fedora Core 3

Thanks


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] Port link status disconnect
  2005-05-11  7:36         ` Jorge Lanza
@ 2005-05-11 16:20           ` Stephen Hemminger
  2005-05-14  8:01             ` Jorge Lanza
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2005-05-11 16:20 UTC (permalink / raw)
  To: Jorge Lanza; +Cc: bridge

On Wed, 11 May 2005 09:36:03 +0200
Jorge Lanza <jlanza@tlmat.unican.es> wrote:

> At 23:52 10/05/2005, Stephen Hemminger wrote:
>  >What distribution of linux are you using? Redhat, Fedora, Debian, Suse?
> 
> I'm using Fedora Core 3

Then you need to go into:
	Applications -> System Tools -> Network Device Control
	Configure
	Select device then hit 	Edit
	
	Uncheck the box "Activate this device when computer starts"

or edit /etc/sysconfig/network-scripts/ifcfg-eth0 (assuming it is eth0)
	and change ONBOOT=yes to ONBOOT=no

	

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Bridge] Port link status disconnect
  2005-05-11 16:20           ` Stephen Hemminger
@ 2005-05-14  8:01             ` Jorge Lanza
  0 siblings, 0 replies; 10+ messages in thread
From: Jorge Lanza @ 2005-05-14  8:01 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge

Still having the same problem ;) Seems not to work well. I will give 
another try.

Any other posible solution ??

TA.


At 18:20 11/05/2005, Stephen Hemminger wrote:
 >On Wed, 11 May 2005 09:36:03 +0200
 >Jorge Lanza <jlanza@tlmat.unican.es> wrote:
 >
 >> At 23:52 10/05/2005, Stephen Hemminger wrote:
 >>  >What distribution of linux are you using? Redhat, Fedora, Debian, Suse?
 >>
 >> I'm using Fedora Core 3
 >
 >Then you need to go into:
 >       Applications -> System Tools -> Network Device Control
 >       Configure
 >       Select device then hit  Edit
 >
 >       Uncheck the box "Activate this device when computer starts"
 >
 >or edit /etc/sysconfig/network-scripts/ifcfg-eth0 (assuming it is eth0)
 >       and change ONBOOT=yes to ONBOOT=no
 >
 >


--------------------------------------------

Jorge Lanza Calderón
Departamento Ingeniería Comunicaciones
Grupo de Ingeniería Telemática
Universidad de Cantabria
Avda. de los Castros, s/n
39005 - Santander  (España)
Tel: +34 942 200914
Fax: +34 942 201488
mailto:jlanza@tlmat.unican.es
Web: http://www.tlmat.unican.es

--------------------------------------------



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-05-14  8:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-08  3:44 [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Alan Tam
2005-05-09 16:59 ` [Bridge] Port link status disconnect Jorge Lanza
2005-05-09 17:50   ` Stephen Hemminger
     [not found]     ` <6.1.2.0.2  .20050510115447.043b4c90@luna.tlmat.unican.es>
2005-05-10  9:59     ` Jorge Lanza
2005-05-10 21:52       ` Stephen Hemminger
2005-05-11  7:36         ` Jorge Lanza
2005-05-11 16:20           ` Stephen Hemminger
2005-05-14  8:01             ` Jorge Lanza
2005-05-09 17:52 ` [Bridge] How to disable verbose kernel logs for linux ethernet bridge? Stephen Hemminger
2005-05-10  0:55   ` Alan Tam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.