OpenWrt Forum Archive

Topic: Network WAN problem

The content of this topic has been archived on 26 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, i upgraded my siemens SE505 from whiterussian to kamikaze 8.09.1
But..the network doesn't work! I have the 192.168.1.1 ip on lan port and i want the wan in dhcp.

If no cable is connecter to wan, the dhcp of lan port give me correct address, but if I attach the uplink cable to the wan port, the dhcp give me those addres on lan port.
Ps. The eth0.1 NEVER take the right ip (uplink's ip)

Here is my network config
config 'switch' 'eth0'
option 'vlan1' '0 5'
option 'vlan0' '1 2 3 4 5*'

config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'

config 'interface' 'lan'
option 'type' 'bridge'
option 'ifname' 'eth0.0'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'

config 'interface' 'wan'
option 'ifname' 'eth0.1'
option 'proto' 'dhcp'


This router have 1 wan and 4 lan port.
Thanks for your help, i don't know if it's a bur or error in configuration.

UP please

this is my config, and it works fine:

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'switch' 'eth1'
    option 'vlan0' '0 5'
    option 'vlan1' '1 2 3 5'

config 'interface' 'vlan0'
    option 'ifname' 'eth1.0'

config 'interface' 'vlan1'
    option 'ifname' 'eth1.1'

config 'interface' 'lan'
#    option 'type' 'bridge'
    option 'ifname' 'eth1.1'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'nat' '1'
    option 'dns' '192.168.1.1'
    option 'gateway' '192.168.1.1'
    option 'ipaddr' '192.168.10.19'

config 'interface' 'wan'
    option 'ifname' 'eth1.0'
    option 'macaddr' '00:30:da:74:9d:30'
    option 'proto' 'dhcp'

note that, ip range of wan must differ from lan range (assigned by your adsl/router or isp provider)
and note i must add macaddr for wan interface

(Last edited by t3l3m4k0 on 31 Jul 2009, 15:25)

I have the same problem also with your configuration.
Here is my ifconfig

root@OpenWrt:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:90:96:00:00:00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4 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:268 (268.0 B)  TX bytes:0 (0.0 B)
          Interrupt:5

eth0.0    Link encap:Ethernet  HWaddr 00:90:96:00:00:00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:150 (150.0 B)  TX bytes:0 (0.0 B)

eth0.1    Link encap:Ethernet  HWaddr 00:90:96:00:00:00 
          UP BROADCAST RUNNING MULTICAST  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wl0       Link encap:Ethernet  HWaddr 00:90:96:00:00:02 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:525 errors:0 dropped:0 overruns:0 frame:1137
          TX packets:392 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:46554 (45.4 KiB)  TX bytes:55983 (54.6 KiB)
          Interrupt:4 Base address:0x1000

The mac address of ethx and wl0 is NOT MY MAC. My mac is like 00:01:E3:0E etc
why nothing interface get ip of wan port?

It's a BUG?

AKAIF the SE505 has a different port numbering ...
LAN ports 0 to 3, WAN port 4

I.e.
'vlan0' '4 5'
'vlan1' '0 1 2 3 5*'

The discussion might have continued from here.