Автор Тема: Как поднять и настроить виртуальный интерфейс eth0:0  (Прочитано 4817 раз)

Оффлайн apavlyukov

  • Участник
  • *
  • Сообщений: 1
Добрый день!
Подскажите как поднять и настроить виртуальный интерфейс eth0:0 на карте eth0
Стоит ALTLinux 5
Создал в директории /etc/net/ifaces следующие директории
/breth0:0
ipv4adddress прописал второй внешний IP адрес выданный провайдером
breth0:0 прописал в строке HOST=eth0:0
Все остальные файлы не правил оставил без изменений

/eth0:0
options без изменений как в eth0

/venet0:0
без изменений venet0

перезапустил сервис service network restart
       
[root@ns ifaces]# service network restart
Computing interface groups: .......ERROR: /etc/init.d/network: unknown interface group for iface 'venet0' of type 'venet'
ERROR: /etc/init.d/network: unknown interface group for iface 'venet0:0' of type 'venet'
 7 interfaces found
Stopping group 2/hostedphys (3 interfaces)
        Stopping breth0: ...Reloading named service:                                                                                                                     [ DONE ]
..OK
        Stopping breth0:0: OK
        Stopping breth1: ..Reloading named service:                                                                                                                      [ DONE ]
..OK
Processing /etc/net/vlantab: empty.
Stopping group 1/realphys (3 interfaces)
        Stopping eth0: ..OK
        Stopping eth0:0: OK
        Stopping eth1: ..OK
Stopping group 0/virtual (1 interfaces)
        Stopping lo: ..OK
Stopping iptables for default
        Flushing the "OUTPUT" chain in the "filter" table
        Flushing the "FORWARD" chain in the "filter" table
        Flushing the "INPUT" chain in the "filter" table
        Flushing the "POSTROUTING" chain in the "nat" table
        Flushing the "OUTPUT" chain in the "nat" table
        Flushing the "PREROUTING" chain in the "nat" table
        Flushing the "POSTROUTING" chain in the "mangle" table
        Flushing the "OUTPUT" chain in the "mangle" table
        Flushing the "FORWARD" chain in the "mangle" table
        Flushing the "INPUT" chain in the "mangle" table
        Flushing the "PREROUTING" chain in the "mangle" table
        Unloading module ip_conntrack_ftp
        Setting ACCEPT policy for the "INPUT" chain in the "filter" table
        Setting ACCEPT policy for the "FORWARD" chain in the "filter" table
        Setting ACCEPT policy for the "OUTPUT" chain in the "filter" table
Starting iptables for default
        Setting ACCEPT policy for the "INPUT" chain in the "filter" table
        Setting ACCEPT policy for the "FORWARD" chain in the "filter" table
        Setting ACCEPT policy for the "OUTPUT" chain in the "filter" table
        Loading module ip_conntrack_ftp
        Loading rules for the "PREROUTING" chain in the "mangle" table
        Loading rules for the "INPUT" chain in the "mangle" table
        Loading rules for the "FORWARD" chain in the "mangle" table
        Loading rules for the "OUTPUT" chain in the "mangle" table
        Loading rules for the "POSTROUTING" chain in the "mangle" table
        Loading rules for the "PREROUTING" chain in the "nat" table
        Loading rules for the "OUTPUT" chain in the "nat" table
        Loading rules for the "POSTROUTING" chain in the "nat" table.
        Loading rules for the "INPUT" chain in the "filter" table.......................
        Loading rules for the "FORWARD" chain in the "filter" table........
        Loading rules for the "OUTPUT" chain in the "filter" table....
Computing interface groups: .......ERROR: /etc/init.d/network: unknown interface group for iface 'venet0' of type 'venet'
ERROR: /etc/init.d/network: unknown interface group for iface 'venet0:0' of type 'venet'
 7 interfaces found
Starting group 0/virtual (1 interfaces)
        Starting lo: .....OK
Starting group 1/realphys (3 interfaces)
        Starting eth0: ....OK
        Starting eth0:0:  'eth0:0' is already up SKIPPED
        Starting eth1: ....OK
Processing /etc/net/vlantab: empty.
Starting group 2/hostedphys (3 interfaces)
        Starting breth0: .......Reloading named service: [ DONE ]
.OK
        Starting breth0:0:  'breth0:0' is already up SKIPPED
        Starting breth1: ......Reloading named service: [ DONE ]
.OK
[root@ns ifaces]#

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Если вы хотите, что-бы сетевой интерфейс имел несколько сетевых адресов, просто пропишите их в /etc/net/ifaces/breth0/ipv4address

Несколько IP-адресов или маршрутов на одном интерфейсе

PS Замечено, что NerworkManager так работать не умеет и ему надо запретить подниматься.
chkconfig NetworkManager off
service NetworkManager stop
« Последнее редактирование: 15.04.2010 15:28:23 от Skull »

Оффлайн moog

  • Участник
  • *
  • Сообщений: 1
Столкнулся с такой же проблемой, имею Alt linux 5.0 server и интерф. breath0 , что не привычно для каких либо манипуляций, меняю конфиг в eth0 , перезапускаю сеть, но дальше сеть не работает

Оффлайн varalt

  • Участник
  • *
  • Сообщений: 996
Столкнулся с такой же проблемой, имею Alt linux 5.0 server и интерф. breath0 , что не привычно для каких либо манипуляций, меняю конфиг в eth0 , перезапускаю сеть, но дальше сеть не работает
А что Вы меняете в конфиге?