eth0,eth1,eth2,lo是什么
2016-07-16 18:01
627 查看
eth0,eth1,eth2……代表网卡一,网卡二,网卡三……
lo代表127.0.0.1,即localhost
Ubuntu 配置多个ip地址:/etc/network/interfaces
root@ubuntu:/etc/network# cat interfaces
auto eth0
iface eth0 inet static
address 192.168.88.134
netmask 255.255.255.0
gateway 192.168.88.1
auto eth0:1
iface eth0:1 inet static
address 192.168.88.135
netmask 255.255.255.0
up route add -host 192.168.88.135 dev eth0:1
auto eth0:2
iface eth0:2 inet static
address 192.168.88.136
netmask 255.255.255.0
up route add -host 192.168.88.136 dev eth0:2
lo代表127.0.0.1,即localhost
Ubuntu 配置多个ip地址:/etc/network/interfaces
root@ubuntu:/etc/network# cat interfaces
auto eth0
iface eth0 inet static
address 192.168.88.134
netmask 255.255.255.0
gateway 192.168.88.1
auto eth0:1
iface eth0:1 inet static
address 192.168.88.135
netmask 255.255.255.0
up route add -host 192.168.88.135 dev eth0:1
auto eth0:2
iface eth0:2 inet static
address 192.168.88.136
netmask 255.255.255.0
up route add -host 192.168.88.136 dev eth0:2
相关文章推荐
- 十六进制转换成十进制 二进制
- 【spring 3】AOP:静态代理
- 221. Maximal Square
- 【spring 3】AOP:静态代理
- webpack快速入门和实战
- kruskal算法求最小生成树(jungle roads的kruskal解法)
- 晶/陶振不起振及使用注意事项
- 慕课网实战—《用组件方式开发 Web App全站 》笔记七-饼图和环图组件开发
- 以后的博客可能会偏向游戏开发方向
- selenium2使用记录
- telnet时显示:允许更多到 telnet 服务器的连接。请稍候再试
- 使用贝赛尔曲线实现仿360拖动安仔清理动画
- overwrite在hive内部表及外部表特性
- POJ 1200 Crazy Search
- pager 命令
- LTS版本的解析
- [LeetCode] 13. Roman to Integer
- 线性表
- node package有两种依赖
- jQuery学习之jQuery Ajax用法详解