ip
ip neigh查看 arp tableip route get <ip>: ask the kernel to report the route it would use to send a packet to the specified address (也是 gateway)ip link: MAC address网桥
ip link add/delete mynet0 type bridge混杂模式
ip link set <interface> promisc on/off
ip addressip address add/change/delete dev <interface> <addr>
ip route list: display all the IP addresses with their device names that are currently availableip maddr show ens33主机网卡上 MAC 地址,使用 macvlan 主机网卡会有多个 MAC 地址ip netns操作网络命名空间ip netns add <ns-name>ip netns exec <ns-name> <command>ip netns help
Last updated
Was this helpful?