CentOS ? ?????? ip ????? – ??? ?????????? ? ???? ?? ??????????

July 20th, 2010 by Dogma написать комментарий »

??? ???????? ?????? ip na ???? ??????? ?????????? ??? ???, ???? ?? …

?????????? ? ??????? ifconfig – ??????? ? ????? ? ???????:

eth0 Link encap:Ethernet HWaddr 00:26:B9:2A:B9:13
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0

????????????? ???????? ?????? ip ?? ??????, ???????? ????????

nano /etc/sysconfig/network-scripts/ifcfg-eth0:0

? ???????????

DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=?????? ip
NETMASK=255.255.255.255

????? ????? ????? ????????????? ??????? ??????:

service network restart

????????? ifconfig ? ?????, ??? ???????? “?????” eth0:0

eth0:0 Link encap:Ethernet HWaddr 00:26:B9:2A:B9:13
inet addr:192.168.0.200 Bcast:192.168.0.11 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:185 Base address:0xa000

??? ?????????? ????? 30 ip, ?????????

nano /etc/sysconfig/network-scripts/ifcfg-eth0-range0:

IPADDR_START=192.168.1.100
IPADDR_END=192.168.1.130
NETMASK=255.255.255.255
CLONENUM_START=1
NO_ALIASROUTING=yes

?????

service network restart

? ?????????? ???????? 30 ??????? eth0:1 – eth0:20, c ??????? ????????.

??? ????? ?????????, ???????? ? ??????? ip-?????? ????? ? ??????? ?????? ip ? ifconfig, ???????? ???? ????? ???????? ??????? ?????????????? ?????:

ifconfig eth0:0 inet 192.168.1.100/32

???????????, ????? ???????????? ????? ????????. ????? ?????? ????????? ?????:

ifconfig eth0:0 down

Advertisement

Comments are closed.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .