LinuxForum.Fans
Тема

Про настройку сетевого интерфейса

Автор: v0id 9 сообщений 2566 просмотров
#208770

Не настраивается сетевая карта в Debian 6.0.3
есть только терминал
проверял наличие сетевой карты
[console]dmesg | grep eth[/console]
нашел - [ 1.256829] eth0: RealTek RTL8139 at 0xde00
далее пробую настроить интерфейс
[console]sudo nano /etc/network/interfaces[/console]
прописываю
auto eth0
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
Сохраняю
в итоги
ifconfig lo и т.д.

#208774

после reboot и норм

#208781

после ребута
ifup: couldn't read interfaces file "/etc/network/interfaces oO

#208784

Вывод:

text
cat /etc/network/interfaces
#208785

А заодно
[console]ls -l /etc/network/interfaces[/console]

#208786

и вот это:
[console]
ethtool -i eth0
[/console]

#208797
newzenon написал:
Вывод:
text
cat /etc/network/interfaces

[console]
auto lo
auto lo iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
[/console]

[console]ethtool: команда не найдена[/console]

[console]ls -l /etc/network/interfaces
-rw-r--r--1 root root 353 ноя 27 18:46 /etc/network/inerfaces[/console]

#208799

Ошибки исправь, должно быить так:

text
auto lo
iface lo inet loopback

auto eth0 iface eth0 inet static address 192.168.0.12 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1

#208801

отработает корректно ли?
[console]/sbin/ifconfig 192.168.0.12/24 up [/console]

Войдите или зарегистрируйтесь, чтобы ответить.