Dear all,
In the BSP Linux, I've found an uncommon behavior running on the DM3730 torpedo module: if the IP address of the wlan0 interface is set fixed, then the router of this interface is not configured. This doesn't happen when the interface is configured using dhcp.
Here is the execution:
Current interfaces and route table
$ ifconfig
eth0 Link encap:Ethernet HWaddr BA:DE:F8:05:E9:BA
inet addr:192.168.1.189 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37807 errors:0 dropped:0 overruns:0 frame:0
TX packets:3225 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4714551 (4.4 MiB) TX bytes:671081 (655.3 KiB)
Interrupt:33
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:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2856 (2.7 KiB) TX bytes:2856 (2.7 KiB)
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Configuring the wifi interface with DHCP
- Interface file:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
- Enable wlan interface
$/etc/rc.d/init.d/network-wifi-station start
- Interfaces and routes:
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:08:EE:06:02:55
inet addr:192.168.1.65 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:133 errors:0 dropped:0 overruns:0 frame:0
TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10524 (10.2 KiB) TX bytes:7154 (6.9 KiB)
$route -n
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
The router 192.168.1.254 has been added (OK).
Configuring the wifi interface with fixed IP address
- Interface file:
# The loopback interface
auto lo
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet dhcp
iface wlan0 inet static
address 192.168.1.195
netmask 255.255.255.0
gateway 192.168.1.254
- Enable wlan interface
$/etc/rc.d/init.d/network-wifi-station start
- Interfaces and routes:
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:08:EE:06:02:55
inet addr:192.168.1.195 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10734 (10.4 KiB) TX bytes:7464 (7.2 KiB)
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
Configuring a fixed address, the Ip address has been set, but not the router address.
Thanks and Best Regards,
Joaquim Duran