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
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
3. Check the routing table entry route
4.netstat -ntap View all tcp protocol
5.netstat -nuap See all your udp protocol
6.netstat -r to see the routing table entries
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
8. permanent and temporary configuration ip address configuration
9. Add a virtual network card
Ping host to 9.1 with the same energy interconnection
ifconfig ens33: 0 down to disable address
ifconfig ens33: 0 up to open
the virtual NIC need to re-build