linux 为网卡添加多个IP
来源:互联网 发布:tcp和udp端口号有几个 编辑:程序博客网 时间:2024/05/21 14:43
方法一:执行bash命令ifconfig
ifconfig eth0 1.1.1.1 netmask 255.255.255.0
ifconfig eth0:1 2.2.2.2 netmask 255.255.255.0
ifconfig eth0:2 3.3.3.3 netmask 255.255.255.0
注意,我们需要使用net add default gw 1.1.1.2 添加默认网关,使用ifconfig设置的IP只是暂时生效,系统重启后子接口IP设置清空,如何让以后每次开机子接口IP配置都存在呢?每次开机执行一次。我们把刚才的配置文件写入/etc/rc.d/rc.local即可
- linux 为网卡添加多个IP
- 为linux网卡添加多个IP
- Linux 一个网卡添加多个IP
- Linux下为网卡绑定多个IP地址
- linux下一个网卡配置多个IP
- linux 一个网卡配置多个IP
- Linux下一个网卡配置多个IP
- linux下一个网卡配置多个IP
- linux下一个网卡配置多个IP
- linux下一个网卡配置多个ip
- Linux一块网卡配置多个IP
- linux 一个网卡 增加多个IP
- linux下一个网卡配置多个IP
- linux下一个网卡配置多个IP
- linux下一个网卡配置多个IP
- linux 一个网卡 增加多个IP
- linux 一个网卡 配置多个IP
- linux下一个网卡配置多个IP
- MFC扩展DLL导出对话框类
- get与post的区别。
- Ubuntu下ATI显卡驱动说明书
- Memcached源码分析之内存管理 【转】
- memcached源码分析之线程模型 【转】
- linux 为网卡添加多个IP
- Memcached中item锁的粒度【转】
- servlet基础知识总结
- 十大高明的Google搜索技巧
- IOS @property
- 求筛选法欧拉函数 hdu 2824
- js ==与===区别
- Javascript 中的false、0、null、undefined和空字符串对象
- 通过后缀判断一个文件是什么文件(音频或者视频)