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

Common linux Network Management commands (part two)

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

Share

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

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

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: 0

*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

Network Security

Wechat

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

12
Report