Всем привет,
Никак не могу победить одну проблему.
Стоят две сет.карты,иногда при перезагрузке одна из карт меняет свое имя с ethX на eth0_rename и как следствие ничего не поднимается.
eth1 - Инет,eth2 - Сетка.
В файле /etc/udev/70-persistent-net.rules убрал все лишнее,не помогает.
Подскажите кто сталкивался с таким !
$cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
auto eth2
iface eth2 inet static
pre-up sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
address 192.168.0.1
netmask 255.255.255.0
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf
provider dsl-provider
================================
$ cat 70-persistent-net.rules
# PCI device 0x10ec:0x8136 (r8169)
# PCI device 0x10ec:0x8136 (r8169)
SUBSYSTEM==«net», ACTION==«add», DRIVERS=="?*", ATTR
{address}==«00:19:66:ef:a0:0a», ATTR{dev_id}==«0x0», ATTR{type}==«1»,
KERNEL==«eth*», NAME=«eth1»
# PCI device 0x10ec:0x8029 (ne2k-pci)
SUBSYSTEM==«net», ACTION==«add», DRIVERS=="?*", ATTR
{address}==«00:50:bf:7a:99:68», ATTR{dev_id}==«0x0», ATTR{type}==«1»,
KERNEL==«eth*», NAME=«eth2»
=================================
$ifconfig
eth1
Link encap:Ethernet HWaddr 00:19:66:ef:a0:0a
inet addr:10.250.10.255 Bcast:10.250.11.255
Mask:255.255.252.0
inet6 addr: fe80::219:66ff:feef:a00a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48497 errors:0 dropped:0 overruns:0 frame:0
TX packets:45774 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13149092 (13.1 MB) TX bytes:9888736 (9.8 MB)
Interrupt:27 Base address:0xa000
eth2
Link encap:Ethernet HWaddr 00:50:bf:7a:99:68
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:bfff:fe7a:9968/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15689 errors:0 dropped:0 overruns:0 frame:0
TX packets:13800 errors:0 dropped:0 overruns:0 carrier:0
collisions:2 txqueuelen:1000
RX bytes:2999606 (2.9 MB) TX bytes:5357343 (5.3 MB)
Interrupt:23 Base address:0xec00
ppp0
Link encap:Point-to-Point Protocol
inet addr:XX.XX.XX.XX P-t-P:8X.8X.1XX.XXX Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:37522 errors:0 dropped:0 overruns:0 frame:0
TX packets:45556 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:11451565 (11.4 MB) TX bytes:8873974 (8.8 MB)
tap0
Link encap:Ethernet HWaddr c6:35:c1:d8:c4:2a
inet addr:10.2.0.17 Bcast:10.2.0.255 Mask:255.255.255.0
inet6 addr: fe80::c435:c1ff:fed8:c42a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21501 errors:0 dropped:0 overruns:0 frame:0
TX packets:28096 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4477758 (4.4 MB) TX bytes:3462236 (3.4 MB)
==============
$cat /var/log/messages|grep eth
Dec 8 14:30:37 korospr2-desktop kernel: [ 1.176839] eth0: RTL8102e at 0xf80fa000, 00:19:66:ef:a0:0a, XID 24a00000 IRQ 26
Dec 8 14:30:37 korospr2-desktop kernel: [ 1.179564] eth1: RealTek RTL-8029 found at 0xec00, IRQ 23, 00:50:bf:7a:99:68.
Dec 8 14:30:37 korospr2-desktop kernel: [ 4.313523] udev: renamed network interface eth1 to eth2
Dec 8 14:30:37 korospr2-desktop kernel: [ 4.336067] udev: renamed network interface eth0_rename to eth1
Dec 8 14:30:38 korospr2-desktop kernel: [ 7.265609] r8169: eth1: link up
Dec 8 14:30:38 korospr2-desktop kernel: [ 7.265617] r8169: eth1: link up
Dec 8 14:30:48 korospr2-desktop pppd[1573]: Connected to 00:23:eb:a4:b3:10 via interface eth1
Dec 8 14:30:48 korospr2-desktop pppd[1573]: Connect: ppp0 <--> eth1
Dec 8 14:30:48 korospr2-desktop pppd[1573]: replacing old default route to eth1 [10.250.8.1]
Dec 8 15:27:44 korospr2-desktop kernel: [ 1.193667] eth0:
RTL8102e at 0xf854e000, 00:19:66:ef:a0:0a, XID 24a00000 IRQ 26
Dec 8 15:27:44 korospr2-desktop kernel: [ 1.198058] eth1: RealTek RTL-8029 found at 0xec00, IRQ 23, 00:50:bf:7a:99:68.
Dec 8 15:27:46 korospr2-desktop kernel: [ 6.716337] r8169: eth0_rename: link up
Dec 8 15:27:46 korospr2-desktop kernel: [ 6.716342] r8169: eth0_rename: link up
Dec 8 15:27:48 korospr2-desktop kernel: [ 8.509749] udev: renamed network interface eth1 to eth2
Dec 8 15:38:55 korospr2-desktop kernel: [ 1.185979] eth0: RTL8102e at 0xf8344000, 00:19:66:ef:a0:0a, XID 24a00000 IRQ 26
Dec 8 15:38:55 korospr2-desktop kernel: [ 1.191574] eth1: RealTek RTL-8029 found at 0xec00, IRQ 23, 00:50:bf:7a:99:68.
Dec 8 15:38:56 korospr2-desktop kernel: [ 6.779349] r8169: eth0_rename: link up
Dec 8 15:38:56 korospr2-desktop kernel: [ 6.779354] r8169: eth0_rename: link up
Dec 8 15:38:57 korospr2-desktop kernel: [ 7.451521] udev: renamed network interface eth1 to eth2