ip 命令示例

news/2024/9/2 23:34:24

## 添加 vxlan 接口

ip -6 link add vxlan100 type vxlan id 100 dstport 4789 local 2001:db8:1::1 group ff05::100 dev eth0 ttl 5

## -d 选项

显示详细信息:

[root@qrms6-host01 mzhan017]# ip -d link show vxlan100
308: vxlan100: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 9e:83:9d:50:e6:c9 brd ff:ff:ff:ff:ff:ff promiscuity 0
    vxlan id 100 srcport 0 0 dstport 4789 ageing 300 noudpcsum noudp6zerocsumtx noudp6zerocsumrx addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

## 更改interface 名称

ip link set dev eth0 name new_name

## man

man ip-netns

man ip

## link

ip link help;

ip link add link eth12 type vlan id 1// z

ip link add link eth12 name eth12.1 type vlan protocol 802.1Q id 3 // 添加name 是eth12.1 的 link/ vlan id 是3;

启动link


http://www.niftyadmin.cn/n/1527223.html

相关文章

React-redux高阶组件数据共享

文章目录案例效果&#xff1a;实现过程&#xff1a;案例效果&#xff1a;目录结构&#xff1a;1、src/index.js2、src/App.js3、src/redux3.1、src/redux/incrementReducer3.1.1、src/redux/incrementReducer/index.js3.1.2、src/redux/personReducer/index.js3.3、src/redux/s…

wireshark使用总结

目录 分割pcap文件 Wireshark 于iptables的关系 开发环境设置 导出分解组为文本文件 可以导出为文本文件: 导出文本文件的目的可以使用linux相关的工具来做统计。比如 awk/sort/uniq 字符串过滤 udp contains hang //udp 里是否包含 hang 这个字符串。

Redux-devtools的配置(开发者工具)

一、安装 使用npm或者cnpm或者yarn安装 (1) $ npm install redux-devtools-extension (2) $ yarn add redux-devtools-extension二、在store中配置 import {composeWithDevTools} from redux-devtools-extension const store createStore(allReducer,composeWithDevTools(a…

React中immutable的使用(优化级深拷贝)

文章目录一、作用二、安装三、使用四、案例一、作用 immutable 对象是不可直接赋值的对象&#xff0c;它可以有效的避免错误赋值的问题 二、安装 $ npm install immutable三、使用 在react中&#xff0c;immutable主要是防止state对象被错误赋值。 将js对象转成immutable对…

iptables使用总结

按照字符串过率 iptables -A INPUT --source 10.87.51.2 --destination 10.87.51.10 -p tcp --sport 5060 -m string --algo bm --string "407 Proxy" -j DROP 这个在有的lab,好使,有的不好使,为什么; 按照大小过率 iptables -D OUTPUT --source 10.87.51.2…

c++ map 使用总结

[rootlocalhost ~]# cfilt _ZSt18_Rb_tree_incrementPSt18_Rb_tree_node_base std::_Rb_tree_increment(std::_Rb_tree_node_base*) 这里有一个问题&#xff0c;比如map的大小是一个元素&#xff1b; 迭代来删除map里的元素&#xff1a; itermap.begin, while (iter ! map.e…

c验证小程序

‘\0’ 转换为整型是0; #include <stdio.h>int main() {int a=\0;printf("a=%d\n",a);return 0; }结果: C:\MinGW\test>a.exe a=0%.*s 字符串打印 需要两个参数,一个是int型的长度,一个是字符串地址 #include <stdio.h>int main() {int a=\0;…

React-persist的使用(数据持久化)

在React项目中&#xff0c;我们经常会通过redux以及react-redux来存储和管理全局数据。但是通过redux存储全局数据时&#xff0c;会有这么一个问题&#xff0c;如果用户刷新了网页&#xff0c;那么我们通过redux存储的全局数据就会被全部清空&#xff0c;比如登录信息等。 这个…