网卡关闭和重命名

ip link set eth0 down ip link set eth0 name eth1

ip addr { add | del } IFADDR dev STRING

[label LABEL]:添加地址时指明网卡别名
[scope {global|link|host}]:指明作用域 -----------global: 全局可用 -----------link: 仅链接可用 -----------host: 本机可用 [broadcast ADDRESS]:指明广播地址

ip address show - look at protocol addresses

[dev DEVICE] [label PATTERN] [primary and secondary]