LINUX.ORG.RU

Сообщения ST213

 

Debian как раздающий инета

имеем

#lspci | grep Ethernet
02:05.0 Ethernet controller: 3Com Corporation 3c940 10/100/1000Base-T [Marvell] (rev 12)
02:0b.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] (rev 8b)
02:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

~# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x10b7:0x1700 (skge)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:6e:ad:ba:e5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:26:2d:34:f6", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x1106:0x3106 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:21:91:7a:d9:9c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x1106:0x3106 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="28:10:7b:46:0e:2c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"


#cat /etc/network/interfaces
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0

allow-hotplug eth0
iface eth0 inet static
address 172.16.1.1
netmask 255.255.255.0
gateway 172.16.1.1

llow-hotplug eth1
iface eth1 inet dhcp

allow-hotplug eth3
iface eth3 inet static
address 10.10.1.1
netmask 255.255.255.0
gateway 10.10.1.1


auto eth0
auto eth1
auto eth3

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0c:6e:ad:ba:e5
          inet addr:172.16.1.1  Bcast:172.16.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:6eff:fead:bae5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4733962 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6172390 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1022119070 (974.7 MiB)  TX bytes:3152827638 (2.9 GiB)
          Interrupt:22

eth1      Link encap:Ethernet  HWaddr 00:c0:26:2d:34:f6
          inet addr:46.39.239.195  Bcast:46.39.239.255  Mask:255.255.255.0
          inet6 addr: fe80::2c0:26ff:fe2d:34f6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6002439 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4987427 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1781918409 (1.6 GiB)  TX bytes:1031615621 (983.8 MiB)
          Interrupt:20 Base address:0xe000

eth3      Link encap:Ethernet  HWaddr 28:10:7b:46:0e:2c
          inet addr:10.10.1.1  Bcast:10.10.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2a10:7bff:fe46:e2c/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4806 (4.6 KiB)  TX bytes:7923 (7.7 KiB)
          Interrupt:23 Base address:0xe400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:901 errors:0 dropped:0 overruns:0 frame:0
          TX packets:901 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:85852 (83.8 KiB)  TX bytes:85852 (83.8 KiB)

# cat /etc/dhcp/dhcpd.conf
option domain-name "debian-60.local";
option domain-name-servers debian-60.local;
default-lease-time 600;
max-lease-time 7200;
authoritative;
log-facility local7;

ddns-update-style none;

subnet 172.16.1.0 netmask 255.255.255.0 {
        interface eth0;
        option routers 172.16.1.1;
        option subnet-mask 255.255.255.0;
        option domain-name-servers 8.8.8.8;
        range dynamic-bootp 172.16.1.5 172.16.1.5;
        default-lease-time 21600;
        max-lease-time 43200;
}

subnet 10.10.1.0 netmask 255.255.255.0 {
        interface eth3;
        option routers 10.10.1.1;
        option subnet-mask 255.255.255.0;
        option domain-name-servers 8.8.8.8;
        range dynamic-bootp 10.10.1.5 10.10.1.5;
        default-lease-time 21600;
        max-lease-time 43200;
}

# cat /etc/rc.local
#!/bin/sh -e

iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
По eth0 получаем 172.16.1.5 инет работает по eth3 получаем 169.254.188.157 и ничего не работает. Подскажите где вкралась ошибка?

нашел интерессное

# pidof dhcpd
1684
# cat /proc/1684/cmdline
/usr/sbin/dhcpd -q eth0 eth2
откуда тут eth2 если ннадо eth3

таки почитал внимательно /etc/init.d/isc-dhcp-server и нашел поменял

~# cat /etc/default/isc-dhcp-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
INTERFACES="eth0 eth3"

И всеравно не работает :( Где еще копать?

ST213
()

Debian и SATA винт. Вот что ему не нравится?

Вот такая вот зараза девочка моей мечты:

02:0b.0 Mass storage controller: Silicon Image, Inc. SiI 3512 [SATALink/SATARaid] Serial ATA Controller (rev 01)

[    1.203295] ata2: SATA max UDMA/100 mmio m512@0xf7ff7800 tf 0xf7ff78c0 irq 23
[    1.840029] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.875593] ata2.00: ATA-8: ST31500341AS, CC1G, max UDMA/133
[    1.875598] ata2.00: 2930277168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    1.931623] ata2.00: configured for UDMA/100
[   91.816053] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x280000 action 0x6 frozen
[   91.816061] ata2: SError: { 10B8B BadCRC }
[   91.816066] ata2.00: failed command: READ DMA EXT
[   91.816075] ata2.00: cmd 25/00:00:df:5e:1e/00:01:73:00:00/e0 tag 0 dma 131072 in
[   91.816081] ata2.00: status: { DRDY }
[   91.816094] ata2: hard resetting link
[   92.136033] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   92.227617] ata2.00: configured for UDMA/100
[   92.227625] ata2.00: device reported invalid CHS sector 0
[   92.227636] ata2: EH complete
[   92.879119] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x280000 action 0x0
[   92.879126] ata2.00: BMDMA2 stat 0x6d0009
[   92.879130] ata2: SError: { 10B8B BadCRC }
[   92.879135] ata2.00: failed command: READ DMA EXT
[   92.879143] ata2.00: cmd 25/00:00:df:60:1e/00:01:73:00:00/e0 tag 0 dma 131072 in
[   92.879149] ata2.00: status: { DRDY ERR }
[   92.879170] ata2.00: error: { ABRT }
[   92.983634] ata2.00: configured for UDMA/100
[   92.983649] ata2: EH complete
[   93.008075] ata2: drained 32768 bytes to clear DRQ.
[   93.045690] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x280000 action 0x6 frozen
[   93.045699] ata2: SError: { 10B8B BadCRC }
[   93.045706] ata2.00: failed command: READ DMA EXT
[   93.045719] ata2.00: cmd 25/00:00:df:62:1e/00:01:73:00:00/e0 tag 0 dma 131072 in
[   93.045729] ata2.00: status: { Busy }
[   93.045734] ata2.00: error: { ICRC UNC IDNF ABRT }
[   93.045776] ata2: hard resetting link
[   93.364032] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   93.455623] ata2.00: configured for UDMA/100
[   93.455638] ata2: EH complete
*skip*
[ 2924.507363] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x280000 action 0x0
[ 2924.507370] ata2.00: BMDMA2 stat 0x6d0009
[ 2924.507375] ata2: SError: { 10B8B BadCRC }
[ 2924.507380] ata2.00: failed command: READ DMA
[ 2924.507389] ata2.00: cmd c8/00:00:00:6d:04/00:00:00:00:00/e0 tag 0 dma 131072 in
[ 2924.507395] ata2.00: status: { DRDY ERR }
[ 2924.507398] ata2.00: error: { ABRT }
[ 2924.595626] ata2.00: configured for UDMA/33
[ 2924.595642] ata2: EH complete
[ 2955.000055] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x280000 action 0x6 frozen
[ 2955.000063] ata2: SError: { 10B8B BadCRC }
[ 2955.000068] ata2.00: failed command: READ DMA
[ 2955.000076] ata2.00: cmd c8/00:00:00:ad:04/00:00:00:00:00/e0 tag 0 dma 131072 in
[ 2955.000082] ata2.00: status: { DRDY }
[ 2955.000096] ata2: hard resetting link
[ 2955.320033] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 2955.411634] ata2.00: configured for UDMA/33
[ 2955.411649] ata2: EH complete

Тормозит ессно адово и есть подозрения, что дело гдето в ведре. Расскажите как модно решать проблемму и закидайте ссылками по форуму если называли решение.

ST213
()

RSS подписка на новые темы