Помощь с netcfg

Есть в rc.conf такие настройки:
eth0="eth0 192.168.1.2 netmask 255.255.255.0 broadcast 192.168.1.255"
eth1="eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0 eth1)
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

eth0 - модем с инетом, eth1 - точка доступа, которая через комп раздает инет остальным.

как оформить сие творение в netcfg?
LesnoyChelovek
как оформить сие творение в netcfg?
С помощью профилей.
хелпик тут
https://wiki.archlinux.org/index.php/Netcfg
демки тут
/etc/network.d/examples/

По коду приведенному выше это делается элементарно!!!
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874
Доброго времени суток.

Раньше у меня в rc.conf было так:
DAEMONS=(... network adsl ...)
# Network
interface=eth0

Cейчас изменил его на
WIRED_INTERFACE="eth0"
DAEMONS=(...net-auto-wired adsl...)

Хотелось бы узнать не ошибся ли и что нужно нужно добавить в /etc/conf.d/netcfg в котором всё стандартно сейчас:
# Enable these netcfg profiles at boot time.
#   - prefix an entry with a '@' to background its startup
#   - set to 'last' to restore the profiles running at the last shutdown
#   - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(last)
# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"
# Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"
# Array of profiles that may be started by net-auto-wireless.
# When not specified, all wireless profiles are considered.
#AUTO_PROFILES=("profile1" "profile2")

Когда то давно, сеть настраивал по данному мануалу: pppd.

$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet6 fe80::213:d4ff:fec6:7c4f  prefixlen 64  scopeid 0x20<link>
        ether 00:13:d4:c6:7c:4f  txqueuelen 1000  (Ethernet)
        RX packets 898  bytes 208827 (203.9 KiB)
        RX errors 0  dropped 176  overruns 0  frame 0
        TX packets 346  bytes 60846 (59.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17  
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 12  bytes 640 (640.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 640 (640.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492  metric 1
        inet 31.23.209.146  netmask 255.255.255.255  destination 83.221.214.196
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 300  bytes 151281 (147.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 305  bytes 52028 (50.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
$ 

Создал в /etc/network.d документ ethernet-dhcp следующего содержания:
CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='eth0'
IP='dhcp'
Получаю:
$ sudo netcfg ethernet-dhcp
:: ethernet-dhcp up                                                      [BUSY]  
> DHCP IP lease attempt failed.                                  [FAIL] 
$


Ещё это вылезло откуда-то:
$ sudo pacman -Syu
:: Синхронизируются базы данных пакетов...
ошибка: не удалось получить файл 'core.db' из mirror.yandex.ru : Could not resolve host: mirror.yandex.ru; Неизвестная ошибка
ошибка: не удалось обновить core (ошибка в библиотеке загрузки)
ошибка: не удалось получить файл 'extra.db' из mirror.yandex.ru : Could not resolve host: mirror.yandex.ru; Неизвестная ошибка
ошибка: не удалось обновить extra (ошибка в библиотеке загрузки)
ошибка: не удалось получить файл 'community.db' из mirror.yandex.ru : Could not resolve host: mirror.yandex.ru; Неизвестная ошибка
ошибка: не удалось обновить community (ошибка в библиотеке загрузки)
ошибка: не удалось синхронизировать ни одну базу данных
ошибка: не удалось начать запрос (ошибка в библиотеке загрузки)
$ 
"If you try to hide the complexity of the system, you'll end up with a more complex system". Layers of abstraction that serve to hide internals are never a good thing. Instead, the internals should be designed in a way such that they NEED no hiding. —Aaron Griffin
Зачем писать как было как стало, напиши как работает сейчас. До переноса в netcfg
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874
Сделал, всё также только не с ethernet-dhcp, а с pppoe, вот что имеем:

$ sudo netcfg pppoe
Пароль: 
:: pppoe up                                                              [BUSY] Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
PPP session is 10198
Connected to 00:90:1a:a3:98:8e via interface eth0
Using interface ppp1
Connect: ppp1 <--> eth0
Remote message: % Sessions limit exceeded.
PAP authentication failed
Connection terminated.
Timeout waiting for PADS packets
Unable to complete PPPoE Discovery
PPP session is 10368
Connected to 00:90:1a:a3:98:8e via interface eth0
Using interface ppp1
Connect: ppp1 <--> eth0
Remote message: % Sessions limit exceeded.
PAP authentication failed
Connection terminated.
PPP session is 15177
Connected to 00:90:1a:a4:49:df via interface eth0
Using interface ppp1
Connect: ppp1 <--> eth0
PAP authentication succeeded
peer from calling number 00:90:1A:A4:49:DF authorized
not replacing existing default route through ppp0
Cannot determine ethernet address for proxy ARP
local  IP address 31.23.196.221
remote IP address 83.221.214.196
primary   DNS address 80.254.108.194
secondary DNS address 80.254.108.198
                                                                         [DONE] 
$ 
"If you try to hide the complexity of the system, you'll end up with a more complex system". Layers of abstraction that serve to hide internals are never a good thing. Instead, the internals should be designed in a way such that they NEED no hiding. —Aaron Griffin
Ну подключилось?
Псевдографический инсталлятор Arch Linux ver. 3.8.2
Благодарности принимаются на ЯД 410012815723874
Перезагрузился, сети нет сделал
$ sudo netcfg pppoe
Пароль: 
:: pppoe up                                                              [BUSY] Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Timeout waiting for PADO packets
Unable to complete PPPoE Discovery
PPP session is 2188
Connected to 00:90:1a:a4:49:e0 via interface eth0
Using interface ppp0
Connect: ppp0 <--> eth0
PAP authentication succeeded
peer from calling number 00:90:1A:A4:49:E0 authorized
Cannot determine ethernet address for proxy ARP
local  IP address 46.61.94.84
remote IP address 83.221.214.193
primary   DNS address 80.254.108.202
secondary DNS address 80.254.108.194
                                                                         [DONE] 
$ 
Сеть появилась.
nafanja
DAEMONS=(… net-profiles …)
Тоже нужно добавть что бы сеть подключалась при старте
Сделаем.
"If you try to hide the complexity of the system, you'll end up with a more complex system". Layers of abstraction that serve to hide internals are never a good thing. Instead, the internals should be designed in a way such that they NEED no hiding. —Aaron Griffin
Всё получилось:
Sun Aug 12 11:44:25 2012: :: Adjusting system time and setting kernel time zone    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Starting udev daemon    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Triggering udev uevents    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Loading user-specified modules    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Waiting for udev uevents to be processed    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Configuring virtual consoles    [BUSY] %G   [DONE] 
Sun Aug 12 11:44:25 2012: :: Bringing up loopback interface    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Checking filesystems    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Remounting root and API filesystems    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Mounting local filesystems    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Activating swap    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Initializing random seed    [BUSY]    [DONE] 
Sun Aug 12 11:44:25 2012: :: Removing leftover files    [BUSY]    [DONE] 
Sun Aug 12 11:44:26 2012: :: Setting hostname: myhost    [BUSY]    [DONE] 
Sun Aug 12 11:44:26 2012: :: Saving dmesg log    [BUSY]    [DONE] 
Sun Aug 12 11:44:26 2012: INIT: Entering runlevel: 3
Sun Aug 12 11:44:27 2012: :: Starting Syslog-NG    [BUSY]    [DONE] 
Sun Aug 12 11:44:27 2012: :: Starting D-BUS system messagebus    [BUSY]    [DONE] 
Sun Aug 12 11:44:28 2012: :: Starting Cron Daemon    [BUSY]    [DONE] 
Sun Aug 12 11:44:28 2012: :: Starting cupsd daemon    [BUSY]    [DONE] 
Sun Aug 12 11:44:29 2012: :: Starting acpid    [BUSY]    [DONE] 
Sun Aug 12 11:44:30 2012: :: pppoe up    [BUSY] Plugin rp-pppoe.so loaded.
Sun Aug 12 11:44:31 2012: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Sun Aug 12 11:45:06 2012: Timeout waiting for PADO packets
Sun Aug 12 11:45:06 2012: Unable to complete PPPoE Discovery
Sun Aug 12 11:45:36 2012: PPP session is 1551
Sun Aug 12 11:45:36 2012: Connected to 00:90:1a:a4:49:df via interface eth0
Sun Aug 12 11:45:36 2012: Using interface ppp0
Sun Aug 12 11:45:36 2012: Connect: ppp0 <--> eth0
Sun Aug 12 11:45:36 2012: PAP authentication succeeded
Sun Aug 12 11:45:36 2012: peer from calling number 00:90:1A:A4:49:DF authorized
Sun Aug 12 11:45:36 2012: Cannot determine ethernet address for proxy ARP
Sun Aug 12 11:45:36 2012: local  IP address 31.23.232.140
Sun Aug 12 11:45:36 2012: remote IP address 83.221.214.196
Sun Aug 12 11:45:36 2012: primary   DNS address 80.254.108.194
Sun Aug 12 11:45:36 2012: secondary DNS address 80.254.108.198
Sun Aug 12 11:45:36 2012:    [DONE] 
Sun Aug 12 11:45:37 2012: :: Starting GDM    [BUSY]    [DONE]
"If you try to hide the complexity of the system, you'll end up with a more complex system". Layers of abstraction that serve to hide internals are never a good thing. Instead, the internals should be designed in a way such that they NEED no hiding. —Aaron Griffin
Благодарю, nafanja
"If you try to hide the complexity of the system, you'll end up with a more complex system". Layers of abstraction that serve to hide internals are never a good thing. Instead, the internals should be designed in a way such that they NEED no hiding. —Aaron Griffin
 
Зарегистрироваться или войдите чтобы оставить сообщение.