[Linux] CentOS 7 C 클래스 IP 대역 전체 설정2018.08.01

   조회 1413   추천 0    

http://ehostidc.co.kr/center/EH050402.php?no=177720&choose=title&keyw… (38)
https://blog.naver.com/goethe1/221624722718 (29)

CentOS 7에서 C 클래스 전체 설정

1. networkmanager stop 및 disable

[root@EhostICT backup]# systemctl stop NetworkManager

[root@EhostICT backup]# systemctl disable NetworkManager

2. network 서비스 enable 및 등록

[root@EhostICT backup]# chkconfig --add network
[root@EhostICT backup]# chkconfig --levels 345 network on

3. ip 대역 등록

[root@EhostICT ~]# vi /etc/sysconfig/network-scripts/ifcfg-em1-range0 
DEVICE=em1
ONBOOT=yes
BOOTPROTO=static
IPADDR_START=192.168.9.3 (시작 IP)
IPADDR_END=192.168.9.254 (종료 IP)
CLONENUM_START=3 ( em1:3 부터 시작)
NETMASK=255.255.255.0
NO_ALIASROUTING=yes

4. network 서비스 재시작

[root@EhostICT backup]# systemctl restart network

5. 결과

a. IP 개당 4초 정도 up


em1:148: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.9.148 netmask 255.255.255.0 broadcast 192.168.9.255
ether 00:a0:d1:eb:68:74 txqueuelen 1000 (Ethernet)
device memory 0xfbde0000-fbdfffff

em1:149: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.9.149 netmask 255.255.255.0 broadcast 192.168.9.255
ether 00:a0:d1:eb:68:74 txqueuelen 1000 (Ethernet)
device memory 0xfbde0000-fbdfffff

em1:150: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.9.150 netmask 255.255.255.0 broadcast 192.168.9.255
ether 00:a0:d1:eb:68:74 txqueuelen 1000 (Ethernet)
device memory 0xfbde0000-fbdfffff

em1:151: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.9.151 netmask 255.255.255.0 broadcast 192.168.9.255
ether 00:a0:d1:eb:68:74 txqueuelen 1000 (Ethernet)
device memory 0xfbde0000-fbdfffff



www.ehostidc.co.kr ( 이호스트ICT )
짧은글 일수록 신중하게.




PDS
제목Page 5/62
2014-05   3022075   정은준1
2014-04   2720714   회원K
2019-11   2268   무한도전
2019-11   2232   MikroTik이진
2019-11   2190   FOXBI
2019-11   1816   아스란
2019-11   3493   무한도전
2019-11   1927   스캔l민현기
2019-11   2630   박문형
2019-11   3231   무한도전
2019-11   2031   스캔l민현기
2019-11   2070   무한도전
2019-11   2821   박건
2019-11   1831   깜박깜박가
2019-11   1720   FOXBI
2019-11   1394   무한도전
2019-11   1391   Ansyncic
2019-11   1385   Ansyncic
2019-11   1498   허인구마틴
2019-11   2269   간장게장
2019-10   2080   무한도전
2019-10   2196   무한도전