This combination consists of the Internet Protocol (IP),Transport Control Protocol (TCP), and Universal Datagram Protocol (UDP). Kombinasi ini terdiri dari Internet Protocol (IP), Transport Control Protocol (TCP), dan Universal Datagram Protocol (UDP).
By Default most of the users configure their network card during the installation of Ubuntu. Default oleh sebagian besar pengguna mengkonfigurasi kartu jaringan mereka selama instalasi Ubuntu. You can however, use the ifconfig command at the shell prompt or Ubuntu’s graphical network configuration tools, such as network-admin, to edit your system’s network device information or to add or remove network devices on your system Anda dapat Namun, menggunakan perintah ifconfig di shell prompt atau Ubuntu grafis konfigurasi perangkat jaringan, seperti jaringan-admin, untuk mengedit sistem informasi atau perangkat jaringan untuk menambah atau menghapus perangkat jaringan pada sistem
Konfigurasi Network Interface Menggunakan Command-Line
You can configure a network interface from the command line using the networking utilities. Anda dapat mengkonfigurasi antarmuka jaringan dari baris perintah dengan menggunakan jaringan utilitas. Anda mengkonfigurasi jaringan host dengan klien baris perintah dengan menggunakan perintah untuk mengubah setting saat ini atau dengan mengedit beberapa file sistem.
Konfigurasi DHCP alamat untuk kartu jaringan anda
If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card Jika anda ingin mengkonfigurasi alamat DHCP anda perlu mengedit / etc / network / interface dan Anda harus memasukkan baris berikut gantikan eth0 dengan antarmuka jaringan kartu
sudo vi /etc/network/interfaces sudo vi / etc / network / interface
# The primary network interface - use DHCP to find our address # Utama jaringan - menggunakan DHCP untuk mendapatkan alamat kami
auto eth0 auto eth0 auto eth0
iface eth0 inet dhcp
Konfigurasi alamat IP statis untuk kartu jaringan anda
If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card Jika anda ingin mengkonfigurasi alamat IP statis anda perlu mengedit / etc / network / interface dan Anda harus memasukkan baris berikut gantikan eth0 dengan antarmuka jaringan kartu
sudo vi /etc/network/interfaces sudo vi / etc / network / interface
# The primary network interface # Utama jaringan
auto eth0 auto eth0 auto eth0
iface eth0 inet static iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
After entering all the details you need to restart networking services using the following commanSetelah memasukkan semua informasi yang Anda butuhkan untuk memulai kembali jaringan yang menggunakan perintah berikut
sudo /etc/init.d/networking restart sudo / etc / init.d / networking restart
Menyiapkan Kedua alamat IP atau alamat IP Virtual di Ubuntu
If you are a server system administrator or normal user some time you need to assign a second ipaddress to your Ubuntu machine.For this you need to edit the /etc/network/interfaces file and you need to add the following syntax.Below one is the only example you need to chnage according to your ip address settings Jika Anda seorang administrator sistem server atau pengguna normal anda memerlukan beberapa waktu untuk menetapkan kedua ipaddress ke Ubuntu machine.For ini, Anda perlu mengedit / etc / network / interface dan file yang Anda butuhkan untuk menambahkan syntax.Below berikut adalah contoh satu-satunya yang anda butuhkan untuk chnage sesuai dengan pengaturan alamat ip
sudo vi /etc/network/interfaces sudo vi / etc / network / interface
auto eth0:1 auto eth0: 1
iface eth0:1 inet static iface eth0: 1 inet statiaddress 192.168.1.60 alamat 192.168.1.60 iface eth0: 1 inet static
address 192.168.1.60
netmask 255.255.255.0
network xxxx
broadcast xxxx
gateway xxxx
netmask 255.255.255.0 netmask 255.255.255.0
network xxxx jaringan xxxx broadcast xxxx broadcast xxxx gateway xxxx gerbang xxxx
You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress. Anda harus memasukkan semua informasi seperti alamat, netmask, jaringan, dan siaran gateways nilai setelah memasukkan semua nilai menyimpan file ini dan Anda perlu restart jaringan layanan di debian menggunakan perintah berikut untuk mengambil efek kami baru ipaddress.
After entering all the details you need to restart networking services using the following command Setelah memasukkan semua informasi yang Anda butuhkan untuk memulai kembali jaringan yang menggunakan perintah berikut
sudo /etc/init.d/networking restart sudo / etc / init.d / networking restart
Mengatur hostname ubuntu stytem
Setting up your hostname upon a ubuntu installation is very straightforward. Menyiapkan hostname anda setelah instalasi Ubuntu sangat mudah. You can directly query, or set, the hostname with the hostname command. Anda dapat langsung permintaan, atau ditetapkan, nama host dengan perintah hostname.
As an user you can see your current hostname with Sebagai pengguna anda dapat melihat Anda saat ini dengan nama host
sudo /bin/hostname sudo / bin / hostname
Contoh
To set the hostname directly you can become root and run Untuk menetapkan nama host Anda dapat langsung menjadi root dan menjalankan
sudo /bin/hostname newname sudo / bin / hostname newname
When your system boots it will automatically read the hostname from the file /etc/hostname Ketika sistem anda boot secara otomatis akan membaca hostname dari file / etc / hostname
If you want to know more about how to setup host name check here Jika Anda ingin mengetahui lebih lanjut tentang cara men-setup nama host cek disini
Menyiapkan DNS
When it comes to DNS setup Ubuntu doesn’t differ from other distributions. Ketika datang ke DNS setup Ubuntu tidak berbeda dengan Distro lainnya. You can add hostname and IP addresses to the file /etc/hosts for static lookups. Anda dapat menambahkan nama host dan alamat IP ke file / etc / hosts untuk statis lookups.
To cause your machine to consult with a particular server for name lookups you simply add their addresses to /etc/resolv.conf. Menyebabkan komputer Anda untuk berkonsultasi dengan tertentu server untuk nama lookups Anda cukup menambahkan alamat mereka ke / etc / resolv.conf.
For example a machine which should perform lookups from the DNS server at IP address 192.168.3.2 would have a resolv.conf file looking like this Misalnya mesin yang harus melakukan lookups dari server DNS di alamat IP 192.168.3.2 akan memiliki resolv.conf file seperti ini
sudo vi /etc/resolv.conf sudo vi / etc / resolv.conf
enter the following details memasukkan rincian sebagai berikut
search test.com cari test.com
nameserver 192.168.3.2 nameserver 192.168.3.2
Terima kasih sudah menulis ini. Saya baru install JJ 2 pekan lalu. Sayangnya, Ubuntu saya ini tidak secara otomatis mengkonfigurasi jaringan sebagaimana Hardy Heron tahun lalu. Saya tak begitu mahir dalam setup jaringan. Paling tidak saya akan mencoba panduan yang Anda tulis ini.
BalasHapusJika masih ada permasalahan, saya pikir saya akan kembali bertanya pada Anda. Sekali lagi, terima kasih.