Simple is IT, 누구나 보고 누구나 깨닫는 IT

CentOS Linux Network configure 본문

Simple is IT/Server

CentOS Linux Network configure

currenjin 2020. 5. 6. 13:38



ifconfig

ifconfig, route를 이용한 ip 수동 설정

ifconfig [장치명] [IP address] netmask [subnetmask]

route add default gw [Gateway address]

ip 자동 설정

dhclient [장치명]

파일을 이용한 DHCP설정

/etc/sysconfig/network-scripts/ifcfg-ens33

BOOTPROTO=dhcp // dhcp로 할당한다

ONBOOT=yes // 재시작 시 자동으로

파일을 이용한 Static설정

/etc/sysconfig/netowrk-scrips/ifcfg-ens33

BOOTPROTO=static // static으로 할당한다.

ONBOOT=yes // 재시작 시 자동으로

IP,MASK,GW 등 설정


Comments