Ubuntu:Konfigurasi Interface: Difference between revisions
Appearance
Created page with "Mengkonfigurasi Interface di Shell dapat melalui dua cara * Melalui Command Line * Mengedit file /etc/network/interfaces ==Melalui Command Line== Menggunakan perintah ifconfig eth0 192.168.0.3 netmask 255.255.255.0 Untuk Wireless iwconfig wlan0 essid namahotspot iwconfig wlan0 mode managed Untuk Scanning Wireless iwlist scanning ==Melalui /etc/network/interfaces== Edit file vi /etc/network/interfaces Untuk LAN auto eth0 iface eth0 inet dhcp Untuk LAN..." |
No edit summary |
||
| Line 1: | Line 1: | ||
Mengkonfigurasi Interface di Shell dapat melalui dua cara | Mengkonfigurasi Interface di Shell dapat melalui dua cara | ||
* Melalui Command Line | * Melalui Command Line | ||
* Mengedit file /etc/network/interfaces | * Mengedit file <code>/etc/network/interfaces</code> | ||
==Melalui Command Line== | ==Melalui Command Line== | ||
Menggunakan perintah | Menggunakan perintah | ||
ifconfig eth0 192.168.0.3 netmask 255.255.255.0 | ifconfig eth0 192.168.0.3 netmask 255.255.255.0 | ||
Untuk Wireless | Untuk Wireless | ||
iwconfig wlan0 essid namahotspot | iwconfig wlan0 essid namahotspot | ||
iwconfig wlan0 mode managed | iwconfig wlan0 mode managed | ||
Untuk Scanning Wireless | Untuk Scanning Wireless | ||
iwlist scanning | iwlist scanning | ||
==Melalui /etc/network/interfaces== | ==Melalui /etc/network/interfaces== | ||
Edit file | Edit file | ||
vim /etc/network/interfaces | |||
Untuk LAN | Untuk LAN | ||
auto eth0 | auto eth0 | ||
iface eth0 inet dhcp | iface eth0 inet dhcp | ||
Untuk LAN Statik | Untuk LAN Statik | ||
auto eth0 | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
| Line 39: | Line 24: | ||
gateway 192.168.0.223 | gateway 192.168.0.223 | ||
dns-nameservers 192.168.3.45 192.168.8.10 | dns-nameservers 192.168.3.45 192.168.8.10 | ||
Untuk WLAN | Untuk WLAN | ||
auto eth1 | auto eth1 | ||
allow-hot plug eth1 | allow-hot plug eth1 | ||
| Line 47: | Line 30: | ||
wireless-mode managed | wireless-mode managed | ||
wireless-essid NAMAHOTSPOT | wireless-essid NAMAHOTSPOT | ||
Untuk WLAN menggunakan MESH | Untuk WLAN menggunakan MESH | ||
auto eth1 | auto eth1 | ||
allow-hot plug eth1 | allow-hot plug eth1 | ||
| Line 60: | Line 41: | ||
wireless-essid MESH | wireless-essid MESH | ||
wireless-bssid 02:ca:ff:ee:ba:be | wireless-bssid 02:ca:ff:ee:ba:be | ||
==Source== | |||
* [https://lms.onnocenter.or.id/wiki/index.php/Mengkonfigurasi_Interface_di_Ubuntu_Shell onnocenter.or.id] | |||
[[Category:Linux]] | |||
[[Category:Ubuntu]] | |||
[[Category:Jaringan Komputer]] | |||
[[Category:Jaringan]] | |||
Latest revision as of 17:30, 13 June 2022
Mengkonfigurasi Interface di Shell dapat melalui dua cara
- Melalui Command Line
- Mengedit file
/etc/network/interfaces
Melalui Command Line
Menggunakan perintah
ifconfig eth0 192.168.0.3 netmask 255.255.255.0
Untuk Wireless
iwconfig wlan0 essid namahotspot iwconfig wlan0 mode managed
Untuk Scanning Wireless
iwlist scanning
Melalui /etc/network/interfaces
Edit file
vim /etc/network/interfaces
Untuk LAN
auto eth0 iface eth0 inet dhcp
Untuk LAN Statik
auto eth0 iface eth0 inet static address 192.168.0.3 broadcast 192.168.0.255 netmask 255.255.255.0 gateway 192.168.0.223 dns-nameservers 192.168.3.45 192.168.8.10
Untuk WLAN
auto eth1 allow-hot plug eth1 iface eth1 inet dhcp wireless-mode managed wireless-essid NAMAHOTSPOT
Untuk WLAN menggunakan MESH
auto eth1 allow-hot plug eth1 iface eth1 inet static address 172.16.1.2 broadcast 172.16.255.255 netmask 255.255.0.0 wireless-mode ad-hoc wireless-channel 1 wireless-essid MESH wireless-bssid 02:ca:ff:ee:ba:be