OpenWrt Forum Archive

Topic: network help!!!!

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

hi everybody,
my problem is with the network interface.
i put all the drivers and when i run
$/etc/init.d/network start                             , i have this message:
Illegal instruction

my /etc/config/network:

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
        option gateways 192.168.1.10
        option dns      192.168.1.10
//
and the same message with : ifconfig
$ifconfig -a
Illegal instruction
//
but with
$ipaddr
1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:00:00:04:05:02 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
4: usb0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 56:b9:b6:63:a1:43 brd ff:ff:ff:ff:ff:ff
5: eth0.0@eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
    link/ether 00:00:00:04:05:02 brd ff:ff:ff:ff:ff:ff
//
please help me,
why the network isnt up?

so,
what is the steps of configuring a network?
thanks an advance.

"gateways"

try "gateway"

i wil try
thanks

even i change the "gateways" by "gateway" , the same message still .
illegal instruction.
any idea?
you can send me the file /etc/config/network ?
thanks in advance.

any suggestion will be welcom!

#### VLAN configuration 
config switch eth0
    option vlan0    "1 2 3 4 5*"
    option vlan1    "0 5"

# vlan0 - private LAN 
# vlan1 - adsl - port 0 is WAN port


#### Loopback configuration
config interface loopback
    option ifname    "lo"
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0


#### LAN configuration
config interface lan
    option ifname    "eth0.0"
    option proto    static
    option ipaddr    192.168.5.1
    option netmask    255.255.255.0
    option dns    192.168.5.10


#### WAN configuration
#### ADSL
config interface    adsl
    option ifname    "eth0.1"
    option proto    pppoe
    option username "XXXXXX"
    option password "XXXX"
    option mtu     1460
    #option mtu     1412

#### Wireless configuration
config interface    wireless
    option proto    static
    option ipaddr    192.168.6.1
    option netmask    255.255.255.0

my working one from a 2.6 kamikaze, I don't have a loop back address!

The discussion might have continued from here.