Common linux Network Management commands (part two)
Ip: change or display routes, IP, Protocol and other information ip link: interface management show [DEVICE]: display network card interface information set [DEVICE] [up | down]: enable or disable network interface multicast [on | off]: enable or disable multicast ip addr: protocol address management ip addr [show | flush] [DEVICE] ]: display or clear network card device information example: ip addr show ens33 ip addr [add | del] ADDRESS dev [DEVICE]: add or delete IP address to the specified network card Adding ip will not overwrite the original ip, but will add a new ip And the ifconfig command cannot see an example: ip addr add 10.0.0.1 dev ens33 ip addr [add | del] ADDRESS dev [DEVICE] label [devalias] broadcast [mask]: add an alias ip And the ifconfig command can be viewed for example: ip addr add 172.168.0.1 dev ens33 label ens33:1 broadcast 255.255.255.0 ip route: route management ip route list: view routing table information ip route flush: clear routing table information ip route add [DESTINATION] via [ADDRESS] src [SOUREC_ADDRESS] dev [DEVICE]: configure route location Address example: ip route add 10.0.0.0 via 192.168.0.1 src 192.168.0.210 dev eth0 ip route del [DESTINATION]: delete specified routing information example: ip route del 10.0.0.0ss: another command to view network and related information-t: display tcp information- U: display udp information-p: display process information-l: display listening information-n: unparse hostname-a: display all information-e: display extended information-m: display socket-related memory usage information-o state: show only connections in the specified state You can also specify filter criteria such as ss-anpt