[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: две сетевушки



Am 14.01.2014 14:10, schrieb Andrei Lomov:
Что-то не могу итерфейс поднять на 2-й сетевой карте ...
То ли карта того ...
Гляньте, пожалуйста, свежим взглядом:


# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
         address 192.168.72.41
         netmask 255.255.224.0
         network 192.168.64.0
         broadcast 192.168.95.255
         gateway 192.168.64.1
         # dns-* options are implemented by the resolvconf package, if
installed
         dns-nameservers 217.117.80.1

# The secondary network interface
allow-hotplug eth1
iface eth1 inet static
        address 192.168.1.11 #192.168.0.11
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.11
        # dns-* options are implemented by the resolvconf package, if
installed
        dns-nameservers 217.117.80.1


Карты физически как-бы подключены:
# lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev
03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port
(rev 03)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI
Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI
Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI
Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI
Controller #2
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio
Controller
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express
Root
Port 1
00:1c.1 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express
Port
2
00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express
Root
Port 6
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI
Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI
Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI
Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI
Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface
Controller
00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA
IDE Controller #1
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA
IDE Controller #2
01:00.0 VGA compatible controller: NVIDIA Corporation G98 [GeForce 8400 GS]
(rev a1)
02:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller
(rev 03)
02:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller
(rev 03)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B
PCI
Express Gigabit Ethernet controller (rev 02)
05:00.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S [Rhine-
III]
(rev 86)

# cat /var/log/dmesg|grep eth
[    1.258541] r8169 0000:04:00.0: eth0: RTL8168c/8111c at 0xf8210000,
00:21:85:5a:bd:1f, XID 1c4000c0 IRQ 44
[    1.258543] r8169 0000:04:00.0: eth0: jumbo features [frames: 6128 bytes,
tx checksumming: ko]
[    1.258870] via-rhine 0000:05:00.0: eth1: VIA Rhine III at 0x1e800,
00:05:5d:81:2d:66, IRQ 16
[    1.259591] via-rhine 0000:05:00.0: eth1: MII PHY found at address 1,
status 0x786d advertising 05e1 Link 45e1
[    8.935330] r8169 0000:04:00.0: eth0: link down
[    8.935335] r8169 0000:04:00.0: eth0: link down
[    8.935478] ADDRCONF(NETDEV_UP): eth0: link is not ready


# 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 0x10ec:/sys/devices/pci0000:00/0000:00:1c.5/0000:04:00.0
(r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:21:85:5a:bd:1f", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"

# PCI device 0x1106:/sys/devices/pci0000:00/0000:00:1e.0/0000:05:00.0 (via-
rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:05:5d:81:2d:66", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth1"


Интерфейса на второй карте нет:

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:21:85:5a:bd:1f
           inet addr:192.168.72.41  Bcast:192.168.95.255  Mask:255.255.224.0
           inet6 addr: fe80::221:85ff:fe5a:bd1f/64 Scope:Link
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:668 errors:0 dropped:5 overruns:0 frame:0
           TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:57844 (56.4 KiB)  TX bytes:22380 (21.8 KiB)
           Interrupt:44

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:119 errors:0 dropped:0 overruns:0 frame:0
           TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:9495 (9.2 KiB)  TX bytes:9495 (9.2 KiB)


Первая карта смотрит к провайдеру (работает), вторую хотел развернуть во
внутреннюю сеть, пока маршрутизатора нет под рукой.
Простейшая задача, а не могу понять, где затык.

(debian wheezy)


ifconfig eth1 up

что скажет?

--
..
http://wiedergold.net/


Reply to: