Difference between revisions of "Armbian: Cara Merubah IP Address Armbian 20.10"
Jump to navigation
Jump to search
(Created page with "Ubah file 'interfaces' yang berada di /etc/network/ nano /etc/network/interfaces Ubah Dari: source /etc/network/interfaces.d/* # Wired adapter #1 allow-hotplug eth0 no-auto-down eth0 iface eth0 inet dhcp #iface eth0 inet static #address 192.168.1.100 #netmask 255.255.255.0 #gateway 192.168.1.1 #dns-nameservers 192.168.1.1 # hwaddress ether # if you want to set MAC manually # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static...") |
|||
| Line 1: | Line 1: | ||
==CARA KE-1== | |||
Ketik perintah berikut untuk rubah melalui user interface: | |||
nmtui | |||
==CARA KE-2== | |||
Ubah file 'interfaces' yang berada di /etc/network/ | Ubah file 'interfaces' yang berada di /etc/network/ | ||
nano /etc/network/interfaces | nano /etc/network/interfaces | ||
| Line 24: | Line 30: | ||
# Wired adapter #1 | # Wired adapter #1 | ||
allow-hotplug eth0 | #allow-hotplug eth0 | ||
#no-auto-down eth0 | #no-auto-down eth0 | ||
#iface eth0 inet dhcp | #iface eth0 inet dhcp | ||
auto eth0 | |||
iface eth0 inet static | iface eth0 inet static | ||
address 192.168. | address 192.168.0.99 | ||
netmask 255.255.255.0 | netmask 255.255.255.0 | ||
gateway 192.168. | gateway 192.168.0.254 | ||
dns-nameservers | dns-nameservers 8.8.8.8,8.8.4.4 | ||
# hwaddress ether # if you want to set MAC manually | # hwaddress ether # if you want to set MAC manually | ||
# pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838 | # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838 | ||
Revision as of 18:25, 17 January 2023
CARA KE-1
Ketik perintah berikut untuk rubah melalui user interface:
nmtui
CARA KE-2
Ubah file 'interfaces' yang berada di /etc/network/
nano /etc/network/interfaces
Ubah Dari:
source /etc/network/interfaces.d/* # Wired adapter #1 allow-hotplug eth0 no-auto-down eth0 iface eth0 inet dhcp #iface eth0 inet static #address 192.168.1.100 #netmask 255.255.255.0 #gateway 192.168.1.1 #dns-nameservers 192.168.1.1 # hwaddress ether # if you want to set MAC manually # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838
Menjadi:
source /etc/network/interfaces.d/* # Wired adapter #1 #allow-hotplug eth0 #no-auto-down eth0 #iface eth0 inet dhcp auto eth0 iface eth0 inet static address 192.168.0.99 netmask 255.255.255.0 gateway 192.168.0.254 dns-nameservers 8.8.8.8,8.8.4.4 # hwaddress ether # if you want to set MAC manually # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838