Есть mandriva 2010.2. На ней запущены некоторые сервиса. Проблема в том, что при перезагрузке компьютера эти сервиса не запускают, судя из логов, они не видят интерфейса. Опять же судя из логов, интерфейсы поднимаются, чуть позднее самих демонов. # lshw -C Network | Код | *-network:0 description: Ethernet interface product: 80003ES2LAN Gigabit Ethernet Controller (Copper) vendor: Intel Corporation physical id: 0 bus info: pci@0000:05:00.0 logical name: eth0 version: 01 serial: 00:30:48:f3:5b:78 size: 100MB/s capacity: 1GB/s width: 32 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.3.10a-NAPI duplex=full firmware=2.1-12 ip=xxx.xxx.xxx.xxx latency=0 link=yes multicast=yes port=twisted pair speed=100MB/s resources: irq:53 memory:d8020000-d803ffff memory:d8000000-d801ffff ioport:2000(size=32) memory:d8300000-d830ffff(prefetchable) *-network:1 description: Ethernet interface product: 80003ES2LAN Gigabit Ethernet Controller (Copper) vendor: Intel Corporation physical id: 0.1 bus info: pci@0000:05:00.1 logical name: eth1 version: 01 serial: 00:30:48:f3:5b:79 size: 100MB/s capacity: 1GB/s width: 32 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.3.10a-NAPI duplex=full firmware=2.1-12 ip=yyy.yyy.yyy.yyy latency=0 link=yes multicast=yes port=twisted pair speed=100MB/s resources: irq:54 memory:d8060000-d807ffff memory:d8040000-d805ffff ioport:2020(size=32) memory:d8310000-d831ffff(prefetchable) *-network:0 description: Ethernet interface physical id: 2 logical name: eth1.99 serial: 00:30:48:f3:5b:79 size: 100MB/s capacity: 1GB/s capabilities: ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=802.1Q VLAN Support driverversion=1.8 duplex=full firmware=N/A ip=zzz.zzz.zzz.zzz link=yes multicast=yes port=twisted pair speed=100MB/s *-network:1 description: Ethernet interface physical id: 3 logical name: eth1.97 serial: 00:30:48:f3:5b:79 size: 100MB/s capacity: 1GB/s capabilities: ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=802.1Q VLAN Support driverversion=1.8 duplex=full firmware=N/A ip=10.90.92.254 link=yes multicast=yes port=twisted pair speed=100MB/s *-network:2 DISABLED description: Ethernet interface physical id: 4 logical name: eth1.300 serial: 00:30:48:f3:5b:79 size: 100MB/s capacity: 1GB/s capabilities: ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=802.1Q VLAN Support driverversion=1.8 duplex=full firmware=N/A ip=ttt.ttt.ttt.ttt link=no multicast=yes port=twisted pair speed=100MB/s
|
порядок загрузки | Код | S50network-up@ S98local@
|
немного логов | Код | Apr 21 06:35:20 localhost ifplugd(eth0)[1443]: ifplugd 0.28 initializing. Apr 21 06:35:20 localhost klogd: e1000e 0000:05:00.0: irq 53 for MSI/MSI-X Apr 21 06:35:20 localhost ifplugd(eth0)[1443]: Using interface eth0/00:30:48:F3:5B:78 with driver <e1000e> (version: 1.3.10a-NAPI) Apr 21 06:35:20 localhost klogd: e1000e 0000:05:00.0: irq 53 for MSI/MSI-X Apr 21 06:35:20 localhost klogd: ADDRCONF(NETDEV_UP): eth0: link is not ready Apr 21 06:35:20 localhost ifplugd(eth0)[1443]: Using detection mode: SIOCETHTOOL Apr 21 06:35:20 localhost ifplugd(eth0)[1443]: Initialization complete, link beat not detected. ... Apr 21 06:35:20 localhost ifplugd(eth1)[1486]: ifplugd 0.28 initializing. Apr 21 06:35:20 localhost klogd: e1000e 0000:05:00.1: irq 54 for MSI/MSI-X Apr 21 06:35:20 localhost ifplugd(eth1)[1486]: Using interface eth1/00:30:48:F3:5B:79 wit h driver <e1000e> (version: 1.3.10a-NAPI) Apr 21 06:35:20 localhost ifplugd(eth1)[1486]: Using detection mode: SIOCETHTOOL Apr 21 06:35:20 localhost ifplugd(eth1)[1486]: Initialization complete, link beat not det ected. Apr 21 06:35:20 localhost klogd: e1000e 0000:05:00.1: irq 54 for MSI/MSI-X Apr 21 06:35:20 localhost klogd: ADDRCONF(NETDEV_UP): eth1: link is not ready .... Apr 21 06:35:22 localhost klogd: e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None Apr 21 06:35:22 localhost klogd: e1000e 0000:05:00.0: eth0: 10/100 speed: disabling TSO Apr 21 06:35:22 localhost klogd: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready Apr 21 06:35:22 localhost klogd: e1000e: eth1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None Apr 21 06:35:22 localhost klogd: e1000e 0000:05:00.1: eth1: 10/100 speed: disabling TSO Apr 21 06:35:22 localhost klogd: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready ... Apr 21 06:35:22 localhost ifplugd(eth0)[1443]: Link beat detected. Apr 21 06:35:22 localhost ifplugd(eth1)[1486]: Link beat detected. Apr 21 06:35:23 localhost ifplugd(eth0)[1443]: Executing '/etc/ifplugd/ifplugd.action eth0 up'. Apr 21 06:35:23 localhost klogd: NET: Registered protocol family 17 Apr 21 06:35:23 localhost ifplugd(eth1)[1486]: Executing '/etc/ifplugd/ifplugd.action eth1 up'. ... Apr 21 06:35:25 localhost klogd: 802.1Q VLAN Support v1.8 Ben Greear <[email protected]> Apr 21 06:35:25 localhost klogd: All bugs added by David S. Miller <[email protected]> ... Apr 21 06:35:27 localhost flow-capture[2311]: setsockopt(size=4194304) Apr 21 06:35:27 localhost flow-capture[2311]: bind(xxx.xxx.xxx.xxx): Cannot assign requested address Apr 21 06:35:29 localhost ifplugd(eth0)[1443]: Program executed successfully. Apr 21 06:35:29 localhost ifplugd(eth1)[1486]: client: NETLINK: Packet too small or truncated! 52!=16!=60 Apr 21 06:35:29 localhost ifplugd(eth1)[1486]: Program executed successfully. Apr 21 06:35:32 localhost klogd: eth0: no IPv6 routers present Apr 21 06:35:33 localhost klogd: eth1: no IPv6 routers present Apr 21 06:35:34 localhost klogd: ip_tables: (C) 2000-2006 Netfilter Core Team Apr 21 06:35:34 localhost klogd: nf_conntrack version 0.5.0 (16384 buckets, 65536 max) Apr 21 06:35:34 localhost klogd: CONFIG_NF_CT_ACCT is deprecated and will be removed soon . Please use Apr 21 06:35:34 localhost klogd: nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrac k module option or Apr 21 06:35:34 localhost klogd: sysctl net.netfilter.nf_conntrack_acct=1 to enable it. Apr 21 06:35:35 localhost klogd: eth1.300: no IPv6 routers present Apr 21 06:35:36 localhost klogd: eth1.99: no IPv6 routers present Apr 21 06:35:36 localhost klogd: eth1.97: no IPv6 routers present
|
в local.rc | Код | vconfig add eth1 99 ifconfig eth1.99 yyy.yyy.yyy.yyy broadcast xxx.xxx.xxx.255 netmask 255.255.255.0 up vconfig add eth1 97 ifconfig eth1.97 zzz.zzz.zzz.zzz broadcast zzz.zzz.zzz.255 netmask 255.255.255.0 up vconfig add eth1 300 ifconfig eth1.300 ttt.ttt.ttt.ttt broadcast ttt.ttt.ttt.ttt netmask 255.255.252.0 up
/var/soft/flow-tools/bin/flow-capture -S 5 -z 9 -n 143 -N 0 -w /var/soft/flow-tools/flows/cisco1 xxx.xxx.xxx.xxx/xxx.xxx.xxx.1/9800
|
В ifcfg-eth0 | Код | DEVICE=eth0 BOOTPROTO=none IPADDR=xxx.xxx.xxx.xxx NETMASK=255.255.255.240 BROADCAST=xxx.xxx.xxx.15 NETWORK=xxx.xxx.xxx.0 GATEWAY=xxx.xxx.xxx.1 ONBOOT=yes METRIC=10 MII_NOT_SUPPORTED=no USERCTL=yes NOZEROCONF=yes LINK_DETECTION_DELAY=6 IPV6INIT=no IPV6TO4INIT=no
|
Из всех этих логов видно, что сетевухи начинают включаться, но flow стартует раньше, чем полное подключение сетевухи eth0 (xxx.xxx.xxx) заканчивается, в связи чем он (flow) не стартует. После полной загрузки системы запуск вручную спокойно отрабатывает. Как решить эту проблему ?
|