ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [Comm] Два IP на одной карте.
  @ 2003-12-24  7:27 ` Дмитрий Беляев
  2003-12-24  7:35 ` Grigory Batalov
  2003-12-24 11:51 ` Slava Dubrovskiy
  2 siblings, 0 replies; 3+ messages in thread
From: Дмитрий Беляев @ 2003-12-24  7:27 UTC (permalink / raw)
  To: community

Wed, 24 Dec 2003 17:10:30 +1000
От Славик <slavik99@fss-dv.khv.ru> пришло:

> Привет community!
> 
> Я конечно извиняюсь, но напишите по шагам,как 
> поднять 2 IP на одной карте?
> 
> ( А то везде куски какие-то, типа " создайте alias eth0:0
> и назовие его net, потом через ifconfig прицепите ip и т.д.)
> 
> 1. Как создать alias на карту
> 2. как прописать второй ip чтобы он остался после перезагрузки.
> 
> Слава.
У меня нормально работает так:

ifconfig eth0:0 192.168.1.1
ifconfig eth0:1 192.168.2.1



-- 
Дмитрий Беляев
email: dima@itos.dn.ua
ICQ: 262817594 

 _____________________________________ 
/ СТРЕЛЯЮ Я В УТОК СБЕЖАЛИСЬ HА ЗВУКИ \
\ СТРЕЛЬБЫ ЛЮБОПЫТHЫЕ ЗАЙЦЫ.          /
 ------------------------------------- 
   \         __------~~-,
    \      ,'            ,
          /               \
         /                :
        |                  '
        |                  |
        |                  |
         |   _--           |
         _| =-.     .-.   ||
         o|/o/       _.   |
         /  ~          \ |
       (____@)  ___~    |
          |_===~~~.`    |
       _______.--~     |
       \________       |
                \      |
              __/-___-- -__
             /            _ \


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] Два IP на одной карте.
    2003-12-24  7:27 ` [Comm] Два IP на одной карте Дмитрий Беляев
@ 2003-12-24  7:35 ` Grigory Batalov
  2003-12-24 11:51 ` Slava Dubrovskiy
  2 siblings, 0 replies; 3+ messages in thread
From: Grigory Batalov @ 2003-12-24  7:35 UTC (permalink / raw)
  To: community

On Wed, 24 Dec 2003 17:10:30 +1000
Славик <slavik99@fss-dv.khv.ru> wrote:

> Я конечно извиняюсь, но напишите по шагам,как 
> поднять 2 IP на одной карте?
> 
> ( А то везде куски какие-то, типа " создайте alias eth0:0
> и назовие его net, потом через ifconfig прицепите ip и т.д.)
> 
> 1. Как создать alias на карту
> 2. как прописать второй ip чтобы он остался после перезагрузки.

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=xx.xx.187.114
NETMASK=255.255.255.248
NETWORK=xx.xx.187.112
BROADCAST=xx.xx.187.119
ONBOOT=yes

$ cat /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
BOOTPROTO=static
IPADDR=172.16.0.38
NETMASK=255.255.0.0
NETWORK=172.16.0.0
BROADCAST=172.16.255.255
ONBOOT=yes

-- 
Григорий Баталов,
группа техподдержки
ОАО "Ковдорский ГОК"


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] Два IP на одной карте.
    2003-12-24  7:27 ` [Comm] Два IP на одной карте Дмитрий Беляев
  2003-12-24  7:35 ` Grigory Batalov
@ 2003-12-24 11:51 ` Slava Dubrovskiy
  2 siblings, 0 replies; 3+ messages in thread
From: Slava Dubrovskiy @ 2003-12-24 11:51 UTC (permalink / raw)
  To: community

Славик пишет:

> Привет community!
>  
> Я конечно извиняюсь, но напишите по шагам,как
> поднять 2 IP на одной карте?
>  
> ( А то везде куски какие-то, типа " создайте alias eth0:0
> и назовие его net, потом через ifconfig прицепите ip и т.д.)
>  
> 1. Как создать alias на карту
> 2. как прописать второй ip чтобы он остался после перезагрузки.
>  
> Слава.

cat /etc/rc.d/rc.local

#!/bin/sh
ip addr add 192.168.100.101/24 brd + dev eth0
где 192.168.100.101/24 еще один адрес.

Слава Д.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-12-24 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-24  7:27 ` [Comm] Два IP на одной карте Дмитрий Беляев
2003-12-24  7:35 ` Grigory Batalov
2003-12-24 11:51 ` Slava Dubrovskiy

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git