usage: ip [ options ] object { command | help } ip [ -force ] [-batch filenamewhere object := { link | addr | route | rule | neigh | ntable | tunnel | maddr | mroute | monitor | xfrm } options := { -v[ersion] | -s[tatistics] | -r[esolve] | -f[amily] { inet | inet6 | ipx | dnet | link } | &Nbsp; -o[neline] | -t[imestamp] }ip is a command in the Iproute software package that is powerful enough to replace ifconfig completely. Route,arp and other orders. Object: Represents the objects that the operator wants to get link network device configuration Address ipv4 or IPv6 neighbor arp buffer entry route routing table entry rule rules in the Routing policy Database maddress multicast address mroute multicast route buffer entry tunnel Tunneling options on IP: Indicates the supported option-V: Version-S: Displays the interface statistics you want to get,-s -s will get more detailed information,ip -s link get information IP for all local interfaces -s link ls eth0 get information about a specific interface-r:-resolve query the domain name resolution system, replacing the host IP address with the host name obtained. -o,-oneline uses a single-line output for each row of records, suitable for using Grep,awk to process output Ip link: Configuring the network---set/show/listip link set Change device Properties ip link set dev eth0 up If the device is already in the up state, be sure to use it, because the kernel does not perform any checks on the operation ip LINK SET DEV ETH1 ARP ON/OFF   NOARP option---> Single-nic shutdown how can I not surf the internet Ip link set dev eth1 multicast on/off Multicast Options ip link set dev Eth1 dynamic on/off dynamic Optionsip link set dev eth0 name newname can only modify the non-up NIC name Ip link set dev eth0 txqueuelen 100 change the length of the NIC transmission queue Ip link set dev eth0 mtu 1500 Change Network device MTU (maximum transmission unit) Ip link set dev eth0 address 00:11:22:33:44:55 Modify MAC Address If you modify multiple parameters at the same time, any modification fails, IP cancels the operation immediately, so it is recommended to modify multiple parameters at the same time ip link set dev eth0 arp on name kkip link : Display network interface Information ip link show/ls/l/list/sh/lst dev eth0 parameter up: Displays only network interface information with a status of up ip route: ip ro / ip r ip route add Add Route ip route add 8.8.8.0/24 via 192.168.1.1ip route change Modify Routes ip route change 8.8.8.0/24 dev loip route repalce replacing Routes ip route change 8.8.8.0/24 dev eth1ip route add nat 172.16.0.0/24 via 192.168.1.152ip Route replace default equalize nexthop via 211.139.218.145 dev eth0 weight 1 nexthop via 211.139.218.145 dev eth1 weight 1ip route del Delete route table ip route flush erase route table ip route flush cache Clean IPv4 routing cacheip rule: ip rule add -- insert a new rule ip rule delete -- Delete rule ip neighbour--neighbour/arp table management commands options: Add, change, replace, delete, Fulsh, show ip neighbour add -- Add a new adjacency entry ip neighbour change--Modify an existing entry ip neighbour replace--replace an entry that already exists    IP neigh add 120.0.0.1 lladdr 0:0:0:0:0:1 dev eth0 nud perm Permanent ip neigh&nbs.p;change 120.0.0.1 dev eth0 nud reachable ip neigh del 120.0.0.1 dev eth0 ip -s neighbor show 120.0.0.1 Display ARP details for an IP ip neigh flush erase arp table ip -s -s n f 120.0.0.1 erase a piece of arpip addr:ip addr add local 192.168.1.1/28 brd + label eth0:1 dev eth0ip addr add 192.168.1.1/24 brd + dev eth1 label eth1:1 == ifconfig eth1:1 192.168.1.1ip addr Add 192.168.1.1/32 dev lo ip addr del 192.168.1.1/32 dev eth1 Remove Eth1 interface ipip addr flush dev eth1 Remove eth1 interface ipip -4 addr flush Delete all IPV4 ipip -s -s a f to 120/24 remove IP from 120 segment the IP command is so not simple!!!!!
Linux--ip Order Personal Summary