OpenWrt Forum Archive

Topic: shit i have change my networkconfig

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

asuswl500gp with pppoe dial up

"root@OpenWrt:/# ifup wan
/sbin/ifup: export: 5: CONFIG_--help_ifname: bad variable name
"

whats wrong? sad sad

ifconfig:

root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:1B:FC:9D:2B:51
          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:4820 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3804 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:770846 (752.7 KiB)  TX bytes:1387109 (1.3 MiB)

br-wan    Link encap:Ethernet  HWaddr 00:1B:FC:9D:2B:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 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:1150 (1.1 KiB)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:1B:FC:9D:2B:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1429 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1700 (1.6 KiB)  TX bytes:523049 (510.7 KiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:1B:FC:9D:2B:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1429 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:516809 (504.6 KiB)

eth0.1    Link encap:Ethernet  HWaddr 00:1B:FC:9D:2B:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 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:1250 (1.2 KiB)  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:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:414 (414.0 B)  TX bytes:414 (414.0 B)

wl0       Link encap:Ethernet  HWaddr 00:1B:FC:9D:2B:51
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4796 errors:0 dropped:0 overruns:0 frame:2366
          TX packets:5089 errors:4 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:835582 (815.9 KiB)  TX bytes:1953518 (1.8 MiB)
          Interrupt:2 Base address:0x2000


netstat -rn

root@OpenWrt:/# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 br-lan






pls help me sad

do a " vim /var/state/network "

there should be some garbage you should delete, then try again.

The discussion might have continued from here.