摘要:
使用如下的命令,确定访问某个IP的时候,数据包是从哪个网卡出去的 ip route get <destination_ip> destination_ip:表示的是,要访问的IP地址。 示例: [root@centos7 ~]# ip route get 110.242.68.3 110.242.6 阅读全文
摘要:
查看原有的设备名称为veth1 [root@centos7 ~]# ip netns exec ns1 ip link 1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group default qlen 1000 lin 阅读全文