您的位置:首页 > 其它

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  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: