#9591: [net_server] it shouldn't be possible to auto-config an interface with no link ----------------------------------+---------------------------- Reporter: diver | Owner: mmlr Type: bug | Status: assigned Priority: normal | Milestone: R1 Component: Servers/net_server | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------------+---------------------------- Comment (by diver): After issuing the following command: {{{VBoxManage controlvm Haiku setlinkstate1 off}}} this is what appears in syslog: {{{ KERN: [net/pcnet/0] lost carrier KERN: /dev/net/pcnet/0: media change, media 0x20 quality 1000 speed 1000000000 KERN: [net/pcnet/0] lost carrier }}} However, ifconfig still shows that the interface in question is UP: {{{ /dev/net/pcnet/0 Hardware type: Ethernet, Address: 08:00:27:b8:ae:41 inet addr: 10.0.2.15, Bcast: 10.0.2.255, Mask: 255.255.255.0 MTU: 1500, Metric: 0, up broadcast auto-configured Receive: 5 packets, 0 errors, 1856 bytes, 0 mcasts, 0 dropped Transmit: 7 packets, 0 errors, 954 bytes, 0 mcasts, 0 dropped Collisions: 0 }}} After a minute new stuff appears in the syslog: {{{ KERN: module: Search for network/protocols/ipv6/v1 failed. KERN: [net/pcnet/0] lost carrier Last message repeated 1 time KERN: module: Search for network/protocols/ipv6/v1 failed. KERN: [net/pcnet/0] device timeout KERN: /dev/net/pcnet/0: media change, media 0x800020 quality 1000 speed 1000000000 DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 4 secs (try 0) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 KERN: [net/pcnet/0] device timeout DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 8 secs (try 0) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 KERN: [net/pcnet/0] device timeout DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 2 secs (try 1) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 4 secs (try 1) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 8 secs (try 1) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 KERN: [net/pcnet/0] device timeout DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 2 secs (try 2) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 4 secs (try 2) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 8 secs (try 2) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 KERN: [net/pcnet/0] device timeout DAEMON 'DHCP': /dev/net/pcnet/0: DHCP status = Operation timed out KERN: module: Search for network/protocols/ipv6/v1 failed. }}} pcnet is still UP: {{{ /dev/net/pcnet/0 Hardware type: Ethernet, Address: 08:00:27:b8:ae:41 Media type: Auto-select inet addr: 169.254.0.120, Bcast: 169.254.255.255, Mask: 255.255.0.0 MTU: 1500, Metric: 0, up broadcast link auto-configured Receive: 5 packets, 0 errors, 1856 bytes, 0 mcasts, 0 dropped Transmit: 19 packets, 0 errors, 3954 bytes, 0 mcasts, 0 dropped Collisions: 0 }}} {{{VBoxManage controlvm Haiku setlinkstate1 on}}} doesn't print anything in th syslog I decided to manually trigger auto-config {{{ifconfig /dev/net/pcnet/0 auto-config}}} {{{ DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_DISCOVER to 255.255.255.255:67 KERN: module: Search for network/protocols/ipv6/v1 failed. KERN: [net/pcnet/0] lost carrier KERN: /dev/net/pcnet/0: media change, media 0x20 quality 1000 speed 1000000000 DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 4 secs (try 0) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_DISCOVER to 255.255.255.255:67 KERN: [net/pcnet/0] lost carrier DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 8 secs (try 0) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_DISCOVER to 255.255.255.255:67 KERN: [net/pcnet/0] lost carrier DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 2 secs (try 1) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_DISCOVER to 255.255.255.255:67 KERN: [net/pcnet/0] lost carrier DAEMON 'DHCP': /dev/net/pcnet/0: Timeout shift: 4 secs (try 1) DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_DISCOVER to 255.255.255.255:67 KERN: /dev/net/pcnet/0: media change, media 0x800020 quality 1000 speed 1000000000 DAEMON 'DHCP': /dev/net/pcnet/0: Received DHCP_OFFER from 10.0.2.2 DAEMON 'DHCP': your_address: 10.0.2.15 DAEMON 'DHCP': subnet: 255.255.255.0 DAEMON 'DHCP': gateway: 10.0.2.2 DAEMON 'DHCP': nameserver[0]: 192.168.10.1 DAEMON 'DHCP': lease time: 86400 seconds DAEMON 'DHCP': server: 10.0.2.2 DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Received DHCP_ACK from 10.0.2.2 DAEMON 'DHCP': subnet: 255.255.255.0 DAEMON 'DHCP': gateway: 10.0.2.2 DAEMON 'DHCP': nameserver[0]: 192.168.10.1 DAEMON 'DHCP': lease time: 86400 seconds DAEMON 'DHCP': server: 10.0.2.2 KERN: module: Search for network/protocols/ipv6/v1 failed. DAEMON 'DHCP': /dev/net/pcnet/0: DHCP status = No error DAEMON 'DHCP': /dev/net/pcnet/0: Send DHCP_REQUEST for 10.0.2.15 to 255.255.255.255:67 DAEMON 'DHCP': /dev/net/pcnet/0: Received DHCP_ACK from 10.0.2.2 DAEMON 'DHCP': subnet: 255.255.255.0 DAEMON 'DHCP': gateway: 10.0.2.2 DAEMON 'DHCP': nameserver[0]: 192.168.10.1 DAEMON 'DHCP': lease time: 86400 seconds DAEMON 'DHCP': server: 10.0.2.2 DAEMON 'DHCP': /dev/net/pcnet/0: DHCP status = No error KERN: module: Search for network/protocols/ipv6/v1 failed. }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/9591#comment:7> Haiku <http://dev.haiku-os.org> Haiku - the operating system.