Ticket #332 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

fwifupdown broken on wl-500g

Reported by: tg Assigned to: spaetzle
Priority: major Milestone: 1.1
Component: packages Version: trunk
Keywords: Cc:

Description

root@FreeWRT:~ # cat /etc/network/interfaces                                                                    
# basic network configuration file for more information,
# see the FreeWRT user handbook

auto lo
iface lo inet loopback

# LAN port configuration
auto eth0
iface eth0 inet static
        address 192.168.1.1
        netmask 255.255.255.0
        broadcast +

# WAN port configuration
auto eth1
iface eth1 inet dhcp
root@FreeWRT:~ # ip addr show
1: lo: <LOOPBACK,UP> 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
    inet6 ::1/128 scope host 
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:11:d8:18:b9:08 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::211:d8ff:fe18:b908/64 scope link 
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:11:d8:18:b9:08 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.221/24 scope global eth1
4: wl0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:11:d8:18:b9:08 brd ff:ff:ff:ff:ff:ff
5: sit0@NONE: <NOARP> mtu 1480 qdisc noop 
    link/sit 0.0.0.0 brd 0.0.0.0

Part of logread output (don't have serial here):

root@FreeWRT:~ # ip addr show
Jan  1 01:00:13 (none) user.info kernel: IPv6 over IPv4 tunneling driver
Jan  1 01:00:13 (none) user.debug kernel: kmod: trying to execute user mode helper '/sbin/hotplug' with args 0='/sbin/hotplug' 1='net' and env 'HOME=/' 'PATH=/sbin:/bin:/usr/sbin:/usr/bin' 'INTERFACE=sit0' 'ACTION=register'
Jan  1 01:00:14 (none) user.notice network: Bringing up iface lo
Jan  1 01:00:15 (none) user.info : Bringing up iface lo ^[[0m... ok^[[0m
Jan  1 01:00:15 (none) user.notice network: ok
Jan  1 01:00:16 (none) user.notice network: Bringing up iface eth0
Jan  1 01:00:16 (none) user.info : Bringing up iface eth0 ^[[0m... !!^[[0m
Jan  1 01:00:16 (none) user.notice network: !!
Jan  1 01:00:16 (none) user.info : Info: Interface already up^[[0m
Jan  1 01:00:17 (none) user.notice network: Info: Interface already up
Jan  1 01:00:17 (none) user.info : run-parts: /etc/network/if-pre-up.d/main exited with return code 1: Success
Jan  1 01:00:18 (none) user.notice network: Bringing up iface eth1
Jan  1 01:00:18 (none) user.info kernel: b44: eth1: Link is up at 100 Mbps, full duplex.
Jan  1 01:00:18 (none) user.info kernel: b44: eth1: Flow control is off for TX and off for RX.
Jan  1 01:00:18 (none) user.info : Bringing up iface eth1 ^[[0mudhcpc (v1.4.2) started
Jan  1 01:00:18 (none) user.info : Sending discover...
Jan  1 01:00:18 (none) user.info : Sending select for 192.168.0.221...
Jan  1 01:00:18 (none) user.info : Lease of 192.168.0.221 obtained, lease time 1073741824
Jan  1 01:00:18 (none) user.info : deleting routers
Jan  1 01:00:18 (none) user.info : adding router 192.168.0.82
Jan  1 01:00:18 (none) user.info : adding dns 192.168.0.82
Jan  1 01:00:19 (none) user.info : ... ok^[[0m
Jan  1 01:00:19 (none) user.notice network: ok

Attachments

Change History

06/15/07 09:37:09 changed by spaetzle

fwifupdown can't configure interfaces if they are already up. That's the right behavior from my point of view.
Why eth0 is up at system start?

Christian

06/15/07 10:06:45 changed by spaetzle

I think someone should fix the failsafe code.
Deleting the address is not enough.
Or I must implement ifup --force

Comments?

06/21/07 17:25:54 changed by spaetzle

  • status changed from new to closed.
  • resolution set to fixed.

fixed in rev 2874


Add/Change #332 (fwifupdown broken on wl-500g)




Action