The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

A network foundation set

1.ifconfig View card details

ifconfig: View ip address information
mtu 1500 byte packets
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 visit card

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

2.hostname view the host name

hostnamectl set-hostname http01
modify the host name
su refresh
>> The second way to modify the host name
vim / etc / sysconfig / Network /
HOSTNAME = HTTPD
Netwo rk back plus a i are capitalized NG = yes
restart to take effect

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

3. Check the routing table entry route

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

4.netstat -ntap View all tcp protocol

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

5.netstat -nuap See all your udp protocol

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

6.netstat -r to see the routing table entries

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

7. Test parse nslookup

53 ports are to the DNS
udp protocol specifically to resolve address
tcp protocol to connect to a special dns server

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

8. permanent and temporary configuration ip address configuration

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

9. Add a virtual network card

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

Ping host to 9.1 with the same energy interconnection

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

ifconfig ens33: 0 down to disable address
ifconfig ens33: 0 up to open
the virtual NIC need to re-build

9.2 opening and closing Website

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

10. Add record delete the routing table entry

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

11. Add the default gateway to delete records

The most detailed history of the principle experiment --Linux Centos7 + network infrastructure settings

Guess you like

Origin blog.51cto.com/14449524/2433481