Ubuntu 20.04 네트워크 설정

2021. 6. 15. 14:02IT/Linux

네트워크 설정 파일

/etc/netplan/00-installer-config.yaml

 

해당 파일이 없는 경우 새로 만들거나, 다른 이름으로 되어있는지 확인해본다.

/etc/netplan/00-installer-config.yaml
-------------------------------------------------------------------
		# This is the network config written by 'subiquity'
		network:
		  ethernets:
		    ens160:
		      addresses:
		      - 192.168.100.101/24
		      - 192.168.200.101/24 # multi IP
		      gateway4: 192.168.100.254
		      nameservers:
		        addresses:
		        - 192.168.100.2
		        search:
		        - domain.co.kr # default domain
		      routes: # static routing
		        - to: 10.110.0.0/16
		          via: 192.168.200.254
  version: 2
-------------------------------------------------------------------

 

수정 후 설정 적용.

$ netplan apply

 

'IT > Linux' 카테고리의 다른 글

rc.local 활성화  (0) 2021.07.08
CentOS 7.x minimal로 설치 후, ssh 접속 안될 때  (0) 2021.06.15
[jenkins] jenkins 설치하기.  (0) 2020.11.14
[vi] 주석 제거  (0) 2020.10.15
[Tip] CentOS 8 minimal 초기 설정  (0) 2020.10.13