Difference between revisions of "Raspbian: Setup Network"

From OnnoWiki
Jump to navigation Jump to search
Line 9: Line 9:
 
  broadcast 192.168.1.255
 
  broadcast 192.168.1.255
 
  netmask 255.255.255.0
 
  netmask 255.255.255.0
  gateway 192.168.1.1
+
  # gateway 192.168.1.1
  
atau
+
iface wlan0 inet static
 +
address 192.168.4.10
 +
broadcast 192.168.4.255
 +
netmask 255.255.255.0
 +
# gateway 192.168.4.1
 +
 
 +
 
 +
atau jika IP address dynamic
  
 
  iface eth0 inet dhcp
 
  iface eth0 inet dhcp
 +
iface wlan0 inet dhcp
  
  

Revision as of 17:24, 10 October 2018

Edit

vi /etc/network/interfaces

Isi dengan, misalnya,

iface eth0 inet static
address 192.168.1.10
broadcast 192.168.1.255
netmask 255.255.255.0
# gateway 192.168.1.1
iface wlan0 inet static
address 192.168.4.10
broadcast 192.168.4.255
netmask 255.255.255.0
# gateway 192.168.4.1


atau jika IP address dynamic

iface eth0 inet dhcp
iface wlan0 inet dhcp


Pranala Menarik