Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The most detailed principle + experiment in history-- basic setting of Linux Centos7 network

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

one。 Network basic Settings 1.ifconfig View the details of the network card

Ifconfig: viewing ip address information

Mtu 1500 packet bytes

Inet 192.168.17.134: ip address

Netmask 255.255.255.0: subnet mask

Broadcast 192.168.17.255: broadcast address

Inet6 fe80::e3c7:14af:6e4d: ipv6 address

Ether 00:0c:29:c9:dd:05: mac address

Lo: flags return visit network card

2.hostname View Hostname

Hostnamectl set-hostname http01

Modify hostname

Su refresh

> > the second way to modify the host name

Vim / etc/sysconfig/network/

HOSTNAME=HTTPD

NETWO rk followed by an I is capitalized NG=yes.

Restart will not take effect.

3. View routing table entry route

4.netstat-ntap to view all tcp protocols

5.netstat-nuap view all your udp protocols

6.netstat-r View routing table entries

7. Test parsing nslookup

Port 53 is for DNS.

Udp protocol specializes in address resolution.

Tcp protocol is designed to connect to dns servers.

8. Temporary and permanent configuration of ip addr

9. Add a virtual network card

9.1 you can also connect with the host to Ping.

Ifconfig ens33:0 down disable address

Ifconfig ens33:0 up is enabled

The virtual network card needs to be rebuilt.

9.2 Open and close URL

10. Add and delete records in routing table entries

11. Add and delete default gateway record

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 280

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report