[OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Gary Li
Hi all,

 

When I try to modify configuration to support brige in the
etc/config/netwok.

And execute network restart. 

I got a error:

Interface type bridge not supported.

 

Anyone know how to do that?

 

Thanks,

 

Best regards,

Gary

 

 

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Karthik Venkateswaran
Can you cut and paste your /etc/config/network and ifconfig to give more 
clarity.

Cheers,
Karthik Venkateswaran
 



Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
08/04/2008 05:11 PM
Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To
openwrt-devel@lists.openwrt.org
cc

Subject
[OpenWrt-Devel] how to briding lan and wan






Hi all,
 
When I try to modify configuration to support brige in the 
etc/config/netwok.
And execute network restart. 
I got a error:
Interface type bridge not supported.
 
Anyone know how to do that?
 
Thanks,
 
Best regards,
Gary
 
 

__
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Gary Li
 

Hi Karthik,

 

I just try to change lan option proto.

The conf is as below:

 

config interface loopback

option ifname   lo

option protostatic

option ipaddr   127.0.0.1

option netmask  255.0.0.0

 

config interface lan

option ifname   eth0

option proto  bridge

option ipaddr   '192.168.8.180'

option netmask  255.255.255.0

 

config interface wan

option ifname   eth1

option protodhcp

 

the result of ifconfig command:

 

eth0  Link encap:Ethernet  HWaddr 00:01:C1:00:42:80  

  inet addr:192.168.8.188  Bcast:192.168.8.255  Mask:255.255.255.0

  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

  RX packets:112374 errors:0 dropped:0 overruns:0 frame:0

  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000 

  RX bytes:9910188 (9.4 MiB)  TX bytes:154740 (151.1 KiB)

 

eth1  Link encap:Ethernet  HWaddr 00:01:C1:00:42:81  

  inet addr:192.168.7.188  Bcast:192.168.7.255  Mask:255.255.255.0

  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

  RX packets:0 errors:0 dropped:0 overruns:0 frame:0

  TX packets:197 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000 

  RX bytes:0 (0.0 B)  TX bytes:63040 (61.5 KiB)

 

fpLink encap:Ethernet  HWaddr 00:00:00:00:00:00  

  UP RUNNING  MTU:1500  Metric:1

  RX packets:0 errors:0 dropped:0 overruns:0 frame:0

  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:1000 

  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

loLink encap:Local Loopback  

  inet addr:127.0.0.1  Mask:255.0.0.0

  UP LOOPBACK RUNNING  MTU:16436  Metric:1

  RX packets:178 errors:0 dropped:0 overruns:0 frame:0

  TX packets:178 errors:0 dropped:0 overruns:0 carrier:0

  collisions:0 txqueuelen:0 

  RX bytes:27024 (26.3 KiB)  TX bytes:27024 (26.3 KiB)

 

Thanks,

 

Best Regards,

Gary

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik
Venkateswaran
Sent: Monday, August 04, 2008 8:18 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan

 


Can you cut and paste your /etc/config/network and ifconfig to give more
clarity. 

Cheers, 
Karthik Venkateswaran





Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

08/04/2008 05:11 PM 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To

openwrt-devel@lists.openwrt.org 


cc

 


Subject

[OpenWrt-Devel] how to briding lan and wan

 


 

 

 


Hi all, 
  
When I try to modify configuration to support brige in the
etc/config/netwok. 
And execute network restart. 
I got a error: 
Interface type bridge not supported. 
  
Anyone know how to do that? 
  
Thanks, 
  
Best regards, 
Gary 
  
  



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


__

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Karthik Venkateswaran
Gary,
After analyzing the config.sh from /lib/network (for Kamikaze 7.09:
The bridge is only supported as interface type. 
option type {bridge}
option proto{static, dhcp}
If you are interested in bridging your lan and wan interface you could 
have more success adding it as a type in both interfaces.
I also had to tweak with the firewall settings for bridging to work.


Good day,
Karthik Venkateswaran




Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
08/05/2008 06:58 AM
Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To
'OpenWrt Development List' openwrt-devel@lists.openwrt.org
cc

Subject
Re: [OpenWrt-Devel] how to briding lan and wan






 
Hi Karthik,
 
I just try to change lan option proto.
The conf is as below:
 
config interface loopback
option ifname   lo
option protostatic
option ipaddr   127.0.0.1
option netmask  255.0.0.0
 
config interface lan
option ifname   eth0
option proto  bridge
option ipaddr   '192.168.8.180'
option netmask  255.255.255.0
 
config interface wan
option ifname   eth1
option protodhcp
 
the result of ifconfig command:
 
eth0  Link encap:Ethernet  HWaddr 00:01:C1:00:42:80 
  inet addr:192.168.8.188  Bcast:192.168.8.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:112374 errors:0 dropped:0 overruns:0 frame:0
  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:9910188 (9.4 MiB)  TX bytes:154740 (151.1 KiB)
 
eth1  Link encap:Ethernet  HWaddr 00:01:C1:00:42:81 
  inet addr:192.168.7.188  Bcast:192.168.7.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:63040 (61.5 KiB)
 
fpLink encap:Ethernet  HWaddr 00:00:00:00:00:00 
  UP RUNNING  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
 
loLink encap:Local Loopback 
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:178 errors:0 dropped:0 overruns:0 frame:0
  TX packets:178 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:27024 (26.3 KiB)  TX bytes:27024 (26.3 KiB)
 
Thanks,
 
Best Regards,
Gary
 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik 
Venkateswaran
Sent: Monday, August 04, 2008 8:18 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan
 

Can you cut and paste your /etc/config/network and ifconfig to give more 
clarity. 

Cheers, 
Karthik Venkateswaran



Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 
08/04/2008 05:11 PM 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org



To
openwrt-devel@lists.openwrt.org 
cc
 
Subject
[OpenWrt-Devel] how to briding lan and wan
 


 
 

 

Hi all, 
  
When I try to modify configuration to support brige in the 
etc/config/netwok. 
And execute network restart. 
I got a error: 
Interface type bridge not supported. 
  
Anyone know how to do that? 
  
Thanks, 
  
Best regards, 
Gary 
  
  

__
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

__

__
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] how to briding lan and wan

2008-08-04 Thread Gary Li
Karthik,

 

Thanks very much!

 

Best Regards,

Gary

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik
Venkateswaran
Sent: Tuesday, August 05, 2008 12:04 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan

 


Gary, 
After analyzing the config.sh from /lib/network (for Kamikaze 7.09: 

*   The bridge is only supported as interface type. 

option type {bridge} 
option proto{static, dhcp} 

*   If you are interested in bridging your lan and wan interface you
could have more success adding it as a type in both interfaces. 
*   I also had to tweak with the firewall settings for bridging to work.



Good day, 
Karthik Venkateswaran





Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

08/05/2008 06:58 AM 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org


To

'OpenWrt Development List' openwrt-devel@lists.openwrt.org 


cc

 


Subject

Re: [OpenWrt-Devel] how to briding lan and wan

 


 

 




  
Hi Karthik, 
  
I just try to change lan option proto. 
The conf is as below: 
  
config interface loopback 
option ifname   lo 
option protostatic 
option ipaddr   127.0.0.1 
option netmask  255.0.0.0 
  
config interface lan 
option ifname   eth0 
option proto  bridge 
option ipaddr   '192.168.8.180' 
option netmask  255.255.255.0 
  
config interface wan 
option ifname   eth1 
option protodhcp 
  
the result of ifconfig command: 
  
eth0  Link encap:Ethernet  HWaddr 00:01:C1:00:42:80   
  inet addr:192.168.8.188  Bcast:192.168.8.255  Mask:255.255.255.0 
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
  RX packets:112374 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:892 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:1000 
  RX bytes:9910188 (9.4 MiB)  TX bytes:154740 (151.1 KiB) 
  
eth1  Link encap:Ethernet  HWaddr 00:01:C1:00:42:81   
  inet addr:192.168.7.188  Bcast:192.168.7.255  Mask:255.255.255.0 
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:197 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:63040 (61.5 KiB) 
  
fpLink encap:Ethernet  HWaddr 00:00:00:00:00:00   
  UP RUNNING  MTU:1500  Metric:1 
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 
  
loLink encap:Local Loopback   
  inet addr:127.0.0.1  Mask:255.0.0.0 
  UP LOOPBACK RUNNING  MTU:16436  Metric:1 
  RX packets:178 errors:0 dropped:0 overruns:0 frame:0 
  TX packets:178 errors:0 dropped:0 overruns:0 carrier:0 
  collisions:0 txqueuelen:0 
  RX bytes:27024 (26.3 KiB)  TX bytes:27024 (26.3 KiB) 
  
Thanks, 
  
Best Regards, 
Gary 
  

 

  _  


From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karthik
Venkateswaran
Sent: Monday, August 04, 2008 8:18 PM
To: OpenWrt Development List
Subject: Re: [OpenWrt-Devel] how to briding lan and wan 
  

Can you cut and paste your /etc/config/network and ifconfig to give more
clarity. 

Cheers, 
Karthik Venkateswaran


Gary Li [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

08/04/2008 05:11 PM 

 


Please respond to
OpenWrt Development List openwrt-devel@lists.openwrt.org

 


To

openwrt-devel@lists.openwrt.org 


cc

  


Subject

[OpenWrt-Devel] how to briding lan and wan


  

 


  

 


  

Hi all, 
 
When I try to modify configuration to support brige in the
etc/config/netwok. 
And execute network restart. 
I got a error: 
Interface type bridge not supported. 
 
Anyone know how to do that? 
 
Thanks, 
 
Best regards, 
Gary 
 
  



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel 

__ 



_
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


__

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel