728x90

ubuntu 고정아이피

$nano  /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
#source-directory /etc/network/interfaces.d

# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 172.30.1.100
netmask 255.255.255.0
network 172.30.1.0
broadcast 172.30.1.255
gateway 172.30.1.254
dns-nameservers 168.126.63.1 168.126.63.2
# The primary network interface
#NetworkManager#auto eth0
#NetworkManager#iface eth0 inet dhcp

 

728x90

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

ubuntu 고정아이피  (0) 2023.04.01
iptable  (0) 2023.03.29
저용량, 저사양 리눅스  (0) 2023.03.29
apache <-> tomcat 연동  (0) 2023.03.29
Linux SSH Tunneling  (0) 2023.03.29
728x90

ubuntu 고정아이피

$nano  /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
#source-directory /etc/network/interfaces.d

# The loopback network interface
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 172.30.1.100
netmask 255.255.255.0
network 172.30.1.0
broadcast 172.30.1.255
gateway 172.30.1.254
dns-nameservers 168.126.63.1 168.126.63.2
# The primary network interface
#NetworkManager#auto eth0
#NetworkManager#iface eth0 inet dhcp

 

728x90

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

ubuntu 고정아이피  (0) 2023.04.01
iptable  (0) 2023.03.29
저용량, 저사양 리눅스  (0) 2023.03.29
apache <-> tomcat 연동  (0) 2023.03.29
Linux SSH Tunneling  (0) 2023.03.29

+ Recent posts