1. Trang chủ
  2. » Công Nghệ Thông Tin

Bài giảng Quản trị Linux: Networking - CentOS - Đặng Thanh Bình

23 60 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 23
Dung lượng 503,36 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Bài giảng Quản trị Linux cung cấp những kiến thức cơ bản về networking - CentOS. Những nội dung chính được trình bày trong chương này gồm có: network configuration and information, network configuration commands. Mời các bạn cùng tham khảo.

Trang 1

Đặng Thanh Bình

Networking - CentOS

Trang 2

• Network configuration and information

• Network configuration commands

Trang 3

NETWORK

CONFIGURATION AND INFORMATION

Trang 4

Config Of Network Interfaces

• Ubuntu configuration is done selecting

System->Administration->Networking.

• RedHat/CentOS: redhat-config-network

– has both a graphical and a text mode interface.

Configuration Wizard

• GNOME systems: gnome-network-preferences.

• KDE systems: knetworkconf.

Trang 5

Network Interface Names

lo or the local loop is linked with the internal 127.0.0.1 address

eth0: a standard network interface card

ppp0: the modem

Trang 6

Network Configuration Files

• /etc/hosts

Trang 7

Network Configuration Files

• /etc/resolv.conf

• /etc/nsswitch.conf

name services For Internet use, it is important

Trang 8

Network Configuration Files

Trang 9

Network Configuration Files

active khi boot.

Trang 10

Network Configuration Files

– Port 0 – 1024: là những port đã được dành riêng.

– Port > 1024: port được định nghĩa thêm vào tùy theo nhu cầu của ứng dụng

Trang 11

NETWORK

CONFIGURATION COMMANDS

Trang 12

ip command

• Assigning IP addresses to interfaces

• Setting up routes to the internet and to other networks

• Displaying TCP/IP configurations

• …

Trang 13

ip command

Trang 14

ifconfig command

• Displaying network interface information

Trang 16

ifconfig command

• Assign ip-address to an Interface

# ifconfig eth0 192.168.2.2

• Change Subnet mask of the interface eth0.

# ifconfig eth0 netmask 255.255.255.0

• Change Broadcast address of the interface eth0.

# ifconfig eth0 broadcast 192.168.2.255

• Assign ip-address, netmask and broadcast at the same time to interface eht0.

# ifconfig eth0 192.168.2.2 netmask 255.255.255.0

broadcast 192.168.2.255

Trang 17

ifconfig command

• Change MTU

interface is able to handle in one transaction

default is 1500

# ifconfig eth0 mtu NUMBER

Trang 18

ifup, ifdown command

• Lệnh ifup dùng để enable một interface

• Lệnh ifdown dùng để disable một interface

Trang 19

netstat command

• Checking the host configuration

• Routing information can be displayed with the -nr option

ip route show

Trang 20

host command

• Display information on hosts or domains

• Simlar to dig command

Trang 21

ping command

• To check if a host is alive

Trang 23

whois command

• Specific domain name information can be queried using the whois command

Ngày đăng: 30/01/2020, 04:51

TỪ KHÓA LIÊN QUAN

w