วิธี config ip ใน linux

6 Sep 2015,
Share: 

วิธี config ip ใน linux

เริ่มต้นด้วยการเปิดไฟล์ config ด้วยคําสั่ง

sudo nano /etc/network/interfaces

แล้วแก้ไขไฟล์ดังนี้ ใส่ # หน้า “iface eth0 inet dhcp”

#iface eth0 inet dhcp

และเพิ่มค่า config ประมาณนี้

address 192.168.1.2
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1

อธิบาย

  • address คือ ip address
  • network คือ เลข network
  • netmask คือ subnet mask
  • broadcast คือ เลข broadcast
  • gateway คือ เลข gateway

Suggestion blogs

Docker no space left on device error

สวัสดีครับ บทความนี้จะเป็นเรื่องเกี่ยวกับ Error ของ Docker ครับ คือ  "Docker no space left on device error" ซึ่งเกิดจาก Docker ไม่สามารถเขียนไฟล์ Docker.qcow2 ได้ เนื่องจาก ไฟล์ดังกล่าวมีขนาดใหญ่เกินไป

Go EP.5 Go Routine

สวัสดีครับ ในบทความนี้ก็เป็น EP.5 แล้วนะครับ โดยเนื้อหาจะเป็นเรื่องเกี่ยวกับ Go Routine ซึ่งเป็นเรื่องสําคัญมากในการพัฒนาโปรแกรมด้วยภาษา Go เพราะจะช่วยให้เราสามารถพัฒนาโปรแกรมที่มี Performance ที่ดีครับสําหรับท่านใดที่ยังไม่ได้อ่าน EP.4 ท่านสามารถกลับไปอ่านก่อนได้นะครับที่นี่ Go EP.4 Syntax ของภาษา Goมาเริ่มเรียนรู้ไปด้วยกันตามหัวข้อด้านล่างเลยครับ

เปลี่ยน port ssh เพื่อเพิ่มความปลอดภัย

วิธี เปลี่ยน port ของ ssh เพื่อเพิ่มความปลอดภัยให้กับ server


Copyright © 2019 - 2025 thiti.dev |  v1.54.0 |  Privacy policy | 

Build with ❤️ and Astro.

Github profile   Linkedin profile   Instagram   X profile   Nostr   Youtube channel   Telegram   Email contact   วงแหวนเว็บ